From 20e264fe0c71014839cd6a99d0df132cd1dd8f4b Mon Sep 17 00:00:00 2001 From: liuyehcf <1559500551@qq.com> Date: Mon, 30 Oct 2023 17:02:57 +0800 Subject: [PATCH] update 1 Signed-off-by: liuyehcf <1559500551@qq.com> --- be/src/exec/pipeline/query_context.h | 6 ++---- gensrc/thrift/InternalService.thrift | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/be/src/exec/pipeline/query_context.h b/be/src/exec/pipeline/query_context.h index 96f296a6e93691..36a470d29d42b9 100644 --- a/be/src/exec/pipeline/query_context.h +++ b/be/src/exec/pipeline/query_context.h @@ -89,12 +89,11 @@ class QueryContext : public std::enable_shared_from_this { duration_cast(steady_clock::now().time_since_epoch() + _query_expire_seconds).count(); } void set_enable_profile() { _enable_profile = true; } - void set_enable_big_query_profile() { _enable_big_query_profile = true; } bool enable_profile() { if (_enable_profile) { return true; } - if (!_enable_big_query_profile) { + if (_big_query_profile_threshold_ns <= 0) { return false; } return MonotonicNanos() - _query_begin_time > _big_query_profile_threshold_ns; @@ -214,8 +213,7 @@ class QueryContext : public std::enable_shared_from_this { std::once_flag _init_mem_tracker_once; std::shared_ptr _profile; bool _enable_profile = false; - bool _enable_big_query_profile = false; - int64_t _big_query_profile_threshold_ns; + int64_t _big_query_profile_threshold_ns = 0; int64_t _runtime_profile_report_interval_ns = std::numeric_limits::max(); TPipelineProfileLevel::type _profile_level; std::shared_ptr _mem_tracker; diff --git a/gensrc/thrift/InternalService.thrift b/gensrc/thrift/InternalService.thrift index 8ae4c8de65ef78..01fb835440b96b 100644 --- a/gensrc/thrift/InternalService.thrift +++ b/gensrc/thrift/InternalService.thrift @@ -233,8 +233,7 @@ struct TQueryOptions { 107: optional i64 global_runtime_filter_build_max_size; 108: optional i64 runtime_filter_rpc_http_min_size; - 109: optional bool enable_big_query_profile; - 110: optional i64 big_query_profile_second_threshold; + 109: optional i64 big_query_profile_second_threshold; }