You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Aditya Pant (JIRA)" <ji...@apache.org> on 2018/05/22 13:28:00 UTC

[jira] [Created] (HIVE-19650) Hive query fails with ArrayIndexOutOfBoundsException with multi-insert query when execution engine is MapReduce

Aditya Pant created HIVE-19650:
----------------------------------

             Summary: Hive query fails with ArrayIndexOutOfBoundsException with multi-insert query when execution engine is MapReduce
                 Key: HIVE-19650
                 URL: https://issues.apache.org/jira/browse/HIVE-19650
             Project: Hive
          Issue Type: Bug
    Affects Versions: 1.2.1
            Reporter: Aditya Pant
         Attachments: ebf11671_repro_script.zip, error_stack_trace.log

When a Hive query of the form:

FROM <table>...

INSERT OVERWRITE TABLE <table1>...

INSERT OVERWRITE TABLE <table2>...

INSERT OVERWRITE TABLE <table3>;

is run from the Hive shell, it fails with the following exception:

{{Caused by: java.lang.ArrayIndexOutOfBoundsException: 70077}}
{{ at org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryUtils.readVInt(LazyBinaryUtils.java:304)}}
{{ at org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryUtils.checkObjectByteInfo(LazyBinaryUtils.java:183)}}
{{ at org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryStruct.parse(LazyBinaryStruct.java:142)}}
{{ at org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryStruct.getField(LazyBinaryStruct.java:199)}}
{{ at org.apache.hadoop.hive.serde2.lazybinary.objectinspector.LazyBinaryStructObjectInspector.getStructFieldData(LazyBinaryStructObjectInspector.java:64)}}
{{ at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator._evaluate(ExprNodeColumnEvaluator.java:94)}}
{{ at org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(ExprNodeEvaluator.java:77)}}
{{ at org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(ExprNodeEvaluator.java:65)}}
{{ at org.apache.hadoop.hive.ql.exec.ReduceSinkOperator.populateCachedDistributionKeys(ReduceSinkOperator.java:438)}}
{{ at org.apache.hadoop.hive.ql.exec.ReduceSinkOperator.processOp(ReduceSinkOperator.java:339)}}
{{ ... 13 more}}

The full stack trace (*error_stack_trace.log*) is attached along with a zip file (*ebf11671_repro_script.zip*) that contains a script to reproduce this issue from the Hive shell.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)