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

INT64 Parquet timestamps cannot be read into bigint Hive type

    XMLWordPrintableJSON

Details

    Description

      How to reproduce:

      • create external table ts_pq (ts timestamp) stored as parquet;
      • insert into ts_pq values ('1998-10-03 09:58:31.231');
      • create external table ts_pq_2 (ts bigint) stored as parquet location '<location of ts_pq>';
      • select * from ts_pq_2;
        The following exception occurs during the select:
        Failed with exception java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.ClassCastException: org.apache.hadoop.hive.serde2.io.TimestampWritableV2 cannot be cast to org.apache.hadoop.io.LongWritable

      Attachments

        1. HIVE-23345.01.patch
          11 kB
          Panagiotis Garefalakis

        Issue Links

          Activity

            People

              pgaref Panagiotis Garefalakis
              kuczoram Marta Kuczora
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m