From 733bd0ecec8266a4cc5ec095430b184294402f1c Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 7 Aug 2020 03:29:52 +0300 Subject: [PATCH] Fix error --- src/AggregateFunctions/IAggregateFunction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AggregateFunctions/IAggregateFunction.h b/src/AggregateFunctions/IAggregateFunction.h index c3968db189f..568303ff246 100644 --- a/src/AggregateFunctions/IAggregateFunction.h +++ b/src/AggregateFunctions/IAggregateFunction.h @@ -351,7 +351,7 @@ public: /// If the function is complex or too large, use more generic algorithm. - if (func.allocatesMemoryInArena() || sizeof(Data) > 16) + if (func.allocatesMemoryInArena() || func.sizeOfData() > 16 || func.sizeOfData() != sizeof(Data)) { IAggregateFunctionHelper::addBatchLookupTable8(batch_size, map, place_offset, init, key, columns, arena); return;