singh1203 opened a new pull request, #46129:
URL: https://github.com/apache/arrow/pull/46129
### Rationale for this change
Ensures schema validation catches null values in non-nullable fields,
preventing silent errors when writing to formats like Parquet.
### What changes are included in this PR?
- Nullability checks were added in ValidateFull() for arrays, struct arrays,
union arrays, and record batches.
- Introduced new validation logic in validate.cc to recursively check for
nulls in non-nullable fields.
- Added unit tests in:
- array_test.cc
- array_struct_test.cc
- array_union_test.cc
- record_batch_test.cc
These tests ensure that `ValidateFull()` fails when nulls are present in
non-nullable fields.
### Are these changes tested?
Yes, new unit tests have been added
### Are there any user-facing changes?
Yes, Users who try to validate or write Arrow data with nulls in
non-nullable fields will now receive an explicit validation error.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]