Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-672

Fix made in ORC-598 need to be extended to other readers like DecimalFromFloatTreeReader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.1, 1.6.1, 1.7.0
    • 1.6.6, 1.7.0, 1.5.13
    • Java
    • None

    Description

      Scenario:
      Orc file contains data(more than 1024 entries) in array<float> and an external table is created with one of the column as array<decimal(9,2)>. Now 

      LOAD DATA INPATH '/tmp/test.orc' OVERWRITE INTO TABLE test_orc_table

      query is failing with below exception

      Caused by: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1024 
      at org.apache.hadoop.hive.ql.io.orc.VectorizedOrcInputFormat$VectorizedOrcRecordReader.next(VectorizedOrcInputFormat.java:133) at 
      org.apache.hadoop.hive.ql.io.orc.VectorizedOrcInputFormat$VectorizedOrcRecordReader.next(VectorizedOrcInputFormat.java:56) at 
      org.apache.hadoop.hive.ql.io.HiveContextAwareRecordReader.doNext(HiveContextAwareRecordReader.java:361) ... 23 more Caused by: 
      java.lang.ArrayIndexOutOfBoundsException: 1024 at org.apache.orc.impl.TreeReaderFactory$TreeReader.nextVector(TreeReaderFactory.java:270) at 
      org.apache.orc.impl.TreeReaderFactory$FloatTreeReader.nextVector(TreeReaderFactory.java:667) at 
      org.apache.orc.impl.ConvertTreeReaderFactory$DecimalFromFloatTreeReader.nextVector(ConvertTreeReaderFactory.java:1251) at 
      org.apache.orc.impl.TreeReaderFactory$ListTreeReader.nextVector(TreeReaderFactory.java:2199) at 
      org.apache.orc.impl.TreeReaderFactory$StructTreeReader.nextBatch(TreeReaderFactory.java:2013) at 
      org.apache.orc.impl.RecordReaderImpl.nextBatch(RecordReaderImpl.java:1290) at 
      org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl.nextBatch(RecordReaderImpl.java:156) at 
      org.apache.hadoop.hive.ql.io.orc.VectorizedOrcInputFormat$VectorizedOrcRecordReader.next(VectorizedOrcInputFormat.java:129) ... 25 more
      

      So fix similar to ORC-598 can be done to other readers like DecimalFromFloatTreeReader

      Attachments

        1. ORC-672.WIP.patch
          11 kB
          László Bodor

        Issue Links

          Activity

            People

              pgaref Panagiotis Garefalakis
              tarak271 Taraka Rama Rao Lethavadla
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: