Skip to content

[SPARK-52046] [SQL] Prettify OuterReference on AggregateExpression names when using toPrettySQL #50836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mihailoale-db
Copy link
Contributor

@mihailoale-db mihailoale-db commented May 8, 2025

What changes were proposed in this pull request?

In this PR I propose that we remove backticks, qualifiers from OuterReference over AggregateExpression when creating name. In other words, name for column which is an outer reference would be outer(min(column)) instead of outer('min(col)').

Why are the changes needed?

To ease development of single-pass analyzer and improve names in fixed-point implementation.

Does this PR introduce any user-facing change?

Schema changes in a way that OuterReference over AggregateExpression name doesn't contain backticks and qualifiers.

How was this patch tested?

Existing tests.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label May 8, 2025
@mihailoale-db mihailoale-db changed the title [SPARK-52046] [SQL] Prettify OuterReference names when using toPrettySQL [SPARK-52046] [SQL] Prettify OuterReference on AggregateExpression names when using toPrettySQL May 8, 2025
@mihailoale-db mihailoale-db force-pushed the prettifyouterrefname branch from 5aca4ce to c29527b Compare May 8, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant