Taras Bobrovytsky has uploaded this change for review. ( http://gerrit.cloudera.org:8080/8547
Change subject: IMPALA-6183: Fix Decimal to Double conversion ...................................................................... IMPALA-6183: Fix Decimal to Double conversion When converting a decimal to a double, we incorrectly used the powf() function in the backend, which returns a float instead of a double. This caused us to lose precision. We fix the problem by replacing the powf() function with a pow() function, which returns a double. Testing: - Added an EE test. Change-Id: I9bf81d039e5037f22c64a32b328832235aafe9e3 --- M be/src/runtime/decimal-value.inline.h M testdata/workloads/functional-query/queries/QueryTest/decimal-exprs.test 2 files changed, 27 insertions(+), 1 deletion(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/47/8547/1 -- To view, visit http://gerrit.cloudera.org:8080/8547 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I9bf81d039e5037f22c64a32b328832235aafe9e3 Gerrit-Change-Number: 8547 Gerrit-PatchSet: 1 Gerrit-Owner: Taras Bobrovytsky <[email protected]>
