You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is currently very easy to get inconsistant state between the nullable flag on StructArray fields and the presence of their validity bitmap. This can lead to very difficult to debug issues, as for example the equality comparison of StructArray includes this flag, but it is not printed by the Debug impl, for example in assertions.
Describe the bug
Extracted from a discussion on the equals kernels
It is currently very easy to get inconsistant state between the
nullable
flag onStructArray
fields and the presence of their validity bitmap. This can lead to very difficult to debug issues, as for example the equality comparison ofStructArray
includes this flag, but it is not printed by theDebug
impl, for example in assertions.To Reproduce
Example of a confusing test:
Expected behavior
StructArray
itself should only have a validity bitmap if all its fields are nullableStructArray::from(Vec<(&str, ArrayRef>)
should always set thenullable
flag?A clear and concise description of what you expected to happen.
Additional context
Alternatives could be to ignore the
nullable
flag when comparing arraysThe text was updated successfully, but these errors were encountered: