Hari Sankar Sivarama Subramaniyan created HIVE-12580: --------------------------------------------------------
Summary: CalcitePlanner.genOpTree tries to run with cbo disable even after a semantic analysis exception Key: HIVE-12580 URL: https://issues.apache.org/jira/browse/HIVE-12580 Project: Hive Issue Type: Bug Reporter: Hari Sankar Sivarama Subramaniyan Assignee: Hari Sankar Sivarama Subramaniyan The following code in CalcitePlanner.genOPTree looks buggy : {code} if (!conf.getBoolVar(ConfVars.HIVE_IN_TEST) || isMissingStats || e instanceof CalciteSemanticException) { reAnalyzeAST = true; } else if (e instanceof SemanticException) { throw (SemanticException) e; } else if (e instanceof RuntimeException) { throw (RuntimeException) e; } else { throw new SemanticException(e); } {code} If we have missing stats and a Semantic exception thrown from from the try block, we still go ahead and continue to generate a plan with cbo turned off. -- This message was sent by Atlassian JIRA (v6.3.4#6332)