the-other-tim-brown opened a new pull request, #1032: URL: https://github.com/apache/incubator-xtable/pull/1032
## What is the purpose of the pull request `HudiFileStatsExtractor.computeColumnStatsFromMetadataTable` called `HoodieTableMetadata.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 - Make one `getColumnStats(files, columns)` call, and map each returned stat back to its field by `columnName`. - Update the `TestHudiFileStatsExtractor` mocks 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](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
