Hive
  1. Hive
  2. HIVE-4160 Vectorized Query Execution in Hive
  3. HIVE-4716

Classcast exception with two group by keys of types string and tinyint.

    Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: vectorization-branch
    • Fix Version/s: vectorization-branch, 0.13.0
    • Component/s: None
    • Labels:
      None

      Description

      Query:
      select t,sum,s from orcsmall where s > "aaa" group by t, s;

      t : tinyint
      i : int
      s : string

      Exception:

      Diagnostic Messages for this Task:
      java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing
      at org.apache.hadoop.hive.ql.exec.vector.VectorExecMapper.map(VectorExecMapper.java:164)
      at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
      at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:358)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
      at org.apache.hadoop.mapred.Child.main(Child.java:170)
      Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing
      at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.process(VectorMapOperator.java:752)
      at org.apache.hadoop.hive.ql.exec.vector.VectorExecMapper.map(VectorExecMapper.java:146)
      ... 4 more
      Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.ql.exec.vector.LongColumnVector cannot be cast to org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector
      at org.apache.hadoop.hive.ql.exec.vector.VectorHashKeyWrapperBatch.evaluateBatch(VectorHashKeyWrapperBatch.java:151)
      at org.apache.hadoop.hive.ql.exec.vector.VectorGroupByOperator.processOp(VectorGroupByOperator.java:145)
      at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:502)
      at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:832)
      at org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator.processOp(VectorSelectOperator.java:120)
      at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:502)
      at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:832)
      at org.apache.hadoop.hive.ql.exec.vector.VectorFilterOperator.processOp(VectorFilterOperator.java:91)
      at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:502)
      at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:832)
      at org.apache.hadoop.hive.ql.exec.TableScanOperator.processOp(TableScanOperator.java:90)
      at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:502)
      at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:832)
      at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.process(VectorMapOperator.java:745)
      ... 5 more

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Remus Rusanu
              Reporter:
              Jitendra Nath Pandey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development