[
https://issues.apache.org/jira/browse/SPARK-35133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-35133:
------------------------------------
Assignee: (was: Apache Spark)
> EXPLAIN CODEGEN does not work with AQE
> --------------------------------------
>
> Key: SPARK-35133
> URL: https://issues.apache.org/jira/browse/SPARK-35133
> Project: Spark
> Issue Type: Bug
> 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: [email protected]
For additional commands, e-mail: [email protected]