Repository navigation
[1037] Read Hudi column stats for all columns in one metadata table lookup - #1032
Merged
the-other-tim-brown merged 3 commits intoNov 25, 2026
Merged
the-other-tim-brown merged 3 commits into
the-other-tim-brown merged 3 commits into
Conversation
…lookup HudiFileStatsExtractor looked up column stats once per column, and each lookup scans the column stats partition's file slices again. Use the multi-column getColumnStats overload, which the single-column one already delegates to.
vinishjail97
approved these changes
Nov 25, 2026
2 tasks done
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 is the purpose of the pull request
HudiFileStatsExtractor.computeColumnStatsFromMetadataTablecalledHoodieTableMetadata.getColumnStats(files, column)once for each column. Every one of those calls scans the metadata table's column stats file slices again. A wall-clock profile with async-profiler put this at about 35% of ITHudiConversionSource's test-thread time.Hudi provides
getColumnStats(files, List<String> columns), and the single-column overload already delegates to it with a one-element list. So making one call for all columns returns the same stats with a single scan.Brief change log
getColumnStats(files, columns)call, and map each returned stat back to its field bycolumnName.TestHudiFileStatsExtractormocks to the list overload.Local timing, with 4 JUnit threads: ITHudiConversionSource goes from 131.6s to 93.5s.
Verify this pull request
This pull request is already covered by existing tests: TestHudiFileStatsExtractor, which includes a case against a real metadata table, ITHudiConversionSource and ITConversionController.
🤖 Generated with Claude Code