Skip to content

Conversation

@EeshanBembi
Copy link
Contributor

Which issue does this PR close?

Closes #19172

What changes are included in this PR?

Implement return_field_from_args for SparkElt to correctly report nullability based on
input field nullability, instead of always returning nullable=true.

Are these changes tested?

Yes, added unit test test_elt_nullability that verifies:

  • Result is non-nullable when all inputs are non-nullable
  • Result is nullable when index is nullable
  • Result is nullable when any value is nullable

@github-actions github-actions bot added the spark label Dec 8, 2025
@github-actions github-actions bot added the physical-expr Changes to the physical-expr crates label Dec 8, 2025
@EeshanBembi EeshanBembi marked this pull request as ready for review December 8, 2025 15:36
@github-actions github-actions bot removed the physical-expr Changes to the physical-expr crates label Dec 8, 2025
Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

Thanks @EeshanBembi the PR makes sense IMO

@comphead comphead added this pull request to the merge queue Dec 9, 2025
Merged via the queue into apache:main with commit cd160de Dec 9, 2025
27 checks passed
@Jefffrey
Copy link
Contributor

fyi I'm reverting this change: #19510

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 elt need to have custom nullability

3 participants