You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2025/10/14 10:11:46 UTC
(doris) branch branch-4.0 updated: branch-4.0: [improvement](cloud) only add filecache profile for olap table in cloud deploy mode #52118 (#56924)
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] <41...@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 <we...@gmail.com>
---
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org