Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ private void removeOrphanFiles(Table table, ConnectorSession session, SchemaTabl
private void removeOrphanMetadataFiles(Table table, ConnectorSession session, SchemaTableName schemaTableName, long expireTimestamp)
{
ImmutableSet<String> manifests = stream(table.snapshots())
.flatMap(snapshot -> snapshot.allManifests().stream())
.flatMap(snapshot -> snapshot.allManifests(table.io()).stream())
.map(ManifestFile::path)
.collect(toImmutableSet());
List<String> manifestLists = ReachableFileUtil.manifestListLocations(table);
Expand Down Expand Up @@ -1721,7 +1721,7 @@ public Optional<ConstraintApplicationResult<ConnectorTableHandle>> applyFilter(C
Table icebergTable = catalog.loadTable(session, table.getSchemaTableName());

Long snapshotId = table.getSnapshotId().orElseThrow(() -> new IllegalStateException("Snapshot id must be present"));
Set<Integer> partitionSpecIds = icebergTable.snapshot(snapshotId).allManifests().stream()
Set<Integer> partitionSpecIds = icebergTable.snapshot(snapshotId).allManifests(icebergTable.io()).stream()
.map(ManifestFile::partitionSpecId)
.collect(toImmutableSet());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private static List<Page> buildPages(ConnectorTableMetadata tableMetadata, Table

Map<Integer, PartitionSpec> partitionSpecsById = icebergTable.specs();

snapshot.allManifests().forEach(file -> {
snapshot.allManifests(icebergTable.io()).forEach(file -> {
pagesBuilder.beginRow();
pagesBuilder.appendVarchar(file.path());
pagesBuilder.appendBigint(file.length());
Expand Down