Core, Spark: Add added-dv-files metric for DV writes#16095
Open
wangyum wants to merge 2 commits into
Open
Conversation
singhpk234
reviewed
Apr 24, 2026
| String ADDED_EQ_DELETE_FILES = "added-equality-delete-files"; | ||
| String ADDED_POS_DELETE_FILES = "added-positional-delete-files"; | ||
| String ADDED_DVS = "added-dvs"; | ||
| String ADDED_PUFFIN_FILES = "added-puffin-files"; |
Contributor
There was a problem hiding this comment.
puffin container is used for stats tracking too, if we just want puffin files for DV then may be added-dv-files a better name
Member
Author
There was a problem hiding this comment.
renamed it to added-dv-files
01f8068 to
09300d5
Compare
|
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions. |
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.
Why are the changes needed?
DV-heavy commits can produce many logical delete vectors while writing only a few physical Puffin container files. Today we expose
added-dvsbut not the number of Puffin files, which makes it hard to understand physical output and commit behavior.What changes were proposed in this pull request?
added-dv-filesCommitMetricsResultCommitMetricsResultParser(to/from JSON)addedPuffinFilescustom metric classSparkWriteUtil.supportedCustomMetrics()SparkWriteUtil.customTaskMetrics(...)How was this patch tested?
Unit test and manual test:
UI:

Closes #16068