You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "dvictori (via GitHub)" <gi...@apache.org> on 2023/10/20 12:21:47 UTC
Re: [I] [R] NotImplemented: Function 'if_else' has no kernel matching input types (bool, bool, date32[day]) [arrow]
dvictori commented on issue #38358:
URL: https://github.com/apache/arrow/issues/38358#issuecomment-1772641529
Nothing like a good night sleep to figure out what a way to fix things. `if_else` does not like input (bool, boo, date32) but it works with input (bool, bool, string). So I changed my code to output a character representation of the date and then convert it back to date.
So this (hack) now works
```r
arrow_dataset |>
mutate(date = if_else(date > '2014-01-01', NA, as.character(date))) |>
mutate(date = as.Date(date)) |>
collect()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org