macroguo-ghy commented on code in PR #4855:
URL: https://github.com/apache/calcite/pull/4855#discussion_r3006367189


##########
testkit/src/main/java/org/apache/calcite/util/Smalls.java:
##########
@@ -1493,6 +1494,23 @@ public static ByteString eval(String s) {
     }
   }
 
+  /** User-defined function with return type byte[]. */
+  public static class ByteArrayFunction {
+    public static byte[] eval(String s) {
+      if (s == null) {
+        return null;
+      }
+      return s.getBytes(StandardCharsets.UTF_8);
+    }
+  }
+
+  /** User-defined function with parameter type byte[]. */
+  public static class ByteArrayLengthFunction {
+    public static int eval(byte[] bytes) {

Review Comment:
   UDF in `Smalls` is just for test



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