Skip to content

fix(spark): add custom nullability to SparkMakeInterval#21564

Open
HueCodes wants to merge 1 commit intoapache:mainfrom
HueCodes:fix/make-interval-nullability
Open

fix(spark): add custom nullability to SparkMakeInterval#21564
HueCodes wants to merge 1 commit intoapache:mainfrom
HueCodes:fix/make-interval-nullability

Conversation

@HueCodes
Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

SparkMakeInterval uses the default is_nullable which always returns true. Spark derives nullability from inputs: nullable only if any input is nullable or seconds contains non-finite values.

What changes are included in this PR?

Add return_field_from_args() matching the pattern in SparkMakeDtInterval.

Are these changes tested?

Yes, added return_field_respects_nullability test.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the spark label Apr 12, 2026
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.

spark make_interval need to have custom nullability

1 participant