[ https://issues.apache.org/jira/browse/HIVE-21742?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16846401#comment-16846401 ]
Hive QA commented on HIVE-21742: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12969452/HIVE-21742.1.patch {color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified. {color:red}ERROR:{color} -1 due to 37 failed/errored test(s), 16057 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[deleteAnalyze] (batchId=34) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[infer_join_preds] (batchId=27) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[semijoin5] (batchId=17) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[union_offcbo] (batchId=49) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[vector_case_when_1] (batchId=93) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[vector_case_when_2] (batchId=59) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[vector_coalesce] (batchId=12) org.apache.hadoop.hive.cli.TestMiniDruidKafkaCliDriver.testCliDriver[druidkafkamini_basic] (batchId=286) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[subquery_select] (batchId=171) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_case_when_1] (batchId=184) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_coalesce] (batchId=162) org.apache.hadoop.hive.cli.TestSparkCliDriver.testCliDriver[subquery_select] (batchId=130) org.apache.hadoop.hive.cli.TestSparkPerfCliDriver.testCliDriver[query40] (batchId=288) org.apache.hadoop.hive.cli.TestSparkPerfCliDriver.testCliDriver[query49] (batchId=288) org.apache.hadoop.hive.cli.TestSparkPerfCliDriver.testCliDriver[query78] (batchId=288) org.apache.hadoop.hive.cli.TestSparkPerfCliDriver.testCliDriver[query80] (batchId=288) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query2] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query39] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query40] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query43] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query49] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query59] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query66] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query77] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query78] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfCliDriver.testCliDriver[cbo_query80] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query2] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query39] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query40] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query43] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query49] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query59] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query66] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query77] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query78] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[cbo_query80] (batchId=286) org.apache.hadoop.hive.cli.TestTezPerfConstraintsCliDriver.testCliDriver[mv_query67] (batchId=286) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/17285/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/17285/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-17285/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 37 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12969452 - PreCommit-HIVE-Build > Vectorization: CASE result type casting > --------------------------------------- > > Key: HIVE-21742 > URL: https://issues.apache.org/jira/browse/HIVE-21742 > Project: Hive > Issue Type: Bug > Components: Logical Optimizer, Vectorization > Affects Versions: 3.1.1 > Reporter: Gopal V > Assignee: Vineet Garg > Priority: Major > Attachments: HIVE-21742.1.patch > > > {code} > create temporary table foo(q548284 int); > insert into foo values(1),(2),(3),(4),(5),(6); > select q548284, CASE WHEN ((q548284 = 1)) THEN (0.2) WHEN ((q548284 = 2)) > THEN (0.4) WHEN ((q548284 = 3)) THEN (0.6) WHEN ((q548284 = 4)) THEN (0.8) > WHEN ((q548284 = 5)) THEN (1) ELSE (null) END from foo order by q548284 limit > 1; > {code} > Fails with > {code} > Caused by: java.lang.ClassCastException: > org.apache.hadoop.hive.ql.exec.vector.LongColumnVector cannot be cast to > org.apache.hadoop.hive.ql.exec.vector.DecimalColumnVector > at > org.apache.hadoop.hive.ql.exec.vector.DecimalColumnVector.setElement(DecimalColumnVector.java:130) > at > org.apache.hadoop.hive.ql.exec.vector.expressions.IfExprColumnNull.evaluate(IfExprColumnNull.java:101) > {code} > This gets fixed if the case return of (1) is turned into a (1.0). -- This message was sent by Atlassian JIRA (v7.6.3#76005)