You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Navis (JIRA)" <ji...@apache.org> on 2012/07/05 04:10:34 UTC

[jira] [Created] (HIVE-3226) ColumnPruner is not working on LateralView

Navis created HIVE-3226:
---------------------------

             Summary: ColumnPruner is not working on LateralView
                 Key: HIVE-3226
                 URL: https://issues.apache.org/jira/browse/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,
{noformat}
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(ExecReducer.java:157)
	... 14 more
Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3226) ColumnPruner is not working on LateralView

Posted by "Kevin Wilfong (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433741#comment-13433741 ] 

Kevin Wilfong commented on HIVE-3226:
-------------------------------------

Commented on the diff, mostly around documentation.
                
> ColumnPruner is not working on LateralView
> ------------------------------------------
>
>                 Key: HIVE-3226
>                 URL: https://issues.apache.org/jira/browse/HIVE-3226
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>         Attachments: HIVE-3226.1.patch.txt
>
>
> Column pruning is not applied to LVJ and SEL operator, which makes exceptions at various stages. For example,
> {noformat}
> 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(ExecReducer.java:157)
> 	... 14 more
> Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
> 	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
> 	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
> 	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
> 	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
> 	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3226) ColumnPruner is not working on LateralView

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan updated HIVE-3226:
-----------------------------------

    Fix Version/s: 0.10.0
    
> ColumnPruner is not working on LateralView
> ------------------------------------------
>
>                 Key: HIVE-3226
>                 URL: https://issues.apache.org/jira/browse/HIVE-3226
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>             Fix For: 0.10.0
>
>         Attachments: HIVE-3226.1.patch.txt, HIVE-3226.2.patch.txt
>
>
> Column pruning is not applied to LVJ and SEL operator, which makes exceptions at various stages. For example,
> {noformat}
> 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(ExecReducer.java:157)
> 	... 14 more
> Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
> 	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
> 	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
> 	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
> 	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
> 	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (HIVE-3226) ColumnPruner is not working on LateralView

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440969#comment-13440969 ] 

Namit Jain commented on HIVE-3226:
----------------------------------

This one slipped. Running tests again
                
> ColumnPruner is not working on LateralView
> ------------------------------------------
>
>                 Key: HIVE-3226
>                 URL: https://issues.apache.org/jira/browse/HIVE-3226
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>         Attachments: HIVE-3226.1.patch.txt, HIVE-3226.2.patch.txt
>
>
> Column pruning is not applied to LVJ and SEL operator, which makes exceptions at various stages. For example,
> {noformat}
> 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(ExecReducer.java:157)
> 	... 14 more
> Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
> 	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
> 	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
> 	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
> 	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
> 	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3226) ColumnPruner is not working on LateralView

Posted by "Navis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis updated HIVE-3226:
------------------------

    Attachment: HIVE-3226.1.patch.txt
    
> ColumnPruner is not working on LateralView
> ------------------------------------------
>
>                 Key: HIVE-3226
>                 URL: https://issues.apache.org/jira/browse/HIVE-3226
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>         Attachments: HIVE-3226.1.patch.txt
>
>
> Column pruning is not applied to LVJ and SEL operator, which makes exceptions at various stages. For example,
> {noformat}
> 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(ExecReducer.java:157)
> 	... 14 more
> Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
> 	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
> 	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
> 	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
> 	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
> 	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3226) ColumnPruner is not working on LateralView

Posted by "Navis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis updated HIVE-3226:
------------------------

    Attachment: HIVE-3226.2.patch.txt
    
> ColumnPruner is not working on LateralView
> ------------------------------------------
>
>                 Key: HIVE-3226
>                 URL: https://issues.apache.org/jira/browse/HIVE-3226
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>         Attachments: HIVE-3226.1.patch.txt, HIVE-3226.2.patch.txt
>
>
> Column pruning is not applied to LVJ and SEL operator, which makes exceptions at various stages. For example,
> {noformat}
> 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(ExecReducer.java:157)
> 	... 14 more
> Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
> 	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
> 	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
> 	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
> 	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
> 	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3226) ColumnPruner is not working on LateralView

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436549#comment-13436549 ] 

Namit Jain commented on HIVE-3226:
----------------------------------

+1

Running tests
                
> ColumnPruner is not working on LateralView
> ------------------------------------------
>
>                 Key: HIVE-3226
>                 URL: https://issues.apache.org/jira/browse/HIVE-3226
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>         Attachments: HIVE-3226.1.patch.txt, HIVE-3226.2.patch.txt
>
>
> Column pruning is not applied to LVJ and SEL operator, which makes exceptions at various stages. For example,
> {noformat}
> 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(ExecReducer.java:157)
> 	... 14 more
> Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
> 	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
> 	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
> 	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
> 	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
> 	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3226) ColumnPruner is not working on LateralView

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433899#comment-13433899 ] 

Namit Jain commented on HIVE-3226:
----------------------------------

also commented.
looks good to me
                
> ColumnPruner is not working on LateralView
> ------------------------------------------
>
>                 Key: HIVE-3226
>                 URL: https://issues.apache.org/jira/browse/HIVE-3226
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>         Attachments: HIVE-3226.1.patch.txt
>
>
> Column pruning is not applied to LVJ and SEL operator, which makes exceptions at various stages. For example,
> {noformat}
> 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(ExecReducer.java:157)
> 	... 14 more
> Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
> 	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
> 	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
> 	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
> 	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
> 	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-3226) ColumnPruner is not working on LateralView

Posted by "Navis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436535#comment-13436535 ] 

Navis commented on HIVE-3226:
-----------------------------

added comments
                
> ColumnPruner is not working on LateralView
> ------------------------------------------
>
>                 Key: HIVE-3226
>                 URL: https://issues.apache.org/jira/browse/HIVE-3226
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.10.0
>            Reporter: Navis
>            Assignee: Navis
>         Attachments: HIVE-3226.1.patch.txt, HIVE-3226.2.patch.txt
>
>
> Column pruning is not applied to LVJ and SEL operator, which makes exceptions at various stages. For example,
> {noformat}
> 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(ExecReducer.java:157)
> 	... 14 more
> Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
> 	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
> 	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
> 	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
> 	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
> 	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-3226) ColumnPruner is not working on LateralView

Posted by "Navis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-3226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis updated HIVE-3226:
------------------------

    Status: Patch Available  (was: Open)

https://reviews.facebook.net/D3987
                
> ColumnPruner is not working on LateralView
> ------------------------------------------
>
>                 Key: HIVE-3226
>                 URL: https://issues.apache.org/jira/browse/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,
> {noformat}
> 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(ExecReducer.java:157)
> 	... 14 more
> Caused by: java.lang.RuntimeException: cannot find field _col0 from [0:_col5]
> 	at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:345)
> 	at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:143)
> 	at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:57)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:896)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:922)
> 	at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
> 	at org.apache.hadoop.hive.ql.exec.JoinOperator.initializeOp(JoinOperator.java:62)
> 	at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
> 	at org.apache.hadoop.hive.ql.exec.ExecReducer.configure(ExecReducer.java:150)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira