alamb opened a new issue #187:
URL: https://github.com/apache/arrow-rs/issues/187


   *Note*: migrated from original JIRA: 
https://issues.apache.org/jira/browse/ARROW-11645
   
   The DataType interval is currently implemented as a i32 or i64. However, 
that is incorrect and does not follow the spec.
   {code:java}
   // DAY_TIME - Indicates the number of elapsed days and milliseconds,
   //   stored as 2 contiguous 32-bit integers (8-bytes in total).  Support
   //   of this IntervalUnit is not required for full arrow compatibility.
   {code}
   See [https://github.com/apache/arrow/blob/master/format/Schema.fbs]
   
   E.g. I think that IntervalDayTimeType should be a `struct(i32,i32)` with a C 
representation or something, which is how it is defined in the spec.
   
   This would also make it easier to read from and write to, as we do not need 
to transmute or bitmask the values to get the correct values.


-- 
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:
[email protected]


Reply via email to