[ 
https://issues.apache.org/jira/browse/SPARK-35133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17340476#comment-17340476
 ] 

Dongjoon Hyun commented on SPARK-35133:
---------------------------------------

Thank you, [~chengsu] and all.
I collected this issue as a subtask of SPARK-33828 to give more visibility.

> EXPLAIN CODEGEN does not work with AQE
> --------------------------------------
>
>                 Key: SPARK-35133
>                 URL: https://issues.apache.org/jira/browse/SPARK-35133
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Cheng Su
>            Priority: Major
>
> `EXPLAIN CODEGEN <query>` (and Dataset.explain("codegen")) prints out the 
> generated code for each stage of plan. The current implementation is to match 
> `WholeStageCodegenExec` operator in query plan and prints out generated code 
> ([https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/debug/package.scala#L111-L118]
>  ). This does not work with AQE as we wrap the whole query plan inside 
> `AdaptiveSparkPlanExec` and do not run whole stage code-gen physical plan 
> rule eagerly (`CollapseCodegenStages`). This introduces unexpected behavior 
> change for EXPLAIN query (and Dataset.explain), as we enable AQE by default 
> now.



--
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

Reply via email to