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;