zclllyybb commented on code in PR #62520:
URL: https://github.com/apache/doris/pull/62520#discussion_r3098644140
##########
be/src/exprs/aggregate/aggregate_function_percentile.cpp:
##########
@@ -74,8 +82,28 @@ void
register_percentile_approx_old_function(AggregateFunctionSimpleFactory& fac
}
void
register_aggregate_function_percentile_old(AggregateFunctionSimpleFactory&
factory) {
-
BeExecVersionManager::registe_restrict_function_compatibility("percentile");
-
BeExecVersionManager::registe_restrict_function_compatibility("percentile_array");
+ using creator = creator_with_type_list<TYPE_TINYINT, TYPE_SMALLINT,
TYPE_INT, TYPE_BIGINT,
+ TYPE_LARGEINT, TYPE_FLOAT,
TYPE_DOUBLE>;
+ factory.register_alternative_function("percentile",
Review Comment:
use `query_option` based upgrade
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]