This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 7fd0ec7d17 [Bug](float) fix wrong value when enable fold constant by BE (#17901) 7fd0ec7d17 is described below commit 7fd0ec7d174a92e2049edb6a3ca5c1599f1fdfc9 Author: Gabriel <gabrielleeb...@gmail.com> AuthorDate: Wed Mar 22 09:51:03 2023 +0800 [Bug](float) fix wrong value when enable fold constant by BE (#17901) --- be/src/runtime/fold_constant_executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/runtime/fold_constant_executor.cpp b/be/src/runtime/fold_constant_executor.cpp index da99ddfd1e..be0db2b117 100644 --- a/be/src/runtime/fold_constant_executor.cpp +++ b/be/src/runtime/fold_constant_executor.cpp @@ -167,12 +167,12 @@ string FoldConstantExecutor::_get_result(void* src, size_t size, const TypeDescr } case TYPE_FLOAT: { float val = *reinterpret_cast<const float*>(src); - return fmt::format("{:.9g}", val); + return fmt::format("{}", val); } case TYPE_TIME: case TYPE_DOUBLE: { double val = *reinterpret_cast<double*>(src); - return fmt::format("{:.17g}", val); + return fmt::format("{}", val); } case TYPE_CHAR: case TYPE_VARCHAR: --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org