This is an automated email from the ASF dual-hosted git repository.
hellostephen pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new fc5385f4e83 [Chore](compatibility) add percentile_array to
restrict_function (#41895 (#42360)
fc5385f4e83 is described below
commit fc5385f4e8329a9e8ab9c01c6e7c7a5b5a5c7f59
Author: Pxl <[email protected]>
AuthorDate: Thu Oct 24 18:55:50 2024 +0800
[Chore](compatibility) add percentile_array to restrict_function (#41895
(#42360)
## Proposed changes
1. add percentile_array to restrict_function
2. fix wrong format log like ` Query a91dd45e9f584b70-9ab483bb1bc9d42b
deconstructed, , deregister query/load mem`
## Proposed changes
pick from #41895
---
be/src/runtime/query_context.cpp | 2 +-
be/src/vec/aggregate_functions/aggregate_function_percentile.cpp | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/runtime/query_context.cpp b/be/src/runtime/query_context.cpp
index 046de58fe5f..354de1426e9 100644
--- a/be/src/runtime/query_context.cpp
+++ b/be/src/runtime/query_context.cpp
@@ -150,7 +150,7 @@ QueryContext::~QueryContext() {
std::string mem_tracker_msg;
if (query_mem_tracker->peak_consumption() != 0) {
mem_tracker_msg = fmt::format(
- ", deregister query/load memory tracker, queryId={}, Limit={},
CurrUsed={}, "
+ "deregister query/load memory tracker, queryId={}, Limit={},
CurrUsed={}, "
"PeakUsed={}",
print_id(_query_id),
MemCounter::print_bytes(query_mem_tracker->limit()),
MemCounter::print_bytes(query_mem_tracker->consumption()),
diff --git a/be/src/vec/aggregate_functions/aggregate_function_percentile.cpp
b/be/src/vec/aggregate_functions/aggregate_function_percentile.cpp
index 847e752d1ae..bb4e1bd81e3 100644
--- a/be/src/vec/aggregate_functions/aggregate_function_percentile.cpp
+++ b/be/src/vec/aggregate_functions/aggregate_function_percentile.cpp
@@ -76,6 +76,7 @@ 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");
}
void
register_aggregate_function_percentile_approx(AggregateFunctionSimpleFactory&
factory) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]