[
https://issues.apache.org/jira/browse/SPARK-48273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun closed SPARK-48273.
---------------------------------
> Late rewrite of PlanWithUnresolvedIdentifier
> --------------------------------------------
>
> Key: SPARK-48273
> URL: https://issues.apache.org/jira/browse/SPARK-48273
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Nikola Mandic
> Assignee: Nikola Mandic
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.2, 4.0.0
>
>
> PlanWithUnresolvedIdentifier is rewritten later in analysis which causes
> rules likeĀ
> SubstituteUnresolvedOrdinals to miss the new plan. This causes following
> queries to fail:
> {code:java}
> create temporary view identifier('v1') as (select my_col from (values (1),
> (2), (1) as (my_col)) group by 1);
> --
> cache table identifier('t1') as (select my_col from (values (1), (2), (1) as
> (my_col)) group by 1);
> --
> create table identifier('t2') as (select my_col from (values (1), (2), (1)
> as (my_col)) group by 1);
> insert into identifier('t2') select my_col from (values (3) as (my_col))
> group by 1; {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]