q <- data.table(x=c('','1','2'))
q %>% write_dataset('q')
#in R
q %>% mutate(x2=x %>% str_replace('^
s*$',NA_character_))
x x2
1: <NA>
2: 1 1
3: 2 2
#in arrow
q2 <- 'q' %>% open_dataset %>% mutate(x2=x %>% str_replace('^
s*$',NA_character_)) %>% collect
q2
x x2
1:
2: 1 1
3: 2 2
Reporter: Lucas Mation / @lucasmation
Related issues:
Note: This issue was originally created as ARROW-18250. Please see the migration documentation for further details.
Reporter: Lucas Mation / @lucasmation
Related issues:
Note: This issue was originally created as ARROW-18250. Please see the migration documentation for further details.