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
The data.table package introduces integer based date and time-of-day classes, IDate, and ITime. Besides lower storage/memory cost, they offer faster sorting and grouping. It would be useful if Arrow fully supported these classes.
As IDate inherits from Date, Arrow correctly converts it to date32 but there is no way to control which R type date32 is converted to.
Although this works, converting to time32 would improve interoperability with other languages. data.table users would need some way to control how time32 is converted back is this case too.
Describe the enhancement requested
The data.table package introduces integer based date and time-of-day classes,
IDate
, andITime
. Besides lower storage/memory cost, they offer faster sorting and grouping. It would be useful if Arrow fully supported these classes.As
IDate
inherits fromDate
, Arrow correctly converts it todate32
but there is no way to control which R typedate32
is converted to.ITime
can be correctly round-tripped, if I’m not mistaken this is because Arrow preserves metadata.Although this works, converting to
time32
would improve interoperability with other languages. data.table users would need some way to control howtime32
is converted back is this case too.Created on 2024-09-19 with reprex v2.1.1
Session info
Component(s)
R
The text was updated successfully, but these errors were encountered: