This is an automated email from the ASF dual-hosted git repository.
gabriellee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 1c139b72dd1 [fix](predicate) Fix like expr push-down (#59936)
1c139b72dd1 is described below
commit 1c139b72dd13df9f559e8a7cef632dcebe41b7c8
Author: Gabriel <[email protected]>
AuthorDate: Fri Jan 16 10:12:34 2026 +0800
[fix](predicate) Fix like expr push-down (#59936)
Many exprs could have `FUNCTION_CALL` expr type now. So we should change
the judgement to determine when we need to push down the function
---
be/src/pipeline/exec/scan_operator.cpp | 2 +-
be/src/vec/exprs/vexpr.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/pipeline/exec/scan_operator.cpp
b/be/src/pipeline/exec/scan_operator.cpp
index 93e56861648..ff6177dd4f0 100644
--- a/be/src/pipeline/exec/scan_operator.cpp
+++ b/be/src/pipeline/exec/scan_operator.cpp
@@ -541,7 +541,7 @@ Status
ScanLocalState<Derived>::_normalize_function_filters(vectorized::VExprCon
opposite = true;
}
- if (TExprNodeType::FUNCTION_CALL == fn_expr->node_type()) {
+ if (fn_expr->is_like_expr()) {
doris::FunctionContext* fn_ctx = nullptr;
StringRef val;
PushDownType temp_pdt;
diff --git a/be/src/vec/exprs/vexpr.h b/be/src/vec/exprs/vexpr.h
index 5e1f76a7e7d..3149d072bbd 100644
--- a/be/src/vec/exprs/vexpr.h
+++ b/be/src/vec/exprs/vexpr.h
@@ -251,6 +251,7 @@ public:
static std::string debug_string(const VExprContextSPtrs& ctxs);
bool is_and_expr() const { return _fn.name.function_name == "and"; }
+ bool is_like_expr() const { return _fn.name.function_name == "like"; }
const TFunction& fn() const { return _fn; }
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]