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

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 839994f2c7c branch-4.0: [improvement](cloud) only add filecache 
profile for olap table in cloud deploy mode #52118 (#56924)
839994f2c7c is described below

commit 839994f2c7c6ad4a879e5d2bc1f6fa80bd281bdf
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Oct 14 18:11:39 2025 +0800

    branch-4.0: [improvement](cloud) only add filecache profile for olap table 
in cloud deploy mode #52118 (#56924)
    
    Cherry-picked from #52118
    
    Co-authored-by: Wen Zhenghu <[email protected]>
---
 be/src/vec/exec/scan/olap_scanner.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/be/src/vec/exec/scan/olap_scanner.cpp 
b/be/src/vec/exec/scan/olap_scanner.cpp
index bbd557d2834..0d9c0f0698f 100644
--- a/be/src/vec/exec/scan/olap_scanner.cpp
+++ b/be/src/vec/exec/scan/olap_scanner.cpp
@@ -766,7 +766,9 @@ void OlapScanner::_collect_profile_before_close() {
     inverted_index_profile.update(local_state->_index_filter_profile.get(),
                                   &stats.inverted_index_stats);
 
-    if (config::enable_file_cache) {
+    // only cloud deploy mode will use file cache. and keep the same with 
FileScanner
+    if (config::is_cloud_mode() && config::enable_file_cache &&
+        _state->query_options().enable_file_cache) {
         io::FileCacheProfileReporter 
cache_profile(local_state->_segment_profile.get());
         cache_profile.update(&stats.file_cache_stats);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to