snuyanzin commented on code in PR #28292:
URL: https://github.com/apache/flink/pull/28292#discussion_r3340112669


##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlFunctionUtils.java:
##########
@@ -1015,14 +1015,19 @@ public static Integer hashCode(String str) {
         return Math.abs(str.hashCode());
     }
 
+    /**
+     * Returns whether {@code s} contains a match for the regular expression 
{@code regex}. Literal
+     * regexes are validated at planning time by the input type strategy.
+     */
     public static Boolean regExp(String s, String regex) {
         if (regex.length() == 0) {

Review Comment:
   why not `isEmpty()`
   `length` also does some calculations



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