feat(types): add Variant type with non-shredded codec and encryption-keys metadata#23
Open
abnobdoss wants to merge 4 commits into
Open
feat(types): add Variant type with non-shredded codec and encryption-keys metadata#23abnobdoss wants to merge 4 commits into
abnobdoss wants to merge 4 commits into
Conversation
added 4 commits
June 23, 2026 08:40
Adds VariantType primitive (parses/serializes 'variant', min format v3) and a pure-python encoder/decoder for the Parquet Variant binary format (metadata dictionary + value: null/bool/int/double/string/object/array), independent of PyArrow's still-unimplemented variant extension type (apache/arrow#45937, #50131, #50132 all open).
…#2118) Adds metadata-only encryption fields (no crypto/KMS): EncryptedKey model (key-id, encrypted-key-metadata, encrypted-by-id, properties) matching the Java EncryptedKeyParser; optional encryption-keys list on TableMetadataV3 and optional key-id on Snapshot. Read/deserialize + alias round-trip only; V3 full-write still raises NotImplementedError upstream (apache#1551).
Place offset_size_minus_one in metadata header bits 6-7 and check the reserved bit at bit 5, matching the Parquet Variant spec (previously bits 5-6 / bit 7, which only round-tripped with itself and rejected valid metadata using a 3- or 4-byte offset size). Add decimal, date, timestamp, binary and float primitive support, byte-level spec assertions, and edge-case tests (empty object/array, large dictionary, float decode).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.