[ https://issues.apache.org/jira/browse/HIVE-8390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Shelukhin updated HIVE-8390: ----------------------------------- Attachment: HIVE-8390.patch > CBO produces annoying exception message when there are no stats > --------------------------------------------------------------- > > Key: HIVE-8390 > URL: https://issues.apache.org/jira/browse/HIVE-8390 > Project: Hive > Issue Type: Bug > Components: CBO > Reporter: Sergey Shelukhin > Assignee: Sergey Shelukhin > Priority: Minor > Fix For: 0.14.0 > > Attachments: HIVE-8390.patch > > > {noformat} > java.lang.RuntimeException: java.lang.RuntimeException: > java.lang.reflect.UndeclaredThrowableException > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer$OptiqBasedPlanner.getOptimizedAST(SemanticAnalyzer.java:12249) > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer$OptiqBasedPlanner.access$200(SemanticAnalyzer.java:12223) > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:9904) > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:221) > at > org.apache.hadoop.hive.ql.parse.ExplainSemanticAnalyzer.analyzeInternal(ExplainSemanticAnalyzer.java:74) > at > org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:221) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:415) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:303) > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1068) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1130) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1005) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:995) > at > org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:246) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:198) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:408) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:344) > at org.apache.hadoop.hive.ql.QTestUtil.executeClient(QTestUtil.java:832) > at > org.apache.hadoop.hive.cli.TestCliDriver.runTest(TestCliDriver.java:136) > at > org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_filter_join_breaktask(TestCliDriver.java:120) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at junit.framework.TestCase.runTest(TestCase.java:168) > at junit.framework.TestCase.runBare(TestCase.java:134) > at junit.framework.TestResult$1.protect(TestResult.java:110) > at junit.framework.TestResult.runProtected(TestResult.java:128) > at junit.framework.TestResult.run(TestResult.java:113) > at junit.framework.TestCase.run(TestCase.java:124) > at junit.framework.TestSuite.runTest(TestSuite.java:243) > at junit.framework.TestSuite.run(TestSuite.java:238) > at > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) > at > org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) > at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) > at > org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) > at > org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) > at > org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) > Caused by: java.lang.RuntimeException: > java.lang.reflect.UndeclaredThrowableException > at > net.hydromatic.optiq.tools.Frameworks.withPrepare(Frameworks.java:153) > at > net.hydromatic.optiq.tools.Frameworks.withPlanner(Frameworks.java:109) > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer$OptiqBasedPlanner.getOptimizedAST(SemanticAnalyzer.java:12243) > ... 37 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > at > org.eigenbase.rel.metadata.RelMetadataQuery.getDistinctRowCount(RelMetadataQuery.java:326) > at > org.eigenbase.rel.rules.LoptOptimizeJoinRule.computeJoinCardinality(LoptOptimizeJoinRule.java:581) > at > org.eigenbase.rel.rules.LoptOptimizeJoinRule.getBestNextFactor(LoptOptimizeJoinRule.java:774) > at > org.eigenbase.rel.rules.LoptOptimizeJoinRule.createOrdering(LoptOptimizeJoinRule.java:672) > at > org.eigenbase.rel.rules.LoptOptimizeJoinRule.findBestOrderings(LoptOptimizeJoinRule.java:427) > at > org.eigenbase.rel.rules.LoptOptimizeJoinRule.onMatch(LoptOptimizeJoinRule.java:100) > at > org.eigenbase.relopt.AbstractRelOptPlanner.fireRule(AbstractRelOptPlanner.java:321) > at org.eigenbase.relopt.hep.HepPlanner.applyRule(HepPlanner.java:488) > at org.eigenbase.relopt.hep.HepPlanner.applyRules(HepPlanner.java:365) > at > org.eigenbase.relopt.hep.HepPlanner.executeInstruction(HepPlanner.java:228) > at > org.eigenbase.relopt.hep.HepInstruction$RuleInstance.execute(HepInstruction.java:118) > at > org.eigenbase.relopt.hep.HepPlanner.executeProgram(HepPlanner.java:179) > at org.eigenbase.relopt.hep.HepPlanner.findBestExp(HepPlanner.java:166) > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer$OptiqBasedPlanner.apply(SemanticAnalyzer.java:12307) > at > org.apache.hadoop.hive.ql.parse.SemanticAnalyzer$OptiqBasedPlanner.apply(SemanticAnalyzer.java:12223) > at net.hydromatic.optiq.tools.Frameworks$1.apply(Frameworks.java:113) > at > net.hydromatic.optiq.prepare.OptiqPrepareImpl.perform(OptiqPrepareImpl.java:614) > at > net.hydromatic.optiq.tools.Frameworks.withPrepare(Frameworks.java:151) > ... 39 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.CachingRelMetadataProvider$CachingInvocationHandler.invoke(CachingRelMetadataProvider.java:128) > ... 58 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 63 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 64 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 69 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.CachingRelMetadataProvider$CachingInvocationHandler.invoke(CachingRelMetadataProvider.java:128) > ... 70 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 75 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 76 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 81 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 82 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 87 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ReflectiveRelMetadataProvider$2$1.invoke(ReflectiveRelMetadataProvider.java:139) > ... 88 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > at > org.eigenbase.rel.metadata.RelMetadataQuery.getDistinctRowCount(RelMetadataQuery.java:326) > at > org.eigenbase.rel.metadata.RelMdDistinctRowCount.getDistinctRowCount(RelMdDistinctRowCount.java:220) > ... 93 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.CachingRelMetadataProvider$CachingInvocationHandler.invoke(CachingRelMetadataProvider.java:128) > ... 96 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 101 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 102 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 107 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.CachingRelMetadataProvider$CachingInvocationHandler.invoke(CachingRelMetadataProvider.java:128) > ... 108 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 113 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 114 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 119 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 120 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 125 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ReflectiveRelMetadataProvider$2$1.invoke(ReflectiveRelMetadataProvider.java:139) > ... 126 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > at > org.eigenbase.rel.metadata.RelMetadataQuery.getDistinctRowCount(RelMetadataQuery.java:326) > at > org.eigenbase.rel.metadata.RelMdDistinctRowCount.getDistinctRowCount(RelMdDistinctRowCount.java:103) > ... 131 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.CachingRelMetadataProvider$CachingInvocationHandler.invoke(CachingRelMetadataProvider.java:128) > ... 134 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 139 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 140 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 145 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.CachingRelMetadataProvider$CachingInvocationHandler.invoke(CachingRelMetadataProvider.java:128) > ... 146 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 151 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 152 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 157 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 158 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 163 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ReflectiveRelMetadataProvider$2$1.invoke(ReflectiveRelMetadataProvider.java:139) > ... 164 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > at > org.eigenbase.rel.metadata.RelMetadataQuery.getDistinctRowCount(RelMetadataQuery.java:326) > at > org.eigenbase.rel.metadata.RelMdDistinctRowCount.getDistinctRowCount(RelMdDistinctRowCount.java:103) > ... 169 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.CachingRelMetadataProvider$CachingInvocationHandler.invoke(CachingRelMetadataProvider.java:128) > ... 172 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 177 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 178 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 182 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.CachingRelMetadataProvider$CachingInvocationHandler.invoke(CachingRelMetadataProvider.java:128) > ... 183 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 187 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 188 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 192 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ChainedRelMetadataProvider$ChainedInvocationHandler.invoke(ChainedRelMetadataProvider.java:107) > ... 193 more > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy28.getDistinctRowCount(Unknown Source) > ... 197 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.eigenbase.rel.metadata.ReflectiveRelMetadataProvider$2$1.invoke(ReflectiveRelMetadataProvider.java:139) > ... 198 more > Caused by: java.lang.RuntimeException: No Stats for > default@filter_join_breaktask, Columns: key > at > org.apache.hadoop.hive.ql.optimizer.optiq.RelOptHiveTable.updateColStats(RelOptHiveTable.java:306) > at > org.apache.hadoop.hive.ql.optimizer.optiq.RelOptHiveTable.getColStat(RelOptHiveTable.java:322) > at > org.apache.hadoop.hive.ql.optimizer.optiq.reloperators.HiveTableScanRel.getColStat(HiveTableScanRel.java:90) > at > org.apache.hadoop.hive.ql.optimizer.optiq.stats.HiveRelMdDistinctRowCount.getDistinctRowCount(HiveRelMdDistinctRowCount.java:78) > at > org.apache.hadoop.hive.ql.optimizer.optiq.stats.HiveRelMdDistinctRowCount.getDistinctRowCount(HiveRelMdDistinctRowCount.java:65) > ... 203 more > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)