impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Armstrong (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-3436: Return a decimal when rounding a double
Date Fri, 10 Nov 2017 01:29:21 GMT
Tim Armstrong has posted comments on this change. ( )

Change subject: IMPALA-3436: Return a decimal when rounding a double

Patch Set 3:


Didn't look at the frontend part.
File be/src/exprs/
PS3, Line 119: Decimal16Value
Do we always need Decimal16? Or should we switch on ByteSize() like the other functions?
File common/function-registry/
PS3, Line 285:   [['round_v1','dround_v1'],
I wonder if we should keep the functionality around under another alias in case someone is
actually using it with a variable precision. It's an edge case but I can imagine someone having
a dimension table that specifies formatting, or having some clever logic to round things to
different levels of precision. It would be nice to give them a way out if decimal_v2 breaks

We use the "f" prefix in some cases like this, e.g. fmod.
File fe/src/main/java/org/apache/impala/analysis/
PS1, Line 407: Type == nu

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I240ec70da7996bbfefcf6438eba4dff8d33d7bd6
Gerrit-Change-Number: 8398
Gerrit-PatchSet: 3
Gerrit-Owner: Taras Bobrovytsky <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Taras Bobrovytsky <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-Comment-Date: Fri, 10 Nov 2017 01:29:21 +0000
Gerrit-HasComments: Yes

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message