bchapuis commented on code in PR #3668:
URL: https://github.com/apache/calcite/pull/3668#discussion_r2243913748


##########
core/src/main/java/org/apache/calcite/sql/SqlKind.java:
##########
@@ -1242,22 +1242,439 @@ public enum SqlKind {
   // Spatial functions. They are registered as "user-defined functions" but it
   // is convenient to have a "kind" so that we can quickly match them in 
planner
   // rules.
+  //
+  // One can generate the list of spatial functions using the following 
snippet:
+  //
+  //  Method[] methods = SpatialTypeFunctions .class.getDeclaredMethods();
+  //  Arrays.stream(methods)
+  //    .map(java.lang.reflect.Method::getName)
+  //    .filter(method -> method.startsWith("ST_"))
+  //    .distinct().sorted()
+  //    .forEach(method -> {
+  //      System.out.println("/** The {@code " + method + "} function. */");
+  //      System.out.print(method.toUpperCase());
+  //      System.out.print(",\n\n");
+  //    });

Review Comment:
   I used this as a convenience to generate the list of function but have now 
removed it.



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