LakeShen commented on code in PR #3393:
URL: https://github.com/apache/calcite/pull/3393#discussion_r1340866061
##########
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:
I saw other containsXXX method used `call.getOperator() instanceof
XXXOperator`.
Could we use `call -> call.getOperator() instanceof SqlDefaultOperator` here
to keep the same behavior with others?
--
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]