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

Select on single column MultiDelimitSerDe table throws AIOBE

    XMLWordPrintableJSON

Details

    Description

      Repro details

       

      create table test_multidelim(col string)
      ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.MultiDelimitSerDe'
      with serdeproperties('field.delim'='!^') STORED AS TEXTFILE;
      insert into test_multidelim values('aa'),('bb'),('cc'),('dd');
      select * from test_multidelim;
      

      Exception:

      Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
              at org.apache.hadoop.hive.serde2.lazy.LazyStruct.parseMultiDelimit(LazyStruct.java:303)
              at org.apache.hadoop.hive.serde2.MultiDelimitSerDe.doDeserialize(MultiDelimitSerDe.java:160)
              at org.apache.hadoop.hive.serde2.AbstractEncodingAwareSerDe.deserialize(AbstractEncodingAwareSerDe.java:74)
              at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:603)

       

      Attachments

        Issue Links

          Activity

            People

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