From a797ac6d802c5597734c610455f3dc2d45500b9f Mon Sep 17 00:00:00 2001 From: Amos Bird Date: Fri, 11 Dec 2020 00:31:22 +0800 Subject: [PATCH] fix test again... --- src/AggregateFunctions/AggregateFunctionGroupBitmapData.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h b/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h index 734a63fd755..5bca64095fa 100644 --- a/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h +++ b/src/AggregateFunctions/AggregateFunctionGroupBitmapData.h @@ -576,7 +576,7 @@ public: { if (isSmall()) { - if (small.size()) + if (small.empty()) return 0; auto min_val = std::numeric_limits>::max(); for (const auto & x : small) @@ -595,7 +595,7 @@ public: { if (isSmall()) { - if (small.size()) + if (small.empty()) return 0; auto max_val = std::numeric_limits>::min(); for (const auto & x : small)