You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed at #9942 (comment) 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
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.
Ian Cook / @ianmcook:
We might also want to define ArrowDatum methods for dplyr's pull() and collect() generics. These would do the same thing as as.vector() when dplyr is loaded.
As discussed at #9942 (comment) the
as.double()
,as.integer()
, andas.character()
methods forArrowDatum
return R vectors of the specified R types, whereas in dplyr, these same functions perform casts to the analogous Arrow typesCompare the definitions:
ArrowDatum
methods:arrow/r/R/arrow-datum.R
Lines 139 to 145 in ace2bfc
dplyr functions:
arrow/r/R/dplyr.R
Lines 399 to 432 in f2db785
Consider whether the
ArrowDatum
methods should instead perform casts but keep the data in Arrow so that the user would have to also callas.vector()
to return the data as an R vector.Reporter: Ian Cook / @ianmcook
Assignee: Ian Cook / @ianmcook
Related issues:
Note: This issue was originally created as ARROW-12292. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: