You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Gold huang (JIRA)" <ji...@apache.org> on 2016/12/16 03:04:58 UTC

[jira] [Updated] (HIVE-15442) Driver.java has a redundancy code

     [ https://issues.apache.org/jira/browse/HIVE-15442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gold huang updated HIVE-15442:
------------------------------
    Status: Patch Available  (was: Open)

> Driver.java has a redundancy  code
> ----------------------------------
>
>                 Key: HIVE-15442
>                 URL: https://issues.apache.org/jira/browse/HIVE-15442
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>            Reporter: Gold huang
>            Assignee: Gold huang
>            Priority: Minor
>         Attachments: patch
>
>
> Driver.java has a  redundancy  code,i think the third if statement could be remved.
> if (conf.getBoolVar(ConfVars.HIVE_LOG_EXPLAIN_OUTPUT)) {
>         String explainOutput = getExplainOutput(sem, plan, tree.dump());
>         if (explainOutput != null) {
>           if (conf.getBoolVar(ConfVars.HIVE_LOG_EXPLAIN_OUTPUT)) {
>             LOG.info("EXPLAIN output for queryid " + queryId + " : " + explainOutput);
>           }
>           if (conf.isWebUiQueryInfoCacheEnabled()) {
>             queryDisplay.setExplainPlan(explainOutput);
>           }
>         }
>       }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)