This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new 5c911481516 branch-4.1: [fix](olap) Avoid polluting the schema cache
in OlapScanner #61510 (#61854)
5c911481516 is described below
commit 5c911481516166c3eb25804a1c81b67a3f4726ae
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Mar 30 10:19:29 2026 +0800
branch-4.1: [fix](olap) Avoid polluting the schema cache in OlapScanner
#61510 (#61854)
Cherry-picked from #61510
Co-authored-by: Jerry Hu <[email protected]>
---
be/src/exec/scan/olap_scanner.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/be/src/exec/scan/olap_scanner.cpp
b/be/src/exec/scan/olap_scanner.cpp
index 5df196ddf26..4ac4b2f3e0d 100644
--- a/be/src/exec/scan/olap_scanner.cpp
+++ b/be/src/exec/scan/olap_scanner.cpp
@@ -178,6 +178,11 @@ Status OlapScanner::prepare() {
return false;
}
+ // If `delete_predicates` is not empty, will merge the columns in
delete predicate into current tablet schema
+ if (!_tablet_reader_params.delete_predicates.empty()) {
+ return false;
+ }
+
const bool has_pruned_column =
std::ranges::any_of(_output_tuple_desc->slots(), [](const
auto& slot) {
if ((slot->type()->get_primitive_type() ==
PrimitiveType::TYPE_STRUCT ||
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]