Skip to content

Conversation

eejbyfeldt
Copy link
Contributor

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

…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 <[email protected]>
Signed-off-by: Herman van Hovell <[email protected]>
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @eejbyfeldt .

dongjoon-hyun pushed a commit that referenced this pull request Jul 2, 2025
…[Product] 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 #51347 from eejbyfeldt/3.5-SPARK-52023.

Authored-by: Emil Ejbyfeldt <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@dongjoon-hyun
Copy link
Member

Merged to branch-3.5.

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.

2 participants