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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]