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
Is your feature request related to a problem or challenge?
#2880 reads unshredded variant columns from Parquet: a variant group stored as metadata and value binaries. A projected variant whose group contains a typed_value field fails with FeatureUnsupported ("Reading shredded variant column v (field id N) is not supported yet").
Iceberg v3 allows writers to shred variants following the Parquet variant shredding spec. iceberg-java can write such files (write.parquet.shred-variants, off by default) and reads them. Tables containing shredded files are unreadable from iceberg-rust today if a query projects a shredded variant.
Unprojected shredded variants do not block reads of other columns.
Describe the solution you'd like
Read shredded variant groups and return each row's variant, as the unshredded path does today.
Requirements from the shredding spec:
Rebuild each row from value and typed_value, following the spec's rules for which of the two holds the row (including null and missing values).
Partially shredded objects: merge the fields in typed_value with the fields still encoded in value.
Shredded arrays and nested shredded objects, recursively.
Shredded primitive types mapped to their variant encodings (decimals, timestamps, UUID, etc.).
Match the columns inside a variant group by name, since they carry no field ids.
arrow-rs provides unshred_variant in parquet-variant-compute, which folds typed_value back into value. Using it would add that crate as a dependency.
Activity
fix(arrow): address review on unshredded variant read
feat(arrow): read unshredded variant columns (apache#2880)