Tim Armstrong has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/8574 )

Change subject: IMPALA-5936: operator '%' overflows on large decimals
......................................................................


Patch Set 1:

(2 comments)

Makes perfect sense to me. Taras should also have a look.

http://gerrit.cloudera.org:8080/#/c/8574/1/be/src/exprs/decimal-operators-ir.cc
File be/src/exprs/decimal-operators-ir.cc:

http://gerrit.cloudera.org:8080/#/c/8574/1/be/src/exprs/decimal-operators-ir.cc@723
PS1, Line 723:     int size = ::max(::max(x_size, y_size), return_size); \
Can you add a brief comment to explain why max() is required? E.g. "An input to 
mod may have higher precision than the return".


http://gerrit.cloudera.org:8080/#/c/8574/1/testdata/workloads/functional-query/queries/QueryTest/decimal-exprs.test
File testdata/workloads/functional-query/queries/QueryTest/decimal-exprs.test:

http://gerrit.cloudera.org:8080/#/c/8574/1/testdata/workloads/functional-query/queries/QueryTest/decimal-exprs.test@301
PS1, Line 301: ---- QUERY
Can you add the JIRA number here? Sometimes it's useful to see where the test 
came from.



--
To view, visit http://gerrit.cloudera.org:8080/8574
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I2b06c8acd5aa490943e84013faf2eaac7c26ceb4
Gerrit-Change-Number: 8574
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Comment-Date: Thu, 16 Nov 2017 15:58:55 +0000
Gerrit-HasComments: Yes

Reply via email to