This is an automated email from the ASF dual-hosted git repository.

panxiaolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 827fa1e6018 [Chore](compatibility) add percentile_array to 
restrict_function (#41895)
827fa1e6018 is described below

commit 827fa1e6018f16da94f6991ca7c97ef1ffb0b979
Author: Pxl <[email protected]>
AuthorDate: Tue Oct 15 19:54:54 2024 +0800

    [Chore](compatibility) add percentile_array to restrict_function (#41895)
    
    ## Proposed changes
    1. add percentile_array to restrict_function
    2. fix wrong format log like ` Query a91dd45e9f584b70-9ab483bb1bc9d42b
    deconstructed, , deregister query/load mem`
---
 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 c602dc683fe..80f59d7101d 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 248d808f2cc..8f528e0121d 100644
--- a/be/src/vec/aggregate_functions/aggregate_function_percentile.cpp
+++ b/be/src/vec/aggregate_functions/aggregate_function_percentile.cpp
@@ -75,6 +75,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]

Reply via email to