Repository navigation
feat: report Iceberg scan files and bytes - #124
Open
alexanderbianchi wants to merge 3 commits into
Open
alexanderbianchi wants to merge 3 commits into
alexanderbianchi wants to merge 3 commits into
Conversation
Port the reader instrumentation from datafusion-contrib/datafusion-distributed#850 into the shared IcebergDataSource. Co-authored-by: Anirudh <[email protected]> Signed-off-by: alex.bianchi <[email protected]>
Signed-off-by: alex.bianchi <[email protected]>
Signed-off-by: alex.bianchi <[email protected]>
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.
Iceberg scans exposed baseline output metrics, but
EXPLAIN ANALYZEcould not show how many files the reader started or how many bytes it read. Port the instrumentation from DFD #850 into the sharedIcebergDataSource, for eager and lazy task providers.Add two per-partition metrics:
files_opened: file tasks pulled by the reader, including read-ahead for limited scans.bytes_scanned: reader-reported bytes for data and delete files, excluding manifest discovery.Update byte counts after each completed stream poll, including end of stream when the reader produces no batches.
Extend the existing limit snapshot to report both files and bytes. Keep one additional harness-driven zero-output regression to verify that reader I/O is reported when no rows match.
Validation:
cargo test --workspace --lockedcargo clippy --workspace --locked --all-targets -- -D warningscargo fmt --all -- --checkgit diff --checkDeveloped with AI assistance.