mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 10:22:10 +00:00
Fix case sensitivity for percent_rank, dense_rank, and their aliases
This commit is contained in:
parent
9811a2e71b
commit
4a4bd97b4b
@ -2726,18 +2726,18 @@ void registerWindowFunctions(AggregateFunctionFactory & factory)
|
||||
{
|
||||
return std::make_shared<WindowFunctionDenseRank>(name, argument_types,
|
||||
parameters);
|
||||
}, properties}, AggregateFunctionFactory::Case::Insensitive);
|
||||
}, properties});
|
||||
|
||||
factory.registerAlias("dense_rank", "denseRank", AggregateFunctionFactory::Case::Sensitive);
|
||||
factory.registerAlias("dense_rank", "denseRank", AggregateFunctionFactory::Case::Insensitive);
|
||||
|
||||
factory.registerFunction("percentRank", {[](const std::string & name,
|
||||
const DataTypes & argument_types, const Array & parameters, const Settings *)
|
||||
{
|
||||
return std::make_shared<WindowFunctionPercentRank>(name, argument_types,
|
||||
parameters);
|
||||
}, properties}, AggregateFunctionFactory::Case::Insensitive);
|
||||
}, properties});
|
||||
|
||||
factory.registerAlias("percent_rank", "percentRank", AggregateFunctionFactory::Case::Sensitive);
|
||||
factory.registerAlias("percent_rank", "percentRank", AggregateFunctionFactory::Case::Insensitive);
|
||||
|
||||
factory.registerFunction("row_number", {[](const std::string & name,
|
||||
const DataTypes & argument_types, const Array & parameters, const Settings *)
|
||||
|
Loading…
Reference in New Issue
Block a user