jorgecarleitao / arrow2

Transmute-free Rust library to work with the Arrow format
Apache License 2.0
1.07k stars 223 forks source link

NullArray with incorrect nullability? #1451

Open chmp opened 1 year ago

chmp commented 1 year ago

NullArray always gives is_null(idx) == false. Is this expected behavior? I would have expected it to return true for all elements.

arrow-rs returns unconditionally true (source). arrow2 returns false, as NullArray has no validity bitmap. The macro impl_common_array returns unconditionally false in this case.