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/04 12:50:00 UTC
[jira] [Created] (ARROW-18250) [R] mutate(x2=x %>% str_replace('^ s*$',NA_character_)) Does not replicate behaviour of R
Lucas Mation created ARROW-18250:
------------------------------------
Summary: [R] mutate(x2=x %>% str_replace('^ s*$',NA_character_)) Does not replicate behaviour of R
Key: ARROW-18250
URL: https://issues.apache.org/jira/browse/ARROW-18250
Project: Apache Arrow
Issue Type: Bug
Reporter: Lucas Mation
```
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
```
--
This message was sent by Atlassian Jira
(v8.20.10#820010)