[GLUTEN-11605][VL] Write per-block column statistics in shuffle writer#11769
Open
acvictor wants to merge 2 commits intoapache:mainfrom
Open
[GLUTEN-11605][VL] Write per-block column statistics in shuffle writer#11769acvictor wants to merge 2 commits intoapache:mainfrom
acvictor wants to merge 2 commits intoapache:mainfrom
Conversation
cb073fd to
19b8d5a
Compare
19b8d5a to
50e0444
Compare
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.
What changes are proposed in this pull request?
This PR adds per-block column statistics (min/max/hasNull) to the shuffle writer pipeline as a prerequisite for block-level pruning using dynamic filters at the shuffle reader. When
spark.gluten.sql.columnar.backend.velox.valueStream.dynamicFilter.enabledis true, the shuffle writer computes per-column min/max statistics from raw Arrow buffers duringevictBuffers()and serializes them as akStatisticsPayloadblock before each non-dictionary payload in the output file. This mirrors how parquet row group statistics enable predicate pushdown.How was this patch tested?
Added new tests and also ran the CI with config set to true.
Was this patch authored or co-authored using generative AI tooling?
No
Related issue: #11605