matriv commented on a change in pull request #19190:
URL: https://github.com/apache/flink/pull/19190#discussion_r839874307



##########
File path: 
flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/CallContext.java
##########
@@ -93,6 +93,17 @@ default ValidationException newValidationError(String 
message, Object... args) {
         return new ValidationException(String.format(message, args));
     }
 
+    /**
+     * Shorthand for {@code if (throwOnFailure) throw ValidationException(...) 
else return

Review comment:
       I get it, don't have a quick good alternative, just felt weird to have a 
"static" utility method in the iface, (same goes for the existing 
`newValidationError()`).




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


Reply via email to