You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2020/04/24 23:18:03 UTC

[GitHub] [incubator-iceberg] rdblue commented on a change in pull request #963: Update v2 manifests to store only DataFile (WIP)

rdblue commented on a change in pull request #963:
URL: https://github.com/apache/incubator-iceberg/pull/963#discussion_r414914000



##########
File path: core/src/test/java/org/apache/iceberg/TestManifestWriterVersions.java
##########
@@ -136,24 +141,31 @@ public void testV2ManifestRewriteWithInheritance() throws IOException {
     checkRewrittenManifest(manifest2, SEQUENCE_NUMBER, 0L);
 
     // should not inherit the v2 sequence number because it was written into the v2 manifest
-    checkRewrittenEntry(readManifest(manifest2), 0L);
+    checkEntry(readManifest(manifest2).asEntry(), ManifestEntry.Status.EXISTING, 0L);
+    checkDataFile(readManifest(manifest2), FileStatus.EXISTING, 0L);
   }
 
-  void checkEntry(ManifestEntry entry, Long expectedSequenceNumber) {
-    Assert.assertEquals("Status", ManifestEntry.Status.ADDED, entry.status());
+  void checkEntry(ManifestEntry entry, ManifestEntry.Status status, Long expectedSequenceNumber) {

Review comment:
       This changes how `checkEntry` and `checkDataFile` are used. This updates `checkEntry` to now validate the v1 view of the data by inspecting the `ManifestEntry` and the `DataFile` it wraps. Similarly, `checkDataFile` validates the v2 view where all fields are part of `DataFile`.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org