alex-plekhanov commented on code in PR #11851:
URL: https://github.com/apache/ignite/pull/11851#discussion_r1946655920


##########
modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/integration/UserDefinedFunctionsIntegrationTest.java:
##########
@@ -556,6 +620,39 @@ public static String echo(String s) {
         }
     }
 
+    /** */
+    public static class OverrideSystemFunctionLibrary {
+        /** Overwrites standard 'UPPER(VARCHAR)'. */
+        @QuerySqlFunction
+        public static int upper(String s) {
+            return F.isEmpty(s) ? 0 : s.length();
+        }
+
+        /** Overwrites standard 'UNIX_SECONDS(Timestamp)'. */
+        @QuerySqlFunction
+        public static int unix_seconds(Timestamp ts) {
+            return 1;
+        }
+
+        /** Overwrites Ignite's 'SYSTEM_RANGE(...)'. */
+        @QuerySqlFunction

Review Comment:
   QuerySqlTableFunction



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to