Skip to content

Commit

Permalink
Core: use ManifestFiles.open when possible (#11414)
Browse files Browse the repository at this point in the history
  • Loading branch information
dramaticlly authored Oct 29, 2024
1 parent 740d4e7 commit 469c556
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions core/src/main/java/org/apache/iceberg/BaseFilesTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,7 @@ public long estimatedRowsCount() {
}

private CloseableIterable<? extends ContentFile<?>> files(Schema fileProjection) {
switch (manifest.content()) {
case DATA:
return ManifestFiles.read(manifest, io, specsById).project(fileProjection);
case DELETES:
return ManifestFiles.readDeleteManifest(manifest, io, specsById).project(fileProjection);
default:
throw new IllegalArgumentException(
"Unsupported manifest content type:" + manifest.content());
}
return ManifestFiles.open(manifest, io, specsById).project(fileProjection);
}

/**
Expand Down

0 comments on commit 469c556

Please sign in to comment.