nastra commented on code in PR #6072:
URL: https://github.com/apache/iceberg/pull/6072#discussion_r1031527287
##########
core/src/main/java/org/apache/iceberg/BaseIncrementalChangelogScan.java:
##########
@@ -153,6 +156,9 @@ public CloseableIterable<ChangelogScanTask> apply(
int changeOrdinal = snapshotOrdinals.get(commitSnapshotId);
DataFile dataFile = entry.file().copy(context.shouldKeepStats());
+ context.scanMetrics().resultDataFiles().increment();
Review Comment:
I agree this isn't accurate atm because we currently don't support
dimensional counters (and I should have added a TODO/mention here). I think we
have two options to deal with this:
1) we could add `resultDataFilesByAddedRowsScanTask()` /
`resultDataFilesByDeletedDataFilesScanTask()` to `ScanMetrics` /
`ScanMetricsResult` for this particular case. This would mean that we'd have to
support this for at least a minor release.
2) we implement dimensional counters/timers (which we will need anyway in
the long run) and mention that this part is currently not accurate.
Thoughts?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]