mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Add any_value as a compatibility alias for any
This commit is contained in:
parent
9df928eb13
commit
315f4afe11
@ -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 });
|
||||
|
||||
|
2
tests/queries/0_stateless/02813_any_value.reference
Normal file
2
tests/queries/0_stateless/02813_any_value.reference
Normal file
@ -0,0 +1,2 @@
|
||||
0
|
||||
0
|
2
tests/queries/0_stateless/02813_any_value.sql
Normal file
2
tests/queries/0_stateless/02813_any_value.sql
Normal file
@ -0,0 +1,2 @@
|
||||
select any_value(number) from numbers(10);
|
||||
select aNy_VaLue(number) from numbers(10);
|
Loading…
Reference in New Issue
Block a user