Repository navigation
[core] Prune merged Data Evolution reads with Parquet statistics - #1469
SteNicholas wants to merge 1 commit into
Conversation
2c72193 to
276ea60
Compare
JingsongLi
left a comment
There was a problem hiding this comment.
Shared row ranges have end-to-end value. The earlier undersized-page case now falls back. Locally, 46 integration tests, eight candidate-range cases and 102 Parquet tests passed. The selective benchmark returned the same row and reduced column data reads from 2,342,012 bytes to 756. Two additional probes exposed the cases below.
b6d1080 to
789b8d6
Compare
270508e to
05bb9b7
Compare
05bb9b7 to
5137483
Compare
|
@JingsongLi, I reran the four regression tests for the cases you reported after rebasing
|
JingsongLi
left a comment
There was a problem hiding this comment.
Shared Parquet statistics can reduce the work needed for selective Data Evolution reads. The merged-reader and Parquet suites passed locally on aaa35f6f, and the earlier offset-only fallback preserved data-page reads in the new probe. I reproduced a separate cold-read I/O regression below.
5137483 to
edc2753
Compare
Selective filters can leave a Data Evolution merge decoding entire column files. Column updates can leave stale values in older files, and Parquet pages can start at different rows across providers. A shared row-ID selection keeps the current values aligned during the merge. - Prune row groups and pages with statistics from the current provider of every field in a conjunct, addressing apache#1445. - Intersect candidates with caller ranges and bitmap hits, exclude deleted rows, and apply the full filter to reconstructed rows before LIMIT. - Reuse Parquet metadata and validate projected page row counts. Skip column indexes when footer statistics settle a sparse selection, and retry failed indexed reads from whole column chunks. - Enable pruning by default for row-tracked, unbucketed Data Evolution tables using Java's data-evolution.merged-read.stats-pushdown.enabled option. Benchmark selective and full-range reads.
edc2753 to
03980db
Compare
|
Thanks for checking the earlier fallback and reproducing the cold-read regression. The force-pushed commit keeps sparse reads on the The same commit updates Parquet to |
Purpose
Closes #1445.
Selective filters can leave a Data Evolution merge decoding entire column files. Use Parquet statistics from the current column providers to build a shared row-ID selection and keep values aligned across files with different page boundaries.
Brief change log
LIMIT.ColumnIndexif the footer proves that every row matches or none can match. If an optionalColumnIndexfails to decode, retry theOffsetIndexusing the metadata bytes already fetched.Tests
cargo fmt --all -- --checkandgit diff --checkpassed.Benchmark
Both settings returned identical results. The table reports medians from seven runs with alternating execution order and the shared metadata cache disabled.
API and Format
The Java-compatible
data-evolution.merged-read.stats-pushdown.enabledoption defaults totrue. It applies to row-tracked, unbucketed Data Evolution append tables whose ordinary Parquet files share a complete row-ID range. Both settings read the existing storage format.Documentation
🤖 Assisted with Codex.