Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1064

Deprecate type-defined sort ordering for INTERVAL type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: format-2.5.0
    • Component/s: None
    • Labels:
      None

      Description

      LogicalTypes.md in parquet-format defines the the sort order for INTERVAL to be produced by sorting by the value of months, then days, then milliseconds with unsigned comparison.

      According to these rules, 1d0h0s > 0d48h0s, which is counter-intuitive and does not seem to have any practical uses. Unless somebody is aware of an actual use-case in which this makes sense, I think the sort order should be undefined instead. The reference implementation in parquet-mr already considers the ordering to be unknown.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zi Zoltan Ivanfi
                Reporter:
                zi Zoltan Ivanfi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: