Skip to content

Conversation

@eejbyfeldt
Copy link
Contributor

@eejbyfeldt eejbyfeldt commented Jun 25, 2024

What changes were proposed in this pull request?

Alternative fix to the one suggested in #47081

Because of the rule HandleNullInputsForUDF ScalaUDF will propagate null for primitive types. The problem is that this is currently not reflected in the implementation of nullable for ScalaUDF. This currently leads to wrong nullability of the result in some cases. This patch fixes this by making the implemenation of nullable for ScalaUDF reflect that it propages null for primitive types.

Why are the changes needed?

Fix nullability.

Does this PR introduce any user-facing change?

Yes, fixes nullability.

How was this patch tested?

New and existing tests.

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

No,

cloud-fan and others added 3 commits June 25, 2024 15:06
Because of the rule HandleNullInputsForUDF ScalaUDF will propagate null
for primitive types. The problem is that this is currently not reflected
in the implementation of `nullable` for ScalaUDF. This currently
leads to wrong nullability of the result in some cases. This patch fixes
this by making the implemenation of `nullable` for ScalaUDF reflect that
it propages null for primitive types.
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.

2 participants