danielcweeks commented on code in PR #6317:
URL: https://github.com/apache/iceberg/pull/6317#discussion_r1036360113


##########
core/src/main/java/org/apache/iceberg/MetadataUpdateParser.java:
##########
@@ -471,13 +477,26 @@ private static MetadataUpdate 
readRemoveSnapshotRef(JsonNode node) {
   }
 
   private static MetadataUpdate readSetProperties(JsonNode node) {
-    Map<String, String> updated = JsonUtil.getStringMap(UPDATED, node);
-    return new MetadataUpdate.SetProperties(updated);
+    Map<String, String> updates;
+    // first read UPDATED for backward compatibility
+    if (node.has(UPDATED)) {

Review Comment:
   nit: I think you should always check the correct property first, so we don't 
prioritize the obsolete one.  This is pretty minor because you likely wouldn't 
have both.



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

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