zabetak commented on code in PR #6230:
URL: https://github.com/apache/hive/pull/6230#discussion_r2623769324


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/ExplainTask.java:
##########
@@ -603,13 +601,8 @@ public int execute() {
         } else {
           JSONObject jsonPlan = getJSONPlan(out, work);
           if (work.isFormatted()) {
-            // use the parser to get the output operators of RS
-            JsonParser jsonParser = JsonParserFactory.getParser(conf);
-            if (jsonParser != null) {
-              jsonParser.print(jsonPlan, null);
-              LOG.info("JsonPlan is augmented to {}", jsonPlan);

Review Comment:
   If we add a log message will it help in debugging? Scenarios where users 
complain about missing elements (or problems) in EXPLAIN output are rather 
rare. Even if it happens, it would probably be sufficient to debug the 
problematic case locally instead of checking the INFO/DEBUG logs for an 
intermediate state of the plan.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to