Repository navigation
Conversation
FileFragment::storage_stats only opened the fragment's base data files, so the bytes a field's values occupy in data overlay files were left out of bytes_on_disk. Open each overlay's data file as well and add its column sizes to the fields it holds.
Xuanwo
approved these changes
Nov 15, 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.
FileFragment::storage_statsonly opened the fragment's base data files, so the bytes a field's values occupy in data overlay files were left out of bytes_on_disk.Open each overlay's data file as well and add its column sizes to the fields it holds.
Integration verification
Integrated with main
580690261d180090bb06b010f5d11600fe09b66a, which carries the #11095 cleanup fixture repair; merge commit6fa22cbb9a4bcc91f2ee74d2202729a57182d2a7. The feature diff is still the same two files (+187/-6).The regression writes two fragments with
max_rows_per_file = 2, overlays rows only in fragment 0, and asserts that the untouched fragment is still counted.idbytes stay exactly unchanged, andvalbytes grow by exactly the overlay file's physical column page-buffer bytes measured directly from its rawFileReadermetadata.On the combined tree: the foreign-root cleanup test with the
awsfeature (1 passed),dataset::statistics::tests(2 passed),dataset::overlay::(64 passed),cargo fmt --all --check, andcargo clippy --all --tests --benches -- -D warnings.This remains a per-fragment sum of base and overlay page-buffer bytes for current fields. It is not logical live size or object-store accounting, and excludes footer, manifest, deletion-file, and Blob-sidecar bytes. Unknown and dropped fields remain excluded.