flyrain commented on code in PR #4566:
URL: https://github.com/apache/iceberg/pull/4566#discussion_r855695420
##########
core/src/main/java/org/apache/iceberg/DataTableScan.java:
##########
@@ -78,23 +76,23 @@ protected TableScan newRefinedScan(TableOperations ops,
Table table, Schema sche
}
@Override
- public CloseableIterable<FileScanTask> planFiles(TableOperations ops,
Snapshot snapshot,
- Expression rowFilter,
boolean ignoreResiduals,
- boolean caseSensitive,
boolean colStats) {
- ManifestGroup manifestGroup = new ManifestGroup(ops.io(),
snapshot.dataManifests(), snapshot.deleteManifests())
- .caseSensitive(caseSensitive)
- .select(colStats ? SCAN_WITH_STATS_COLUMNS : SCAN_COLUMNS)
- .filterData(rowFilter)
- .specsById(ops.current().specsById())
+ public CloseableIterable<FileScanTask> doPlanFiles() {
+ Snapshot snapshot = snapshot();
+
+ ManifestGroup manifestGroup = new ManifestGroup(table().io(),
snapshot.dataManifests(), snapshot.deleteManifests())
+ .caseSensitive(isCaseSensitive())
+ .select(colStats() ? SCAN_WITH_STATS_COLUMNS : SCAN_COLUMNS)
+ .filterData(filter())
+ .specsById(table().specs())
.ignoreDeleted();
- if (ignoreResiduals) {
+ if (shouldIgnoreResiduals()) {
Review Comment:
Nit: may rename `shouldIgnoreResiduals()` to `ignoreResiduals()` to be
consistent.
--
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]