FAQ
Author: xuefu
Date: Thu Mar 12 13:03:46 2015
New Revision: 1666174

URL: http://svn.apache.org/r1666174
Log:
HIVE-9939: Code cleanup for redundant if check in ExplainTask [Spark Branch] (Chinna via Xuefu)

Modified:
     hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java

Modified: hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java
URL: http://svn.apache.org/viewvc/hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java?rev=1666174&r1=1666173&r2=1666174&view=diff
==============================================================================
--- hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java (original)
+++ hive/branches/spark/ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java Thu Mar 12 13:03:46 2015
@@ -284,15 +284,10 @@ public class ExplainTask extends Task<Ex
          JSONObject jsonDependencies = getJSONDependencies(work);
          out.print(jsonDependencies);
        } else {
- if (work.getDependency()) {
- JSONObject jsonDependencies = getJSONDependencies(work);
- out.print(jsonDependencies);
- } else {
- JSONObject jsonPlan = getJSONPlan(out, work);
- if (work.isFormatted()) {
- out.print(jsonPlan);
- }
- }
+ JSONObject jsonPlan = getJSONPlan(out, work);
+ if (work.isFormatted()) {
+ out.print(jsonPlan);
+ }
        }

        out.close();

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedMar 12, '15 at 1:03p
activeMar 12, '15 at 1:03p
posts1
users1
websitehive.apache.org

1 user in discussion

Xuefu: 1 post

People

Translate

site design / logo © 2021 Grokbase