Add any_value as a compatibility alias for any

This commit is contained in:
flynn 2023-07-16 05:20:09 +00:00
parent 9df928eb13
commit 315f4afe11
3 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,7 @@ void registerAggregateFunctionsAny(AggregateFunctionFactory & factory)
AggregateFunctionProperties properties = { .returns_default_when_only_null = false, .is_order_dependent = true };
factory.registerFunction("any", { createAggregateFunctionAny, properties });
factory.registerAlias("any_value", "any", AggregateFunctionFactory::CaseInsensitive);
factory.registerFunction("anyLast", { createAggregateFunctionAnyLast, properties });
factory.registerFunction("anyHeavy", { createAggregateFunctionAnyHeavy, properties });

View File

@ -0,0 +1,2 @@
0
0

View File

@ -0,0 +1,2 @@
select any_value(number) from numbers(10);
select aNy_VaLue(number) from numbers(10);