Aleksandr Efimov has posted comments on this change. ( https://gerrit.cloudera.org/25389 )
Change subject: IMPALA-14910 (addendum): Fixed broken limit tests for Calcite ...................................................................... Patch Set 2: (1 comment) https://gerrit.cloudera.org/#/c/25389/2/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/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/service/ImpalaSqlValidatorImpl.java@269 PS2, Line 269: typeFactory.createSqlType(SqlTypeName.BIGINT)); Thanks, `LIMIT 10 % 3` works on PS2. I found two edge cases. `LIMIT 10.5 % 2` hits an NPE before the integer type check, and `LIMIT CAST(10.5 % 2 AS BIGINT)` fails because the inner `%` has no validated type. Could we handle both and add regression tests? -- 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: 2 Gerrit-Owner: Steve Carlin <[email protected]> Gerrit-Reviewer: Aleksandr Efimov <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Steve Carlin <[email protected]> Gerrit-Reviewer: Wellington Cabrera <[email protected]> Gerrit-Comment-Date: Thu, 26 Nov 2026 12:40:27 +0000 Gerrit-HasComments: Yes
