ListArray::try_new
rejects {Union,Dictionary}Array
incorrectly if field
is not nullable
#6538
Labels
ListArray::try_new
rejects {Union,Dictionary}Array
incorrectly if field
is not nullable
#6538
Describe the bug
ListArray::try_new()
usesArray::is_nullable()
to check the presence of null values iffield
is not marked as nullable.arrow-rs/arrow-array/src/array/list_array.rs
Lines 191 to 197 in 5508978
While this works for most types, this can cause a false positive for
DictionaryArray
andUnionArray
becauseArray::is_nullable()
is allowed to returntrue
if it's expensive to prove the absence of logical nulls.arrow-rs/arrow-array/src/array/mod.rs
Lines 287 to 291 in 5508978
To Reproduce
This produces:
Expected behavior
Successful execution
Additional context
The text was updated successfully, but these errors were encountered: