Repository navigation
Conversation
- map VARIANT to Parquet extension storage and unshred physical files - expose typed int64 access and prune from variant path statistics - validate mixed layouts and nested paths against DuckDB 1.5.5
faysou
requested review from
anoop-narang,
shefeek-jinnah and
zfarrell
as code owners
November 23, 2026 15:15
Recheck the hosted row-ID test after the archived CI binary passed locally.
This branch has not been deployed
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.
Summary
Read shredded and unshredded Parquet VARIANT into Arrow Variant arrays. Prune files for
eligible
ducklake_variant_get_int64predicates when valid bounds for the exact path provethe file cannot match. Keep files with unknown bounds and evaluate their rows.
VARIANT scan and pruning
flowchart LR Expr["Eligible integer path predicate"] --> Bounds{"Valid int64 bounds for this file and path?"} Bounds -->|Yes| Match{"Bounds can match?"} Bounds -->|Unknown| Decode["Read and normalize the physical VARIANT layout"] Match -->|Yes| Decode Match -->|No| Skip["Skip file"] Decode --> Evaluate["Evaluate rows as Arrow Variant"]Verification
confirms that the scan drops the disjoint shredded file and keeps the unshredded file.
published commit. The hosted failure remains open.
Specification proof
Reference implementation
DuckDB's DuckLake extension stores per-path type and bounds and parses quoted field names,
including doubled quotes. Variant statistics insertion,
Nested path parsing.
The reader normalizes DuckDB 1.5.5 file dictionaries with unsorted keys by clearing the sorted
flag for Arrow's dictionary lookup. The encoded values stay the same. The mixed-layout
oracle exercises the normalization and the integer pruning path.