You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Lucas Mation (Jira)" <ji...@apache.org> on 2022/11/03 21:45:00 UTC

[jira] [Created] (ARROW-18244) [R] `mutate(x2=ifelse(x=='',NA,x))` Error: Function 'if_else' has no kernel matching input types

Lucas Mation created ARROW-18244:
------------------------------------

             Summary: [R] `mutate(x2=ifelse(x=='',NA,x))` Error: Function 'if_else' has no kernel matching input types 
                 Key: ARROW-18244
                 URL: https://issues.apache.org/jira/browse/ARROW-18244
             Project: Apache Arrow
          Issue Type: Bug
            Reporter: Lucas Mation


 

```

q <- data.table(x=c('','30111976','01011976'))
q %>% write_dataset('q')
q2 <- 'q' %>% open_dataset %>% mutate(x2=ifelse(x=='',NA,x)) %>% collect
Error in `collect()`:
! NotImplemented: Function 'if_else' has no kernel matching input types (bool, bool, string)
Run `rlang::last_error()` to see where the error occurred.

```

In [Functions available in Arrow dplyr queries|https://arrow.apache.org/docs/r/reference/acero.html] it is stated that ifelse() is available, but the error above suggests otherwise.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)