hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <>
Subject [jira] [Created] (HIVE-3226) ColumnPruner is not working on LateralView
Date Thu, 05 Jul 2012 02:10:34 GMT
Navis created HIVE-3226:

             Summary: ColumnPruner is not working on LateralView
                 Key: HIVE-3226
             Project: Hive
          Issue Type: Bug
          Components: Query Processor
    Affects Versions: 0.10.0
            Reporter: Navis
            Assignee: Navis

Column pruning is not applied to LVJ and SEL operator, which makes exceptions at various stages.
For example,
drop table array_valued_src;
create table array_valued_src (key string, value array<string>);
insert overwrite table array_valued_src select key, array(value) from src;

select sum(val) from (select a.key as key, b.value as array_val from src a join array_valued_src
b on a.key=b.key) i lateral view explode (array_val) c as val;

... 9 more
Caused by: java.lang.RuntimeException: Reduce operator initialization failed
	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(
	... 14 more
Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(
	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(
	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(
	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(
	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(
	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(
	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(
	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(
	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message