You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/03/05 17:30:27 UTC

[GitHub] [arrow] ianmcook commented on pull request #9586: ARROW-11704: [R] Wire up dplyr::mutate() for datasets

ianmcook commented on pull request #9586:
URL: https://github.com/apache/arrow/pull/9586#issuecomment-791567699


   Looks like `mutate()` on datasets errors when expressions are literals:
   ```r
   ds %>% transmute(x=42) %>% head(1)
   ## Error in dataset___ScannerBuilder__ProjectExprs(self, cols, names(cols)) : 
   ##  Invalid R object for std::__1::shared_ptr<arrow::dataset::Expression>, must be an ArrowObject
   
   ds %>% transmute(x="foo") %>% head(1)
   ## Error in dataset___ScannerBuilder__ProjectExprs(self, cols, names(cols)) : 
   ##  Invalid R object for std::__1::shared_ptr<arrow::dataset::Expression>, must be an ArrowObject
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org