Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • None
    • None

    Description

      Following query results in exception at run time in vector mode.

      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;
      

      Here n_name is a string and all other fields are int.

      The stack trace:

      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
      

      Attachments

        1. HIVE-6349.1.patch
          19 kB
          Jitendra Nath Pandey

        Issue Links

          Activity

            People

              jnp Jitendra Nath Pandey
              jnp Jitendra Nath Pandey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: