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 15e0e1a388d branch-4.0: [fix](predicate) Fix like expr push-down 
#59936 (#59948)
15e0e1a388d is described below

commit 15e0e1a388d8b454bb95c5889e98cbe69195ccb0
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jan 16 14:54:51 2026 +0800

    branch-4.0: [fix](predicate) Fix like expr push-down #59936 (#59948)
    
    Cherry-picked from #59936
    
    Co-authored-by: Gabriel <[email protected]>
---
 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 f43679debb1..536896a3304 100644
--- a/be/src/pipeline/exec/scan_operator.cpp
+++ b/be/src/pipeline/exec/scan_operator.cpp
@@ -520,7 +520,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 4e7f3325b86..283d0a0608d 100644
--- a/be/src/vec/exprs/vexpr.h
+++ b/be/src/vec/exprs/vexpr.h
@@ -254,6 +254,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]

Reply via email to