tkalkirill commented on code in PR #13311:
URL: https://github.com/apache/ignite/pull/13311#discussion_r3720712796


##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/LogicalRelImplementor.java:
##########
@@ -1050,4 +1054,33 @@ private ScanStorageNode<Row> createStorageScan(
             otherColMapping
         );
     }
+
+    /** */
+    private long validateAndGetFetchOffsetParams(RexNode node, String op) {
+        Supplier<Object> scalar = expressionFactory.execute(node);
+        Object param = scalar.get();
+
+        if (!(param instanceof Number)) {
+            String actual = param == null ? "null" : 
param.getClass().getSimpleName();
+            throw new 
IgniteSQLException(IgniteResource.INSTANCE.incorrectDynamicParameterType("BIGINT",
 actual).str(),

Review Comment:
   Okay, let’s keep `BIGINT` to stay consistent with PG. However, a direct 
check of Ignite parameter metadata shows that `LIMIT ?`, `OFFSET ?`, and `FETCH 
FIRST ? ROWS ONLY` are all reported as `INTEGER (int, precision 10)`, not 
`BIGINT`. Therefore, the parameter metadata and validation are currently 
inconsistent. Please make them agree and report `BIGINT` in the metadata as 
well.
   
   



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