You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/04/27 02:11:00 UTC
[jira] [Resolved] (SPARK-35225) EXPLAIN command should handle empty
output of an analyzed plan
[ https://issues.apache.org/jira/browse/SPARK-35225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-35225.
----------------------------------
Fix Version/s: 3.2.0
Assignee: Terry Kim
Resolution: Fixed
Fixed inĀ [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
> Assignee: Terry Kim
> Priority: Major
> Fix For: 3.2.0
>
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org