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
{{ message }}
Repository navigation
[Variant] VariantArray::value silently returns Variant::Null for unimplemented typed_value types in release builds #10597
In release builds the debug_assert! compiles out, so reading a row whose typed_value is valid but of an unimplemented type (e.g. an object-shredded Struct) silently returns Variant::Null — stored data reads as null with no error and no signal. In debug builds the same read panics. #8091 is closed (the scalar conversions landed there), so nothing currently tracks this arm.
Hit in practice rendering shredded variant columns through a value()-based canonicalization path: every typed row rendered as JSON null in a release build, with nothing to indicate loss.
Expected behavior
An error. try_value already documents "Errors if the data in typed_value cannot be interpreted as a valid Variant" — returning ArrowError::NotYetImplemented for these types keeps wrong-data out of release builds and makes debug/release behavior consistent, until the remaining conversions are implemented (the borrowed Variant<'_, '_> return can't express an assembled object without owned bytes, so the full fix is a larger change).
Activity
Error instead of silent `Variant::Null` for unimplemented `typed_valu…
Error instead of silent `Variant::Null` for unimplemented `typed_valu…