You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2026/06/03 13:37:08 UTC

Re: [PR] [Variant] Preserve `UUID` extension type metadata for Parquet writer [arrow-rs]

alamb commented on code in PR #10015:
URL: https://github.com/apache/arrow-rs/pull/10015#discussion_r3348885650


##########
parquet-variant-compute/src/variant_array.rs:
##########
@@ -868,6 +868,20 @@ impl TryFrom<&StructArray> for ShreddingState {
     }
 }
 
+/// Build the `typed_value` [`FieldRef`] for a shredded column.
+///
+/// The Variant spec maps `FixedSizeBinary(16)` exclusively to UUID, so any

Review Comment:
   can you add a reference to this part of the spec?



##########
parquet-variant-compute/src/variant_array.rs:
##########
@@ -868,6 +868,20 @@ impl TryFrom<&StructArray> for ShreddingState {
     }
 }
 
+/// Build the `typed_value` [`FieldRef`] for a shredded column.
+///
+/// The Variant spec maps `FixedSizeBinary(16)` exclusively to UUID, so any

Review Comment:
   https://parquet.apache.org/docs/file-format/types/variantshredding/ says
   
   > Shredded values must use the following Parquet types:
   
   
   Variant Type | Parquet Physical Type | Parquet Logical Type
   -- | -- | --
   ... | ... | ...
   uuid | FIXED_LEN_BYTE_ARRAY[len=16] | UUID
   
   
   But I didn't see it say the other way around that any FIXED_LEN_BYTE_ARRAY was always UUID 🤔 
   
   



-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org