Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/23513 )
Change subject: IMPALA-13695: Calcite planner: fix for ndv with 2 args ...................................................................... Patch Set 2: (1 comment) http://gerrit.cloudera.org:8080/#/c/23513/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaNdvFunction.java File java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaNdvFunction.java: http://gerrit.cloudera.org:8080/#/c/23513/2/java/calcite-planner/src/main/java/org/apache/impala/calcite/operators/ImpalaNdvFunction.java@39 PS2, Line 39: BigDecimal bd = callBinding.getOperandLiteralValue(1, BigDecimal.class); : if (bd == null) { : throw new IllegalArgumentException("Error in ndv function, " + : "second parameter needs to be an integer."); : } : : if (bd.intValue() < 1 || bd.intValue() > 10) { : throw new IllegalArgumentException("Error in ndv function, " + : "second parameter needs to be between 1 and 10."); : } Can you add tests that trigger this error in calcite.test please? -- To view, visit http://gerrit.cloudera.org:8080/23513 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I82419f77e043e9975865a042ffb8db75a26931f7 Gerrit-Change-Number: 23513 Gerrit-PatchSet: 2 Gerrit-Owner: Steve Carlin <[email protected]> Gerrit-Reviewer: Aman Sinha <[email protected]> Gerrit-Reviewer: Fang-Yu Rao <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Riza Suminto <[email protected]> Gerrit-Comment-Date: Mon, 13 Oct 2025 16:56:23 +0000 Gerrit-HasComments: Yes
