You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jitendra Nath Pandey (JIRA)" <ji...@apache.org> on 2014/03/23 22:05:43 UTC

[jira] [Updated] (HIVE-6349) Column name map is broken

     [ https://issues.apache.org/jira/browse/HIVE-6349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jitendra Nath Pandey updated HIVE-6349:
---------------------------------------

    Attachment: HIVE-6349.1.patch

The attached patch makes VectorSelectOperator implement VectorizedRegionContext. Therefore, VectorSelectOperator also gives out a vectorization context with updated column map. However, VectorSelectOperator doesn't create a new row batch, therefore it re-uses the same Output Column Manager from its parent's vectorization context.This is important because then, it doesn't have to allocate scratch columns.

> Column name map is broken 
> --------------------------
>
>                 Key: HIVE-6349
>                 URL: https://issues.apache.org/jira/browse/HIVE-6349
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Jitendra Nath Pandey
>            Assignee: Jitendra Nath Pandey
>         Attachments: HIVE-6349.1.patch
>
>
> Following query results in exception at run time in vector mode.
> {code}
> explain select n_name from supplier_orc s join ( select n_name, n_nationkey from nation_orc n join region_orc r on n.n_regionkey = r.r_regionkey and r.r_name = 'XYZ') n1 on s.s_nationkey = n1.n_nationkey;
> {code}
> Here n_name is a string and all other fields are int.
> The stack trace:
> {code}
> java.lang.RuntimeException: Hive Runtime Error while closing operators
> 	at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.close(ExecMapper.java:260)
> 	at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:57)
> 	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:429)
> 	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:365)
> 	at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:396)
> 	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)
> 	at org.apache.hadoop.mapred.Child.main(Child.java:249)
> Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector cannot be cast to org.apache.hadoop.hive.ql.exec.vector.LongColumnVector
> 	at org.apache.hadoop.hive.ql.exec.vector.VectorHashKeyWrapperBatch.evaluateBatch(VectorHashKeyWrapperBatch.java:116)
> 	at org.apache.hadoop.hive.ql.exec.vector.VectorMapJoinOperator.processOp(VectorMapJoinOperator.java:280)
> 	at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:790)
> 	at org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator.processOp(VectorSelectOperator.java:133)
> 	at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:790)
> 	at org.apache.hadoop.hive.ql.exec.vector.VectorMapJoinOperator.flushOutput(VectorMapJoinOperator.java:246)
> 	at org.apache.hadoop.hive.ql.exec.vector.VectorMapJoinOperator.closeOp(VectorMapJoinOperator.java:253)
> 	at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:574)
> 	at org.apache.hadoop.hive.ql.exec.Operator.close(Operator.java:585)
> 	at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.close(ExecMapper.java:234)
> 	... 8 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)