You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Mikhail Nikoliukin (Jira)" <ji...@apache.org> on 2025/12/16 17:06:00 UTC

[jira] [Updated] (SPARK-54718) Preserve attributes names during CTE newInstance()

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

Mikhail Nikoliukin updated SPARK-54718:
---------------------------------------
    Affects Version/s: 4.1.0
                           (was: 4.2.0)

> Preserve attributes names during CTE newInstance()
> --------------------------------------------------
>
>                 Key: SPARK-54718
>                 URL: https://issues.apache.org/jira/browse/SPARK-54718
>             Project: Spark
>          Issue Type: Task
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: Mikhail Nikoliukin
>            Priority: Major
>
> Current implementation of CTERelationRef.newInstance() has incorrect behavior if cte has multiple attributes with the same ID but different names. The common case of it: referencing one attribute by names with different cases: {{SELECT COLNAME, colname FROM t
> }}
> Together with the fact that newInstance() is called during exprId deduplication, this leads to inconsistent results: sometimes names in one case, sometimes in another



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org