[ https://issues.apache.org/jira/browse/HIVE-24553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chao Sun resolved HIVE-24553. ----------------------------- Fix Version/s: 2.3.8 Hadoop Flags: Reviewed Assignee: L. C. Hsieh Resolution: Fixed > Exclude calcite from test-jar dependency of hive-exec > ----------------------------------------------------- > > Key: HIVE-24553 > URL: https://issues.apache.org/jira/browse/HIVE-24553 > Project: Hive > Issue Type: Bug > Affects Versions: 2.3.8 > Reporter: L. C. Hsieh > Assignee: L. C. Hsieh > Priority: Blocker > Labels: pull-request-available > Fix For: 2.3.8 > > Time Spent: 0.5h > Remaining Estimate: 0h > > The test "org.apache.hive.beeline.cli.TestHiveCli - testSetHeaderValue" we > found the exception: > {code} > Caused by: java.lang.NoSuchMethodError: > org.apache.calcite.rel.RelCollationImpl.<init>(Lorg/apache/hive/com/google/common/collect/ImmutableList;)V > at > org.apache.hadoop.hive.ql.optimizer.calcite.HiveRelCollation.<init>(HiveRelCollation.java:29) > ~[hive-exec-2.3.8.jar:2.3.8] > at > org.apache.hadoop.hive.ql.optimizer.calcite.RelOptHiveTable.getCollationList(RelOptHiveTable.java:181) > ~[hive-exec-2.3.8.jar:2.3.8] > at > org.apache.calcite.rel.metadata.RelMdCollation.table(RelMdCollation.java:175) > ~[calcite-core-1.10.0.jar:1.10.0] > at > org.apache.calcite.rel.metadata.RelMdCollation.collations(RelMdCollation.java:122) > ~[calcite-core-1.10.0.jar:1.10.0] > at GeneratedMetadataHandler_Collation.collations_$(Unknown Source) > ~[?:?] > at GeneratedMetadataHandler_Collation.collations(Unknown Source) ~[?:?] > at > org.apache.calcite.rel.metadata.RelMetadataQuery.collations(RelMetadataQuery.java:482) > ~[calcite-core-1.10.0.jar:1.10.0] > at > org.apache.calcite.sql2rel.RelFieldTrimmer.trimChild(RelFieldTrimmer.java:189) > ~[calcite-core-1.10.0.jar:1.10.0] > at > org.apache.calcite.sql2rel.RelFieldTrimmer.trimFields(RelFieldTrimmer.java:374) > ~[calcite-core-1.10.0.jar:1.10.0] > at > org.apache.hadoop.hive.ql.optimizer.calcite.rules.HiveRelFieldTrimmer.trimFields(HiveRelFieldTrimmer.java:273) > ~[hive-exec-2.3.8.jar:2.3.8] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[?:1.8.0_262] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > ~[?:1.8.0_262] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:1.8.0_262] > at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_262] > at org.apache.calcite.util.ReflectUtil$2.invoke(ReflectUtil.java:531) > ~[calcite-core-1.10.0.jar:1.10.0] > at > org.apache.calcite.sql2rel.RelFieldTrimmer.dispatchTrimFields(RelFieldTrimmer.java:270) > ~[calcite-core-1.10.0.jar:1.10.0] > at > org.apache.calcite.sql2rel.RelFieldTrimmer.trim(RelFieldTrimmer.java:160) > ~[calcite-core-1.10.0.jar:1.10.0] > at > org.apache.hadoop.hive.ql.parse.CalcitePlanner$CalcitePlannerAction.apply(CalcitePlanner.java:1331) > ~[hive-exec-2.3.8.jar:2.3.8] > at > org.apache.hadoop.hive.ql.parse.CalcitePlanner$CalcitePlannerAction.apply(CalcitePlanner.java:1261) > ~[hive-exec-2.3.8.jar:2.3.8] > at org.apache.calcite.tools.Frameworks$1.apply(Frameworks.java:113) > ~[calcite-core-1.10.0.jar:1.10.0] > at > org.apache.calcite.prepare.CalcitePrepareImpl.perform(CalcitePrepareImpl.java:997) > ~[calcite-core-1.10.0.jar:1.10.0] > at org.apache.calcite.tools.Frameworks.withPrepare(Frameworks.java:149) > ~[calcite-core-1.10.0.jar:1.10.0] > at org.apache.calcite.tools.Frameworks.withPlanner(Frameworks.java:106) > ~[calcite-core-1.10.0.jar:1.10.0] > at > org.apache.hadoop.hive.ql.parse.CalcitePlanner.logicalPlan(CalcitePlanner.java:1069) > ~[hive-exec-2.3.8.jar:2.3.8] > at > org.apache.hadoop.hive.ql.parse.CalcitePlanner.getOptimizedAST(CalcitePlanner.java:1085) > ~[hive-exec-2.3.8.jar:2.3.8] > at > org.apache.hadoop.hive.ql.parse.CalcitePlanner.genOPTree(CalcitePlanner.java:364) > ~[hive-exec-2.3.8.jar:2.3.8] > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:11138) > ~[hive-exec-2.3.8.jar:2.3.8] > at > org.apache.hadoop.hive.ql.parse.CalcitePlanner.analyzeInternal(CalcitePlanner.java:286) > ~[hive-exec-2.3.8.jar:2.3.8] > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:258) > ~[hive-exec-2.3.8.jar:2.3.8] > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:512) > ~[hive-exec-2.3.8.jar:2.3.8] > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1317) > ~[hive-exec-2.3.8.jar:2.3.8] > at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1295) > ~[hive-exec-2.3.8.jar:2.3.8] > at > org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:204) > ~[hive-service-2.3.8.jar:2.3.8] > ... 50 more > {code} > This looks like adding dependency of test-jar of hive-exec pulls in the > unshaded calcite dependencies which conflicts with shaded calcite. We should > exclude unshaded calcite when adding test-jar of hive-exec. -- This message was sent by Atlassian Jira (v8.3.4#803005)