Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11645

[Rust] Interval is out of spec

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • None
    • None
    • Rust
    • None

    Description

      The DataType interval is currently implemented as a i32 or i64. However, that is incorrect and does not follow the spec.

      // 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.
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jorgecarleitao Jorge Leitão
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: