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

Deprecate type-defined sort ordering for INTERVAL type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • format-2.5.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: