Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8423

Parquet TIME_MICROS columns with values > Integer.MAX_VALUE are not displayed correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.21.0
    • 1.21.1
    • Storage - Parquet
    • None

    Description

      Assume a parquet file in a directory "Test" with a column timeCol having the type org.apache.parquet.schema.OriginalType.TIME_MICROS.

      Assume there are two records with the values 2147483647 and 2147483648, respectively, in that column (i.e. the times 00:35:47.483647 and 00:35:47.483648).

      Executing the query

      SELECT timeCol FROM dfs.Test;

      produces the result

      timeCol
      -------
      00:35:47.483
      23:24:12.517

      i.e. the microsecond value of Integer.MAX_VALUE + 1 has wrapped around when read from the parquet file (it is displayed as the same number of milliseconds before midnight as the time represented by Integer.MAX_VALUE is after midnight)

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              handmadecode Peter Franzen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: