[ 
https://issues.apache.org/jira/browse/SPARK-54560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ziqi Liu updated SPARK-54560:
-----------------------------
    Summary: Safe type casting in `QueryPlan._subqueries`  (was: 
QueryPlan._subqueries force type casting)

> Safe type casting in `QueryPlan._subqueries`
> --------------------------------------------
>
>                 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
>            Priority: Major
>
> `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]

Reply via email to