Steve Carlin has posted comments on this change. ( 
https://gerrit.cloudera.org/25389 )

Change subject: IMPALA-14910 (addendum): Fixed broken limit tests for Calcite
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.cloudera.org/#/c/25389/1/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java
File 
java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java:

https://gerrit.cloudera.org/#/c/25389/1/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java@237
PS1, Line 237:         setValidatedNodeType(select.getFetch(),
> `LIMIT CAST('3' AS STRING)` gets stamped BIGINT here, which `convertExplici
Not sure I understand the issue here

I just ran this in impala-shell and got the error I expected:

RuntimeException: java.lang.RuntimeException: LIMIT expression must be an 
integer type.
CAUSED BY: RuntimeException: LIMIT expression must be an integer type.

Furthermore, there is a negative test in calcite.test for "limit 1 + .5" that 
produces the same error message.  I don't think it's necessary to add another 
negative limit test for the same error message.



--
To view, visit https://gerrit.cloudera.org/25389
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: If49af06661ccfedb3055f37a96ba1b14e501ee0c
Gerrit-Change-Number: 25389
Gerrit-PatchSet: 1
Gerrit-Owner: Steve Carlin <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Steve Carlin <[email protected]>
Gerrit-Reviewer: Wellington Cabrera <[email protected]>
Gerrit-Comment-Date: Wed, 11 Nov 2026 22:18:09 +0000
Gerrit-HasComments: Yes

Reply via email to