Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9862

Vectorized execution corrupts timestamp values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.3.0, 2.0.1, 2.1.0
    • Vectorization
    • None

    Description

      Timestamps in the future (year 2250?) and before ~1700 are silently corrupted in vectorized execution mode. Simple repro:

      hive> DROP TABLE IF EXISTS test;
      hive> CREATE TABLE test(ts TIMESTAMP) STORED AS ORC;
      hive> INSERT INTO TABLE test VALUES ('9999-12-31 23:59:59');
      
      hive> SET hive.vectorized.execution.enabled = false;
      hive> SELECT MAX(ts) FROM test;
      9999-12-31 23:59:59
      
      hive> SET hive.vectorized.execution.enabled = true;
      hive> SELECT MAX(ts) FROM test;
      1816-03-30 05:56:07.066277376
      

      Attachments

        1. HIVE-9862.01.patch
          825 kB
          Matt McCline
        2. HIVE-9862.02.patch
          937 kB
          Matt McCline
        3. HIVE-9862.03.patch
          1.04 MB
          Matt McCline
        4. HIVE-9862.04.patch
          1.10 MB
          Matt McCline
        5. HIVE-9862.05.patch
          1.10 MB
          Matt McCline
        6. HIVE-9862.06.patch
          1.10 MB
          Matt McCline
        7. HIVE-9862.07.patch
          1.11 MB
          Matt McCline
        8. HIVE-9862.08.patch
          1.11 MB
          Matt McCline
        9. HIVE-9862.09.patch
          1.11 MB
          Matt McCline

        Issue Links

          Activity

            People

              mmccline Matt McCline
              NathanHowell Nathan Howell
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: