[
https://issues.apache.org/jira/browse/ARROW-11061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17332191#comment-17332191
]
Andrew Lamb commented on ARROW-11061:
-------------------------------------
Migrated to github: https://github.com/apache/arrow-rs/issues/162
> [Rust] Validate array properties against schema
> -----------------------------------------------
>
> Key: ARROW-11061
> URL: https://issues.apache.org/jira/browse/ARROW-11061
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Rust
> Reporter: Neville Dipale
> Priority: Blocker
> Fix For: 5.0.0
>
>
> We have a problem when it comes to nested arrays, where one could create a
> <list[null]<primitive[non-null]>> where the array fields can't be null, but
> the list can have null slots.
> This creates a lot of work when working with such nested arrays, because we
> have to create work-arounds to account for this, and take unnecessarily
> slower paths.
> I propose that we prevent this problem at the source, by:
> * checking that a batch can't be created with arrays that have incompatible
> null contracts
> * preventing list and struct children from being non-null if any descendant
> of such children are null (might be less of an issue for structs)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)