Skip to content
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

[SPARK-50694][SQL] Support renames in subqueries #49336

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

Conversation

ueshin
Copy link
Member

@ueshin ueshin commented Dec 30, 2024

What changes were proposed in this pull request?

Supports renames in subqueries:

  • sub.toDF(...)
  • sub.alias(...)

Why are the changes needed?

When the query is used as a subquery by adding col.outer(), toDF or alias doesn't work because they need analyzed plans.

Does this PR introduce any user-facing change?

Yes, those APIs are available in subqueries.

How was this patch tested?

Added / modified the related tests.

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

No.

@zhengruifeng
Copy link
Contributor

BTW, do we have a list that which dataframe operations are allowed in subqueries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants