alex-plekhanov commented on code in PR #11547:
URL: https://github.com/apache/ignite/pull/11547#discussion_r2025246357
##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/CalciteQueryProcessor.java:
##########
@@ -565,6 +567,31 @@ private <T> List<T> parseAndProcessQuery(
return res;
}
+ /** */
+ private void checkDynamicParamsCount(SqlNode node, Object[] params) {
+ int[] maxDynParIdx = new int[] {-1};
+
+ node.accept(new SqlShuttle() {
+ @Override public SqlNode visit(SqlDynamicParam param) {
+ if (param.getIndex() > maxDynParIdx[0])
+ maxDynParIdx[0] = param.getIndex();
+
+ return param;
+ }
+
+ @Override public
@org.checkerframework.checker.nullness.qual.Nullable SqlNode visit(SqlCall
call) {
Review Comment:
Useless method
--
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]