-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-52023][SQL] Fix data corruption/segfault returning Option[Product] from udaf #50827
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
Conversation
|
@eejbyfeldt this is a long standing correctness issue right? |
hvanhovell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…uct] from udaf ### What changes were proposed in this pull request? This fixes so defining a udaf returning a `Option[Product]` produces correct results instead of the current behavior. Where it throws an exception, segfaults or produces incorrect results. ### Why are the changes needed? Fix correctness issue. ### Does this PR introduce _any_ user-facing change? Fixes a correctness issue. ### How was this patch tested? Existing and new unittest. ### Was this patch authored or co-authored using generative AI tooling? No Closes #50827 from eejbyfeldt/SPARK-52023. Authored-by: Emil Ejbyfeldt <emil.ejbyfeldt@choreograph.com> Signed-off-by: Herman van Hovell <herman@databricks.com> (cherry picked from commit 5e6e8f1) Signed-off-by: Herman van Hovell <herman@databricks.com>
…uct] from udaf ### What changes were proposed in this pull request? This fixes so defining a udaf returning a `Option[Product]` produces correct results instead of the current behavior. Where it throws an exception, segfaults or produces incorrect results. ### Why are the changes needed? Fix correctness issue. ### Does this PR introduce _any_ user-facing change? Fixes a correctness issue. ### How was this patch tested? Existing and new unittest. ### Was this patch authored or co-authored using generative AI tooling? No Closes #50827 from eejbyfeldt/SPARK-52023. Authored-by: Emil Ejbyfeldt <emil.ejbyfeldt@choreograph.com> Signed-off-by: Herman van Hovell <herman@databricks.com> (cherry picked from commit 5e6e8f1) Signed-off-by: Herman van Hovell <herman@databricks.com>
|
Merged to master/4.0/3.5 |
|
Hi, @hvanhovell and @eejbyfeldt . Unfortunately, this broke Let me revert this. |
|
This is reverted from branch-3.5 via a56879e Please make a backporting PR to branch-3.5 in order to make it passes the CI correctly at this time, @eejbyfeldt . |
…uct] from udaf ### What changes were proposed in this pull request? This fixes so defining a udaf returning a `Option[Product]` produces correct results instead of the current behavior. Where it throws an exception, segfaults or produces incorrect results. ### Why are the changes needed? Fix correctness issue. ### Does this PR introduce _any_ user-facing change? Fixes a correctness issue. ### How was this patch tested? Existing and new unittest. ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#50827 from eejbyfeldt/SPARK-52023. Authored-by: Emil Ejbyfeldt <emil.ejbyfeldt@choreograph.com> Signed-off-by: Herman van Hovell <herman@databricks.com>
|
Thanks for taking care of the revert. Created this backport #51347 |
Yes, as far as I can tell it been there for along time. |
…uct] from udaf ### What changes were proposed in this pull request? This fixes so defining a udaf returning a `Option[Product]` produces correct results instead of the current behavior. Where it throws an exception, segfaults or produces incorrect results. ### Why are the changes needed? Fix correctness issue. ### Does this PR introduce _any_ user-facing change? Fixes a correctness issue. ### How was this patch tested? Existing and new unittest. ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#50827 from eejbyfeldt/SPARK-52023. Authored-by: Emil Ejbyfeldt <emil.ejbyfeldt@choreograph.com> Signed-off-by: Herman van Hovell <herman@databricks.com> (cherry picked from commit a08011b) Signed-off-by: Herman van Hovell <herman@databricks.com>
What changes were proposed in this pull request?
This fixes so defining a udaf returning a
Option[Product]produces correct results instead of the current behavior. Where it throws an exception, segfaults or produces incorrect results.Why are the changes needed?
Fix correctness issue.
Does this PR introduce any user-facing change?
Fixes a correctness issue.
How was this patch tested?
Existing and new unittest.
Was this patch authored or co-authored using generative AI tooling?
No