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

Riju Trivedi reassigned HIVE-27632:
-----------------------------------

    Assignee: Stephen Carlin

> ClassCast Exception in Vectorization converting decimal64 to decimal
> --------------------------------------------------------------------
>
>                 Key: HIVE-27632
>                 URL: https://issues.apache.org/jira/browse/HIVE-27632
>             Project: Hive
>          Issue Type: Bug
>          Components: Vectorization
>            Reporter: Riju Trivedi
>            Assignee: Stephen Carlin
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: vectortest.q
>
>
> Attached [^vectortest.q] which fails with the below ClassCast Exception
> {code:java}
> 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)
>  {code}
> 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`. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to