dramaticlly commented on code in PR #11437:
URL: https://github.com/apache/iceberg/pull/11437#discussion_r1825258756


##########
core/src/main/java/org/apache/iceberg/util/PropertyUtil.java:
##########
@@ -100,6 +102,30 @@ public static String propertyAsString(
     return defaultValue;
   }
 
+  /**
+   * Validate the table commit related properties to have non-negative integer 
on table creation to
+   * prevent commit failure
+   *
+   * @param properties input map
+   */
+  public static void validateCommitProperties(Map<String, String> properties) {
+    for (String commitProperty : TableProperties.COMMIT_PROPERTIES) {

Review Comment:
   Actually with exception handling and validation throwing new exceptions in 
the code, I think for each loop shall be fine. Let me know if you hate it



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