This is an automated email from the ASF dual-hosted git repository.
blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/master by this push:
new 323a8a0 Cache data and delete manifest lists when either is null
(#1171)
323a8a0 is described below
commit 323a8a00bb0577b398b66f59671c1fc2f1a83b10
Author: Miao Wang <[email protected]>
AuthorDate: Wed Jul 8 10:53:47 2020 -0700
Cache data and delete manifest lists when either is null (#1171)
---
core/src/main/java/org/apache/iceberg/BaseSnapshot.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/iceberg/BaseSnapshot.java
b/core/src/main/java/org/apache/iceberg/BaseSnapshot.java
index 30aed09..f687730 100644
--- a/core/src/main/java/org/apache/iceberg/BaseSnapshot.java
+++ b/core/src/main/java/org/apache/iceberg/BaseSnapshot.java
@@ -127,7 +127,7 @@ class BaseSnapshot implements Snapshot {
this.allManifests =
ManifestLists.read(io.newInputFile(manifestListLocation));
}
- if (dataManifests == null) {
+ if (dataManifests == null || deleteManifests == null) {
this.dataManifests = ImmutableList.copyOf(Iterables.filter(allManifests,
manifest -> manifest.content() == ManifestContent.DATA));
this.deleteManifests =
ImmutableList.copyOf(Iterables.filter(allManifests,