Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-27632

ClassCast Exception in Vectorization converting decimal64 to decimal

    XMLWordPrintableJSON

Details

    Description

      Attached vectortest.q which fails with the below ClassCast Exception

      Caused by: java.lang.ClassCastException: org.apache.hadoop.hive.ql.exec.vector.Decimal64ColumnVector cannot be cast to org.apache.hadoop.hive.ql.exec.vector.DecimalColumnVector
          at org.apache.hadoop.hive.ql.exec.vector.expressions.gen.FilterDecimalColEqualDecimalScalar.evaluate(FilterDecimalColEqualDecimalScalar.java:64)
          at org.apache.hadoop.hive.ql.exec.vector.VectorFilterOperator.process(VectorFilterOperator.java:125)
          at org.apache.hadoop.hive.ql.exec.Operator.vectorForward(Operator.java:919)
          at org.apache.hadoop.hive.ql.exec.TableScanOperator.process(TableScanOperator.java:171)
          at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.deliverVectorizedRowBatch(VectorMapOperator.java:809)
          at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.process(VectorMapOperator.java:878)
       

      This seems related to HIVE-26208 , which avoids Decimal64 to Decimal conversion for the vector expressions that explicitly handle decimal64 types. However, in this scenario exception comes from `FilterDecimalColEqualDecimalScalar`. 

      Attachments

        1. vectortest.q
          2 kB
          Riju Trivedi

        Activity

          People

            sjc362000 Stephen Carlin
            rtrivedi12 Riju Trivedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: