Repository navigation
fix(published): a table's extent and count from its manifests, not a scan of every file - #172
Merged
Merged
Conversation
…scan of every file `Table.open` learned its extent with `min/max/count(*)` over `iceberg_scan`, which reads every data file's footer: a request per file, on every open, of every reader. A log that publishes every few minutes grows thousands of small files, and one open took 20+ s from a laptop and minutes on a loaded box. The three numbers are in the manifests' per-file statistics (record counts and the offset column's bounds), one read of the manifest list and one per manifest. Falls back to the scan when the statistics cannot answer exactly: a file without bounds on the offset column, or a delete file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PXyESUWnfYF3jXPHp7pz12
This was referenced Oct 20, 2026
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.
The fix shipped on the 0.22 line as 0.22.1 (#171), for main.
Table.openranmin/max/count(*)overiceberg_scan, reading every data file's footer on every snapshot open (553 files: 20+ s, minutes on a loaded box). The numbers now come from the manifests' per-file statistics, with the scan as fallback when a file lacks bounds or a delete file exists. Test pins equality with the scan and thatopennever issues it.🤖 Generated with Claude Code
https://claude.ai/code/session_01PXyESUWnfYF3jXPHp7pz12