hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gop...@apache.org
Subject hive git commit: HIVE-10707: CBO: dump AST only when in DEBUG mode. (Gopal V, reviewed by Gunther Hagleitner)
Date Mon, 22 Jun 2015 19:30:54 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-1 f3f57ffd2 -> 4a098b267


HIVE-10707: CBO: dump AST only when in DEBUG mode. (Gopal V, reviewed by Gunther Hagleitner)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/4a098b26
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/4a098b26
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/4a098b26

Branch: refs/heads/branch-1
Commit: 4a098b2672cf0a662bb1449a4e007ad5a9dee384
Parents: f3f57ff
Author: Gopal V <gopalv@apache.org>
Authored: Mon Jun 22 12:28:26 2015 -0700
Committer: Gopal V <gopalv@apache.org>
Committed: Mon Jun 22 12:28:26 2015 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/4a098b26/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
index d545bf0..c5b0afe 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java
@@ -271,7 +271,9 @@ public class CalcitePlanner extends SemanticAnalyzer {
             LOG.info("CBO Succeeded; optimized logical plan.");
             this.ctx.setCboInfo("Plan optimized by CBO.");
             this.ctx.setCboSucceeded(true);
-            LOG.debug(newAST.dump());
+            if (LOG.isDebugEnabled()) {
+              LOG.debug(newAST.dump());
+            }
           }
         } catch (Exception e) {
           boolean isMissingStats = noColsMissingStats.get() > 0;


Mime
View raw message