-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API,Core: Add scan planning metrics for scanned/skipped delete manifests #5792
API,Core: Add scan planning metrics for scanned/skipped delete manifests #5792
Conversation
adba699
to
7810f91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some minor comments.
core/src/test/java/org/apache/iceberg/TestScanPlanningAndReporting.java
Outdated
Show resolved
Hide resolved
core/src/test/java/org/apache/iceberg/metrics/TestScanMetricsResultParser.java
Outdated
Show resolved
Hide resolved
3c2411d
to
6de5ac8
Compare
6de5ac8
to
e389a01
Compare
LGTM. Looks way better with these Immutable metrics classes. |
@@ -226,6 +236,16 @@ public Counter skippedDeleteFiles() { | |||
return metricsContext().counter(SKIPPED_DELETE_FILES, MetricsContext.Unit.COUNT); | |||
} | |||
|
|||
@Value.Derived | |||
public Counter scannedDeleteManifests() { | |||
return metricsContext().counter(SCANNED_DELETE_MANIFESTS, MetricsContext.Unit.COUNT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should make COUNT
the default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created #5912 to do this
Thanks, @nastra! Looks great. |
This currently depends on #5788