@@ -70,17 +70,17 @@ AggregateFunctionPtr createAggregateFunctionQuantile(const std::string & name, c
7070 WhichDataType which (argument_type);
7171
7272#define DISPATCH (TYPE ) \
73- if (which.idx == TypeIndex::TYPE) return std::make_shared<Function<TYPE, true >>(argument_type , params);
73+ if (which.idx == TypeIndex::TYPE) return std::make_shared<Function<TYPE, true >>(argument_types , params);
7474 FOR_NUMERIC_TYPES (DISPATCH)
7575#undef DISPATCH
76- if (which.idx == TypeIndex::Date) return std::make_shared<Function<DataTypeDate::FieldType, false >>(argument_type , params);
77- if (which.idx == TypeIndex::DateTime) return std::make_shared<Function<DataTypeDateTime::FieldType, false >>(argument_type , params);
76+ if (which.idx == TypeIndex::Date) return std::make_shared<Function<DataTypeDate::FieldType, false >>(argument_types , params);
77+ if (which.idx == TypeIndex::DateTime) return std::make_shared<Function<DataTypeDateTime::FieldType, false >>(argument_types , params);
7878
7979 if constexpr (supportDecimal<Function>())
8080 {
81- if (which.idx == TypeIndex::Decimal32) return std::make_shared<Function<Decimal32, false >>(argument_type , params);
82- if (which.idx == TypeIndex::Decimal64) return std::make_shared<Function<Decimal64, false >>(argument_type , params);
83- if (which.idx == TypeIndex::Decimal128) return std::make_shared<Function<Decimal128, false >>(argument_type , params);
81+ if (which.idx == TypeIndex::Decimal32) return std::make_shared<Function<Decimal32, false >>(argument_types , params);
82+ if (which.idx == TypeIndex::Decimal64) return std::make_shared<Function<Decimal64, false >>(argument_types , params);
83+ if (which.idx == TypeIndex::Decimal128) return std::make_shared<Function<Decimal128, false >>(argument_types , params);
8484 }
8585
8686 throw Exception (" Illegal type " + argument_type->getName () + " of argument for aggregate function " + name,
0 commit comments