mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
check number of arguments for -Array combinator [#CLICKHOUSE-3853] #2703
This commit is contained in:
parent
1c200589f5
commit
4c4da31cc2
@ -18,6 +18,9 @@ public:
|
||||
|
||||
DataTypes transformArguments(const DataTypes & arguments) const override
|
||||
{
|
||||
if (0 == arguments.size())
|
||||
throw Exception("-Array aggregate functions require at least one argument", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
|
||||
|
||||
DataTypes nested_arguments;
|
||||
for (const auto & type : arguments)
|
||||
{
|
||||
|
@ -428,5 +428,7 @@ SELECT COVAR_SAMPArray([CAST( 0 AS Int8)],arrayPopBack([CAST( 0 AS Int8)]));
|
||||
SELECT medianTimingWeightedArray([CAST( 0 AS Int8)],arrayPopBack([CAST( 0 AS Int8)]));
|
||||
SELECT quantilesDeterministicArray([CAST( 0 AS Int8)],arrayPopBack([CAST( 0 AS Int32)]));
|
||||
|
||||
SELECT maxIntersections([], [])
|
||||
SELECT sumMap([], [])
|
||||
SELECT maxIntersections([], []);
|
||||
SELECT sumMap([], []);
|
||||
|
||||
SELECT countArray();
|
||||
|
Loading…
Reference in New Issue
Block a user