[v25.3.x] iceberg: Push Parquest column stats to Iceberg manifests#30776
Open
vbotbuildovich wants to merge 2 commits into
Open
[v25.3.x] iceberg: Push Parquest column stats to Iceberg manifests#30776vbotbuildovich wants to merge 2 commits into
vbotbuildovich wants to merge 2 commits into
Conversation
Thread per-column stats (min/max bounds, null counts, value counts, column sizes) through to the Iceberg data_file manifest entry, where query engines use them for column-level predicate pushdown. Maintain a file-level column_stats_collector in buffered_column_writer that accumulates by merging after each flush_pages(), then use the result after the file is done to get file-level stats. (cherry picked from commit 7f83353)
(cherry picked from commit b4e8232)
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.
Backport of PR #30704
Conflict details
base/format_to.h,bytes/bytes.h,container/chunked_vector.h,serde/envelope.h,serde/rw/bytes.h) needed by the newper_column_statsstruct.base_typeslibrary deps (//src/v/base,//src/v/bytes,//src/v/container:chunked_vector,//src/v/serde,//src/v/serde:bytes).//src/v/basedep and added the incoming//src/v/bytesdep foriceberg_file_committer.file_value_count,file_column_size_bytes); the surrounding bloom-filter block in the incoming context does not exist on v25.3.x and was omitted (bloom filters are not present on the target branch).build_statisticshelper was adapted to the target's non-truncated form (encode_for_stats(...),is_exact=true). Replaced per-pagerecord_value()calls with the commit's_flushed_stats.merge(_current_page_stats), added the new_file_statscollector andfile_column_stats()accumulation, and omitted the_bloom_filtermember (bloom filters absent on target).The second commit (b4e8232, ducktape test) applied cleanly.