diff --git a/dbms/include/DB/Functions/FunctionsRound.h b/dbms/include/DB/Functions/FunctionsRound.h index 37f8d0e518f..699d30b3600 100644 --- a/dbms/include/DB/Functions/FunctionsRound.h +++ b/dbms/include/DB/Functions/FunctionsRound.h @@ -980,6 +980,9 @@ namespace typename ColumnVector::Container_t & vec_res = col_res->getData(); vec_res.resize(col->getData().size()); + if (vec_res.empty()) + return; + Op::apply(col->getData(), scale, vec_res); }