Arnab Karmakar has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/25025 )

Change subject: IMPALA-15487: Fix DECIMAL truncation precision
......................................................................


Patch Set 2:

(3 comments)

Looks good overall!

http://gerrit.cloudera.org:8080/#/c/25025/2//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/25025/2//COMMIT_MSG@19
PS2, Line 19: four focused FE tests
nit: Please reword to something like “one parameterized FE test covering …” as 
the patch adds one @Test method.


http://gerrit.cloudera.org:8080/#/c/25025/2/fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java
File fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java:

http://gerrit.cloudera.org:8080/#/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 
clearer.


http://gerrit.cloudera.org:8080/#/c/25025/2/fe/src/test/java/org/apache/impala/analysis/AnalyzeExprsTest.java
File fe/src/test/java/org/apache/impala/analysis/AnalyzeExprsTest.java:

http://gerrit.cloudera.org:8080/#/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 the 
value? All of the cases are checking the type.



--
To view, visit http://gerrit.cloudera.org:8080/25025
To unsubscribe, visit http://gerrit.cloudera.org:8080/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: Fri, 30 Oct 2026 19:16:40 +0000
Gerrit-HasComments: Yes

Reply via email to