[ https://issues.apache.org/jira/browse/HIVE-26550?focusedWorklogId=814286&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-814286 ]
ASF GitHub Bot logged work on HIVE-26550: ----------------------------------------- Author: ASF GitHub Bot Created on: 06/Oct/22 08:28 Start Date: 06/Oct/22 08:28 Worklog Time Spent: 10m Work Description: szlta merged PR #3638: URL: https://github.com/apache/hive/pull/3638 Issue Time Tracking ------------------- Worklog Id: (was: 814286) Time Spent: 0.5h (was: 20m) > Const struct equality operator throws error when CBO is off and vectorization > is on > ----------------------------------------------------------------------------------- > > Key: HIVE-26550 > URL: https://issues.apache.org/jira/browse/HIVE-26550 > Project: Hive > Issue Type: Bug > Reporter: Hankó Gergely > Assignee: Hankó Gergely > Priority: Major > Labels: pull-request-available > Time Spent: 0.5h > Remaining Estimate: 0h > > Repro: > {code:java} > set hive.fetch.task.conversion=none; > set hive.cbo.enable=false; > create table test (a string) partitioned by (y string, m string); > insert into test values ('aa', 2022, 9); > select * from test where (struct(2022) = struct(2022));{code} > Result: > {code:java} > Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to > org.apache.hadoop.io.IntWritable > at > org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableIntObjectInspector.get(WritableIntObjectInspector.java:36) > at > org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.compare(ObjectInspectorUtils.java:1090) > at > org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.compare(ObjectInspectorUtils.java:1207) > at > org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.compare(ObjectInspectorUtils.java:1043) > at > org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.compare(ObjectInspectorUtils.java:1034) > at > org.apache.hadoop.hive.ql.udf.generic.GenericUDFOPEqual.evaluate(GenericUDFOPEqual.java:142) > at > org.apache.hadoop.hive.ql.exec.vector.udf.VectorUDFAdaptor.setResult(VectorUDFAdaptor.java:190) > {code} > Expected (this is the result when CBO is on): > {code:java} > aa 2022 9 {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)