RussellSpitzer commented on code in PR #11421:
URL: https://github.com/apache/iceberg/pull/11421#discussion_r1821455896


##########
core/src/main/java/org/apache/iceberg/SnapshotParser.java:
##########
@@ -142,6 +145,14 @@ static Snapshot fromJson(JsonNode node) {
       summary = builder.build();
     }
 
+    // When the operation is not found, default to OVERWRITE
+    if (operation == null) {
+      LOG.warn(
+          "Encountered invalid summary for snapshot {}: operation is missing, 
defaulting to overwrite",

Review Comment:
   ```suggestion
             "Encountered invalid summary for snapshot {}: the field operation 
is required but missing, setting operation to overwrite",
   ```



-- 
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-unsubscr...@iceberg.apache.org

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


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

Reply via email to