Ziqi Liu created SPARK-54560:
--------------------------------
Summary: QueryPlan._subqueries force type casting
Key: SPARK-54560
URL: https://issues.apache.org/jira/browse/SPARK-54560
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 4.1.0
Reporter: Ziqi Liu
`QueryPlan._subqueries` is dangerous because it force type casting ([code
pointer|https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala#L524])
Imagine a `SparkPlan` instance invoke this API where some of its subqueries
could be `LogicalPlan`(this could happen in AQE where logical->phyiscal
planning happen respectively in main/sub queries and they could be out-of-sync
at a specific point.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]