nastra commented on code in PR #6072:
URL: https://github.com/apache/iceberg/pull/6072#discussion_r1030126948


##########
core/src/main/java/org/apache/iceberg/IncrementalDataTableScan.java:
##########
@@ -105,6 +105,7 @@ public CloseableIterable<FileScanTask> planFiles() {
                     snapshotIds.contains(manifestEntry.snapshotId())
                         && manifestEntry.status() == 
ManifestEntry.Status.ADDED)
             .specsById(table().specs())
+            .scanMetrics(scanMetrics())

Review Comment:
   I blindly added `.scanMetrics(scanMetrics())` at all places that create a 
`ManifestGroup` but during implementation I realized that 
`IncrementalDataTableScan` is a deprecated API, because the only place where 
it's being used is via `TableScan.appendsBetween` & `TableScan.appendsAfter`, 
which are both 
[deprecated](https://github.com/apache/iceberg/blob/master/api/src/main/java/org/apache/iceberg/TableScan.java#L75-L93).
 I think what we should do here is to just remove setting 
`.scanMetrics(scanMetrics())` on L108, wdyt?
   



-- 
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]

Reply via email to