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

Apache Spark reassigned SPARK-35225:
------------------------------------

    Assignee:     (was: Apache Spark)

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to