scovich commented on code in PR #8360: URL: https://github.com/apache/arrow-rs/pull/8360#discussion_r2354144087
########## parquet-variant-compute/src/variant_array_builder.rs: ########## @@ -205,6 +208,155 @@ impl VariantBuilderExt for VariantArrayBuilder { } } +/// A builder for creating only the value column of a [`VariantArray`] +/// +/// This builder is used when you have existing metadata and only need to build +/// the value column. It's useful for scenarios like variant unshredding, data +/// transformation, or filtering where you want to reuse existing metadata. +/// +/// The builder produces a [`BinaryViewArray`] that can be combined with existing +/// metadata to create a complete [`VariantArray`]. +/// +/// # Example: +/// ``` +/// # use arrow::array::Array; +/// # use parquet_variant::{Variant}; +/// # use parquet_variant_compute::VariantValueArrayBuilder; +/// // Create a variant value builder for 10 rows +/// let mut builder = VariantValueArrayBuilder::new(10); +/// +/// // Append some values with their corresponding metadata +/// // In practice, some of the variant values would be objects with internal metadata. Review Comment: Sorry, I'm not sure I understand? Do you mean that I should call `append_value` on the result of `VariantArray::value`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org