Zach Amsden has uploaded a new patch set (#2).

Change subject: IMPALA-2020: Make it easy to work with big numbers
......................................................................

IMPALA-2020: Make it easy to work with big numbers

We're going to be working with some really big numbers that
can't always be expressed in legal C++ but can be generated
at compile time.

Testing: Ran this in godbolt:

int lotsanines = LargeNum<int>(9, 9);
__int128 bignines = LargeNum<__int128>(9, 38);`

lotsanines:
        .long   999999999
bignines:
        .quad   687399551400673279
        .quad   5421010862427522170

Ran this query in Python:

>>> print 687399551400673279 + (5421010862427522170 * 2**64)
99999999999999999999999999999999999999
>>>

Looks legit.

Change-Id: I5095a366d914cebb0b64bd434a08dbb55c90ed30
---
M be/src/benchmarks/overflow-benchmark.cc
M be/src/common/init.cc
M be/src/util/decimal-util.cc
M be/src/util/decimal-util.h
4 files changed, 8 insertions(+), 16 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/02/5902/2
-- 
To view, visit http://gerrit.cloudera.org:8080/5902
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I5095a366d914cebb0b64bd434a08dbb55c90ed30
Gerrit-PatchSet: 2
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Zach Amsden <zams...@cloudera.com>
Gerrit-Reviewer: Dan Hecht <dhe...@cloudera.com>
Gerrit-Reviewer: Michael Ho

Reply via email to