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

IndexOutOfBoundsException throws when invoke next() method in HiveQueryResultSet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.1
    • None
    • HiveServer2, JDBC
    • None
    • CentOS-7.2.1511, Haoop-2.7.3, Hive-2.1.1

    Description

      I try exporting data using HiveQueryResultSet.next() method, there is an IndexOutOfBoundsException sometimes when data is very large, what i catch is below

      java.sql.SQLException: Error retrieving next row
      at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:396)
      ...
      Caused by: java.lang.IndexOutOfBoundsException: Index: 1000, Size: 1000
      at java.util.ArrayList.rangeCheck(ArrayList.java:653)
      at java.util.ArrayList.get(ArrayList.java:429)
      at org.apache.hadoop.hive.serde2.thrift.ColumnBuffer.get(ColumnBuffer.java:292)
      at org.apache.hive.service.cli.ColumnBasedSet$1.next(ColumnBasedSet.java:186)
      at org.apache.hive.service.cli.ColumnBasedSet$1.next(ColumnBasedSet.java:173)
      at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:382)
      ... 32 more

      Attachments

        Activity

          People

            LTChen Chen LT
            LTChen Chen LT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: