You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/04/26 12:48:04 UTC

[jira] [Closed] (ARROW-11645) [Rust] Interval is out of spec

     [ https://issues.apache.org/jira/browse/ARROW-11645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Lamb closed ARROW-11645.
-------------------------------
    Resolution: Invalid

> [Rust] Interval is out of spec
> ------------------------------
>
>                 Key: ARROW-11645
>                 URL: https://issues.apache.org/jira/browse/ARROW-11645
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust
>            Reporter: Jorge Leitão
>            Priority: Critical
>
> 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 message was sent by Atlassian Jira
(v8.3.4#803005)