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] unshred_variant panics on malformed bytes despite returning Result #9740
unshred_variant returns Result<VariantArray, ArrowError> and its docs say it errors on spec violations.
However, it internally calls VariantMetadata::new, Variant::new_with_metadata, and VariantObject::iter. All of which panics on bad input.
This is clearly bad because unshred_varaint is meant to consume bytes that came off disk, which by definition can be wrong. Though the fix is fairly mechanical since the panicking call sites have their try_ counterparts
Activity
friendlymatthew commentedon Apr 16, 2026
cc @scovich
We're actively bringing variants into production
remove panics in unshred variant (#9741)
alamb commentedon Apr 23, 2026
label_issue.pyautomatically added labels {'parquet-variant'} from #9741remove panics in unshred variant (apache#9741)