You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Hari Sankar Sivarama Subramaniyan (JIRA)" <ji...@apache.org> on 2015/12/03 01:57:10 UTC
[jira] [Created] (HIVE-12580) CalcitePlanner.genOpTree tries to run
with cbo disable even after a semantic analysis exception
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)