Skip to content

Conversation

@huaxingao
Copy link
Contributor

  • API: Detect whether required fields nested within optionals can produce nulls

This partially reverts some changes around the Accessor API that were introduced by #13804 and uses a Schema visitor to detect whether any of the parent fields of a nested required field are optional. This info is then used when IS_NULL / NOT_NULL is evaluated

  • only check parent fields on IS_NULL/NOT_NULL

(cherry picked from commit a473b1c)

…ce nulls (apache#14270)

* API: Detect whether required fields nested within optionals can produce nulls

This partially reverts some changes around the `Accessor` API that were introduced by apache#13804 and uses a Schema visitor
to detect whether any of the parent fields of a nested required field are optional.
This info is then used when IS_NULL / NOT_NULL is evaluated

* only check parent fields on IS_NULL/NOT_NULL

(cherry picked from commit a473b1c)
@github-actions github-actions bot added the API label Nov 6, 2025
@huaxingao
Copy link
Contributor Author

This is a clean cherry-pick.

@huaxingao huaxingao merged commit b5e921a into apache:1.10.x Nov 6, 2025
43 checks passed
@huaxingao huaxingao deleted the 1.10.x branch November 6, 2025 21:34
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.

4 participants