Repository: hive Updated Branches: refs/heads/master 98250bbe6 -> 99f142c9a
HIVE-15442: Driver.java has a redundancy code (Saijin Huang, reviewed by Aihua Xu) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/579f5d7e Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/579f5d7e Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/579f5d7e Branch: refs/heads/master Commit: 579f5d7e6ef87f108e5c482f30f72e612ef571ef Parents: 98250bb Author: Aihua Xu <aihu...@apache.org> Authored: Mon Apr 17 09:25:39 2017 -0400 Committer: Aihua Xu <aihu...@apache.org> Committed: Mon Apr 17 09:25:39 2017 -0400 ---------------------------------------------------------------------- ql/src/java/org/apache/hadoop/hive/ql/Driver.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/579f5d7e/ql/src/java/org/apache/hadoop/hive/ql/Driver.java ---------------------------------------------------------------------- diff --git a/ql/src/java/org/apache/hadoop/hive/ql/Driver.java b/ql/src/java/org/apache/hadoop/hive/ql/Driver.java index a2ce71d..03ea997 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/Driver.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/Driver.java @@ -561,10 +561,8 @@ public class Driver implements CommandProcessor { if (conf.getBoolVar(ConfVars.HIVE_LOG_EXPLAIN_OUTPUT)) { String explainOutput = getExplainOutput(sem, plan, tree); if (explainOutput != null) { - if (conf.getBoolVar(ConfVars.HIVE_LOG_EXPLAIN_OUTPUT)) { - LOG.info("EXPLAIN output for queryid " + queryId + " : " - + explainOutput); - } + LOG.info("EXPLAIN output for queryid " + queryId + " : " + + explainOutput); if (conf.isWebUiQueryInfoCacheEnabled()) { queryDisplay.setExplainPlan(explainOutput); }