You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Which issue does this PR close?
- Closes#19158
## Rationale for this change
The Spark `sha1` UDF was always marked nullable because it relied on the
default nullability; Spark semantics require the output nullability to
follow the input (or null scalar) instead.
## What changes are included in this PR?
- Implement `return_field_from_args` for `SparkSha1` to report `Utf8`
with nullability derived from argument fields or null scalar args, and
guard `return_type`.
- Add a nullability unit test covering non-nullable input, nullable
input, and null scalar cases.
## Are these changes tested?
Yes,
## Are there any user-facing changes?
No behavior change beyond correct nullability reporting for `sha1`
results.
0 commit comments