ListArray::try_new
disallows null elements if field.is_nullable() == false
#4602
Labels
ListArray::try_new
disallows null elements if field.is_nullable() == false
#4602
Describe the bug
Even if a field is non-nullable in its schema definition, it's only semantic and I think this should not prevent the creation of arrays containing null values. Null values in semantically non-nullable fields may arise from, for example, being nested inside another nullable field (as in #3900) or a sparse union field.
Arrow Columnar Format:
To Reproduce
The above code panics with message
called `Result::unwrap()` on an `Err` value: InvalidArgumentError("Non-nullable field of ListArray \"element\" cannot contain nulls")
Expected behavior
Not panicking
Additional context
The text was updated successfully, but these errors were encountered: