manuzhang commented on code in PR #10315:
URL: https://github.com/apache/iceberg/pull/10315#discussion_r1598686177


##########
spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/SparkConfParser.java:
##########
@@ -227,7 +225,26 @@ public ThisT tableProperty(String name) {
       return self();
     }
 
-    protected T parse(Function<String, T> conversion, T defaultValue) {
+    public ThisT check(Predicate<T> newCheck, String newErrMsg) {
+      this.check = newCheck;
+      this.errMsg = newErrMsg;
+      return self();
+    }
+
+    protected T parseAndCheck(Function<String, T> conversion, T defaultValue) {

Review Comment:
   Is it possible for `ProcedureInput` to utilize this method as well?



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