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 2022/09/08 11:30:00 UTC

[GitHub] [iceberg] gaborkaszab commented on a diff in pull request #5729: API,Core: Remove deprecated methods from Snapshot API

gaborkaszab commented on code in PR #5729:
URL: https://github.com/apache/iceberg/pull/5729#discussion_r965839064


##########
core/src/main/java/org/apache/iceberg/rest/RESTSerializers.java:
##########
@@ -110,7 +110,7 @@ public static class TableMetadataSerializer extends JsonSerializer<TableMetadata
     @Override
     public void serialize(TableMetadata metadata, JsonGenerator gen, SerializerProvider serializers)
         throws IOException {
-      TableMetadataParser.toJson(metadata, gen);
+      TableMetadataParser.toJson(metadata, null, gen);

Review Comment:
   Wouldn't providing null here for FileIO cause IllegalArgumentException in BaseSnapshot.cacheManifests(FileIO)?
   
   https://github.com/apache/iceberg/blob/c0f175b517edef5dd1b06a5ac7890fb35224bc25/core/src/main/java/org/apache/iceberg/BaseSnapshot.java#L178



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

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

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