LakeShen commented on code in PR #3393:
URL: https://github.com/apache/calcite/pull/3393#discussion_r1341448488


##########
core/src/main/java/org/apache/calcite/sql/SqlUtil.java:
##########
@@ -1238,6 +1238,17 @@ public static boolean containsIn(SqlNode node) {
     return containsCall(node, callPredicate);
   }
 
+  /**
+   * Determine presence at least one node with {@link SqlKind#DEFAULT} type.
+   *
+   * @param node AST tree
+   */
+  public static boolean containsDefault(SqlNode node) {
+    final Predicate<SqlCall> callPredicate = call ->

Review Comment:
   Get your point.
   
   You think in terms of performance, I think in terms of code style,I don't 
know the performance difference between them,but it is ok for me.



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