From 94faaaa59c31016ad1e10ccc27be35076b045335 Mon Sep 17 00:00:00 2001 From: benthompson15 Date: Mon, 31 Jan 2022 13:46:52 -0600 Subject: [PATCH] MCOL-4940: getLongDoubleVal was not handling all colDataType correctly (#2227) --- utils/funcexp/func_round.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/funcexp/func_round.cpp b/utils/funcexp/func_round.cpp index 0adbba692..bb4131b18 100644 --- a/utils/funcexp/func_round.cpp +++ b/utils/funcexp/func_round.cpp @@ -231,7 +231,9 @@ long double Func_round::getLongDoubleVal(Row& row, bool& isNull, CalpontSystemCatalog::ColType& op_ct) { - if (execplan::CalpontSystemCatalog::LONGDOUBLE == op_ct.colDataType) + if (execplan::CalpontSystemCatalog::LONGDOUBLE == op_ct.colDataType || + execplan::CalpontSystemCatalog::DOUBLE == op_ct.colDataType || + execplan::CalpontSystemCatalog::FLOAT == op_ct.colDataType) { int64_t d = 0; long double p = 1;