aokolnychyi commented on a change in pull request #936:
URL: https://github.com/apache/incubator-iceberg/pull/936#discussion_r412371575



##########
File path: core/src/main/java/org/apache/iceberg/ManifestFiles.java
##########
@@ -73,8 +73,8 @@ public static ManifestReader read(ManifestFile manifest, 
FileIO io, Map<Integer,
    * @return a manifest writer
    */
   public static ManifestWriter write(PartitionSpec spec, OutputFile 
outputFile) {
-    // always use a v1 writer for appended manifests because sequence number 
must be inherited
-    return write(1, spec, outputFile, null);
+    // always use a v2 writer to preserve sequence numbers, but use null for 
sequence number so appends inherit

Review comment:
       Does this mean manifests will be written with the v2 schema (i.e. with 
sequence numbers) even though `TableMetadata` is v1 and the manifest list is 
written with v1? And this should work because we do a projection on read and 
sequence number is optional?




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to