[ https://issues.apache.org/jira/browse/SPARK-35225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17331711#comment-17331711 ]
Apache Spark commented on SPARK-35225: -------------------------------------- User 'imback82' has created a pull request for this issue: https://github.com/apache/spark/pull/32342 > EXPLAIN command should handle empty output of an analyzed plan > -------------------------------------------------------------- > > Key: SPARK-35225 > URL: https://issues.apache.org/jira/browse/SPARK-35225 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.2.0 > Reporter: Terry Kim > Priority: Major > > Currently, EXPLAIN command puts an empty line if there is no output for an > analyzed plan. For example, > {code:java} > sql("CREATE VIEW test AS SELECT 1").explain(true) > {code} > produces: > {code:java} > == Parsed Logical Plan == > 'CreateViewStatement [test], SELECT 1, false, false, PersistedView > +- 'Project [unresolvedalias(1, None)] > +- OneRowRelation > == Analyzed Logical Plan == > CreateViewCommand `default`.`test`, SELECT 1, false, false, PersistedView, > true > +- Project [1 AS 1#7] > +- OneRowRelation > == Optimized Logical Plan == > CreateViewCommand `default`.`test`, SELECT 1, false, false, PersistedView, > true > +- Project [1 AS 1#7] > +- OneRowRelation > == Physical Plan == > Execute CreateViewCommand > +- CreateViewCommand `default`.`test`, SELECT 1, false, false, > PersistedView, true > +- Project [1 AS 1#7] > +- OneRowRelation > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org