unshred_variant

Function unshred_variant 

Source
pub fn unshred_variant(array: &VariantArray) -> Result<VariantArray>
Expand description

Removes all (nested) typed_value columns from a VariantArray by converting them back to binary variant and merging the resulting values back into the value column.

This function efficiently converts a shredded VariantArray back to an unshredded form where all data resides in the value column.

§Arguments

  • array - The VariantArray to unshred

§Returns

A new VariantArray with all data in the value column and no typed_value column

§Errors

  • If the shredded data contains spec violations (e.g., field name conflicts)
  • If unsupported data types are encountered in typed_value columns