Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions core/src/test/java/org/apache/iceberg/TestMetadataTableScans.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,25 @@ public void allManifestsTablePreservesSnapshotPruningWhenIgnoringResiduals() thr
validateTaskScanResiduals(scan, true);
}

@TestTemplate
public void allManifestsTableDoesNotOverPruneWhenIgnoringResiduals() throws IOException {
// Snapshots 1,2,3,4
preparePartitionedTableData();

Table allManifestsTable = new AllManifestsTable(table);
TableScan scan =
allManifestsTable
.newScan()
.filter(Expressions.equal("content", ManifestContent.DELETES.id()))
.ignoreResiduals();

assertThat(scannedPaths(scan))
.as("A non-snapshot filter must not prune snapshots when residuals are ignored")
.isEqualTo(expectedManifestListPaths(table.snapshots(), 1L, 2L, 3L, 4L));

validateTaskScanResiduals(scan, true);
}

@TestTemplate
public void allManifestsTableNegatedPredicateOnNonSnapshotColumn() {
// Snapshots 1,2,3,4
Expand Down
Loading