You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2025/05/07 14:16:00 UTC
[jira] [Resolved] (SPARK-52019) Strip outer reference before creating a name in toPrettySQL
[ https://issues.apache.org/jira/browse/SPARK-52019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk resolved SPARK-52019.
------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
Issue resolved by pull request 50804
[https://github.com/apache/spark/pull/50804]
> Strip outer reference before creating a name in toPrettySQL
> -----------------------------------------------------------
>
> Key: SPARK-52019
> URL: https://issues.apache.org/jira/browse/SPARK-52019
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.1.0
> Reporter: Mihailo Aleksic
> Assignee: Mihailo Aleksic
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0
>
>
> In the following query we would have min(outer(t2.t2a)) as a name for min(t2a) expression.
> {code:java}
> SELECT t1a
> FROM t1
> WHERE t1a IN (SELECT t2a
> FROM t2
> WHERE EXISTS (SELECT min(t2a)
> FROM t3))
> {code}
> This is a problem in compatibility between single-pass resolver and fixed-point analyzer because names in single-pass are generated after we finish resolution of aggregate expression min(t2a) (bottom-up manner) and at that point we have OuterReference wrapped around aggregate expression (name looks like outer(min(t2a))).
> I propose that we fix it in fixed point so we can compute the name in single-pass more easily.
--
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