Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
As discussed at https://github.com/apache/arrow/pull/9942#issuecomment-815315840, the as.double(), as.integer(), and as.character() methods for ArrowDatum return R vectors of the specified R types, whereas in dplyr, these same functions perform casts to the analogous Arrow types
Compare the definitions:
- ArrowDatum methods: https://github.com/apache/arrow/blob/ace2bfc160e049b4edc7ffb55081cfb7210d6e43/r/R/arrow-datum.R#L139-L145
- dplyr functions: https://github.com/apache/arrow/blob/f2db785c24015b102db9b268c67a6ea73c5d7e93/r/R/dplyr.R#L399-L432
Consider whether the ArrowDatum methods should instead perform casts but keep the data in Arrow so that the user would have to also call as.vector() to return the data as an R vector.
Attachments
Issue Links
- is related to
-
ARROW-12283 [R] Bindings for basic type convert functions in dplyr verbs
- Resolved