Aleksandr Efimov has posted comments on this change. ( https://gerrit.cloudera.org/25025 )
Change subject: IMPALA-15487: Fix DECIMAL truncation precision ...................................................................... Patch Set 2: (3 comments) https://gerrit.cloudera.org/#/c/25025/2//COMMIT_MSG Commit Message: https://gerrit.cloudera.org/#/c/25025/2//COMMIT_MSG@19 PS2, Line 19: four focused FE tests > nit: Please reword to something like “one parameterized FE test covering …” Updated the test description in PS3. https://gerrit.cloudera.org/#/c/25025/2/fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java File fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java: https://gerrit.cloudera.org/#/c/25025/2/fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java@616 PS2, Line 616: digitsBefore = Math.max(digitsBefore, digitsAfter == 0 ? 1 : 0); > if (digitsAfter == 0) digitsBefore = Math.max(digitsBefore, 1); may read cl Simplified it in PS3. https://gerrit.cloudera.org/#/c/25025/2/fe/src/test/java/org/apache/impala/analysis/AnalyzeExprsTest.java File fe/src/test/java/org/apache/impala/analysis/AnalyzeExprsTest.java: https://gerrit.cloudera.org/#/c/25025/2/fe/src/test/java/org/apache/impala/analysis/AnalyzeExprsTest.java@2999 PS2, Line 2999: private void testDecimalTruncationType(String expr, Type expectedType) { > Not sure of its usefulness but can we add a test that evaluates and checks Added value checks in PS3, including NULLs, negative inputs and both DECIMAL versions. -- To view, visit https://gerrit.cloudera.org/25025 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I1076caaf278038e37aa7c036dc87f4a81d89746c Gerrit-Change-Number: 25025 Gerrit-PatchSet: 2 Gerrit-Owner: Aleksandr Efimov <[email protected]> Gerrit-Reviewer: Aleksandr Efimov <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Steve Carlin <[email protected]> Gerrit-Comment-Date: Mon, 02 Nov 2026 09:01:40 +0000 Gerrit-HasComments: Yes
