Yifan Zhang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/21441
Change subject: IMPALA-12562: Cast double and float to string with exact presicion ...................................................................... IMPALA-12562: Cast double and float to string with exact presicion The builtin functions casttostring(DOUBLE) and casttostring(FLOAT) printed more digits when converting double and float values to string values. This patch fixes this by switching to use the existing methods SimpleDtoa and SimpleFtoa, which are simple and fast implementations to print necessary digits. Testing: - Add end-to-end tests to query_test/test_exprs.py Change-Id: Icd79c55dd57dc0fa13e4ec11c2284ef2800e8b1a --- M be/src/exprs/cast-functions-ir.cc M testdata/workloads/functional-query/queries/QueryTest/exprs.test 2 files changed, 43 insertions(+), 25 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/41/21441/1 -- To view, visit http://gerrit.cloudera.org:8080/21441 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Icd79c55dd57dc0fa13e4ec11c2284ef2800e8b1a Gerrit-Change-Number: 21441 Gerrit-PatchSet: 1 Gerrit-Owner: Yifan Zhang <chinazhangyi...@163.com>