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

Vectorized read path for LazySimpleSerde does not honor the SERDEPROPERTIES for timestamp

    XMLWordPrintableJSON

Details

    Description

      Steps to repro:

        create external  table tstable(date_created timestamp)   ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe'   WITH SERDEPROPERTIES (  'timestamp.formats'='yyyyMMddHHmmss') stored as textfile;
      
      cat sampledata 
      20201205000017
      
      hdfs dfs -put sampledata /warehouse/tablespace/external/hive/tstable
      
      

      disable fetch task conversion and run select * from tstable which produce no results, disabling the set hive.vectorized.use.vector.serde.deserialize=false; return the expected output.

      while parsing the string to timestamp https://github.com/apache/hive/blob/master/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleDeserializeRead.java#L812 does not set the DateTimeFormatter which results IllegalArgumentException while parsing the timestamp through TimestampUtils.stringToTimestamp(strValue)

      Attachments

        Issue Links

          Activity

            People

              nareshpr Naresh P R
              Rajkumar Singh Rajkumar Singh
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1h
                  1h