From d85498df8161a8ef288109b4d2f8043de608888d Mon Sep 17 00:00:00 2001 From: HappenLee Date: Tue, 12 Dec 2023 06:28:03 +0800 Subject: [PATCH] [exec](profile) only build expr debug string enable profile --- be/src/vec/exec/scan/new_olap_scan_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/vec/exec/scan/new_olap_scan_node.cpp b/be/src/vec/exec/scan/new_olap_scan_node.cpp index 8c67acc19160ba..9813d549bd419f 100644 --- a/be/src/vec/exec/scan/new_olap_scan_node.cpp +++ b/be/src/vec/exec/scan/new_olap_scan_node.cpp @@ -472,7 +472,7 @@ Status NewOlapScanNode::_init_scanners(std::list* scanners) { } SCOPED_TIMER(_scanner_init_timer); - if (!_conjuncts.empty()) { + if (!_conjuncts.empty() && VScanNode::_state->enable_profile()) { std::string message; for (auto& conjunct : _conjuncts) { if (conjunct->root()) {