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-48311][SQL] Fix nested pythonUDF in groupBy and aggregate in Binding Exception #50183

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sumitsingh-in
Copy link

What changes were proposed in this pull request?

While replacing canonicalized python udf in aggregateExpressions we are proposing it to do transformDown instead of transformUp. This will insure that correct canonicalized python udf will used from groupingExpressions.

Why are the changes needed?

This is a bug, because groupingExpressions does transformDown and aggregateExpressions does transformUp which led to add new canonicalized python udfs.

details can be found: https://docs.google.com/document/d/1RXOOCsaFU-E1ZmXJnSrJ2jdRgYQgGAVxDPeFNNaoB1M/edit?usp=sharing

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit test

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

No

@sumitsingh-in sumitsingh-in changed the title Sumit/spark 48311 [SPARK-48311][SQL] Fix nested pythonUDF in groupBy and aggregate in Binding Exception Mar 6, 2025
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.

1 participant