This commit is contained in:
Alexey Milovidov 2018-09-08 04:42:34 +03:00
parent 8dcf59389c
commit 38b812ddba

View File

@ -1334,18 +1334,6 @@ public:
return type_res; return type_res;
} }
bool isAggregateMultiply(const DataTypePtr & type0, const DataTypePtr & type1) const
{
if constexpr (!std::is_same_v<Op<UInt8, UInt8>, MultiplyImpl<UInt8, UInt8>>)
return false;
WhichDataType which0(type0);
WhichDataType which1(type1);
return (which0.isAggregateFunction() && which1.isNativeUInt())
|| (which0.isNativeUInt() && which1.isAggregateFunction());
}
void executeImpl(Block & block, const ColumnNumbers & arguments, size_t result, size_t input_rows_count) override void executeImpl(Block & block, const ColumnNumbers & arguments, size_t result, size_t input_rows_count) override
{ {
/// Special case when multiply aggregate function state /// Special case when multiply aggregate function state