You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2020/12/19 17:26:00 UTC
[jira] [Created] (SPARK-33850) EXPLAIN FORMATTED doesn't show the
plan for subqueries if AQE is enabled
Kousuke Saruta created SPARK-33850:
--------------------------------------
Summary: EXPLAIN FORMATTED doesn't show the plan for subqueries if AQE is enabled
Key: SPARK-33850
URL: https://issues.apache.org/jira/browse/SPARK-33850
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 3.2.0
Reporter: Kousuke Saruta
Assignee: Kousuke Saruta
When AQE is enabled, EXPLAIN FORMATTED doesn't show the plan for subqueries.
{code}
spark.conf.set("spark.sql.adaptive.enabled", "true")
val df = spark.range(1, 100)
df.createTempView("df")
spark.sql("SELECT (SELECT min(id) AS v FROM df)").explain("FORMATTED")
== Physical Plan ==
AdaptiveSparkPlan (3)
+- Project (2)
+- Scan OneRowRelation (1)
(1) Scan OneRowRelation
Output: []
Arguments: ParallelCollectionRDD[0] at explain at <console>:24, OneRowRelation, UnknownPartitioning(0)
(2) Project
Output [1]: [Subquery subquery#3, [id=#20] AS scalarsubquery()#5L]
Input: []
(3) AdaptiveSparkPlan
Output [1]: [scalarsubquery()#5L]
Arguments: isFinalPlan=false
{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