This is an automated email from the ASF dual-hosted git repository.
wgtmac pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-format.git
The following commit(s) were added to refs/heads/master by this push:
new a7d9dd9 GH-506: Clarify field ordering for partially shredded object
union (#565)
a7d9dd9 is described below
commit a7d9dd9bbffb4e45838d8e51747a4d48055d3d0a
Author: Neelesh Salian <[email protected]>
AuthorDate: Wed May 27 21:01:50 2026 -0700
GH-506: Clarify field ordering for partially shredded object union (#565)
---
VariantShredding.md | 3 +++
1 file changed, 3 insertions(+)
diff --git a/VariantShredding.md b/VariantShredding.md
index bbebbdd..4f7d614 100644
--- a/VariantShredding.md
+++ b/VariantShredding.md
@@ -303,6 +303,9 @@ def construct_variant(metadata: Metadata, value: Variant,
typed_value: Any) -> V
assert typed_value.keys().isdisjoint(value.keys()), "object
keys must be disjoint"
# union the shredded fields and non-shredded fields
+ # (field IDs and offsets must be in the order of the
+ # corresponding field names, sorted lexicographically
+ # (unsigned byte ordering for UTF-8))
return VariantObject(metadata,
object_fields).union(VariantObject(metadata, value))
else: