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

github-bot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new c6f73636b7 Support LikeMatch, ILikeMatch, NotLikeMatch, NotILikeMatch 
operators in protobuf serialization (#18961)
c6f73636b7 is described below

commit c6f73636b771ddb827c2c0b4c5c690707867e9a0
Author: Qi Zhu <[email protected]>
AuthorDate: Thu Nov 27 18:16:52 2025 +0800

    Support LikeMatch, ILikeMatch, NotLikeMatch, NotILikeMatch operators in 
protobuf serialization (#18961)
    
    ## Which issue does this PR close?
    
    - Closes [#18960](https://github.com/apache/datafusion/issues/18960)
    
    ## Rationale for this change
    
    Support LikeMatch, ILikeMatch, NotLikeMatch, NotILikeMatch operators in
    protobuf serialization
    
    ## What changes are included in this PR?
    
    Support LikeMatch, ILikeMatch, NotLikeMatch, NotILikeMatch operators in
    protobuf serialization
    
    ## Are these changes tested?
    
    Yes
    
    ## Are there any user-facing changes?
    No
---
 datafusion/proto/src/logical_plan/from_proto.rs        | 4 ++++
 datafusion/proto/tests/cases/roundtrip_logical_plan.rs | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/datafusion/proto/src/logical_plan/from_proto.rs 
b/datafusion/proto/src/logical_plan/from_proto.rs
index 598a77f542..d410118452 100644
--- a/datafusion/proto/src/logical_plan/from_proto.rs
+++ b/datafusion/proto/src/logical_plan/from_proto.rs
@@ -729,6 +729,10 @@ pub fn from_proto_binary_op(op: &str) -> Result<Operator, 
Error> {
         "RegexMatch" => Ok(Operator::RegexMatch),
         "RegexNotIMatch" => Ok(Operator::RegexNotIMatch),
         "RegexNotMatch" => Ok(Operator::RegexNotMatch),
+        "LikeMatch" => Ok(Operator::LikeMatch),
+        "ILikeMatch" => Ok(Operator::ILikeMatch),
+        "NotLikeMatch" => Ok(Operator::NotLikeMatch),
+        "NotILikeMatch" => Ok(Operator::NotILikeMatch),
         "StringConcat" => Ok(Operator::StringConcat),
         "AtArrow" => Ok(Operator::AtArrow),
         "ArrowAt" => Ok(Operator::ArrowAt),
diff --git a/datafusion/proto/tests/cases/roundtrip_logical_plan.rs 
b/datafusion/proto/tests/cases/roundtrip_logical_plan.rs
index 989589dfb8..27bdf7bdcd 100644
--- a/datafusion/proto/tests/cases/roundtrip_logical_plan.rs
+++ b/datafusion/proto/tests/cases/roundtrip_logical_plan.rs
@@ -1981,6 +1981,10 @@ fn roundtrip_binary_op() {
     test(Operator::RegexNotMatch);
     test(Operator::RegexIMatch);
     test(Operator::RegexMatch);
+    test(Operator::LikeMatch);
+    test(Operator::ILikeMatch);
+    test(Operator::NotLikeMatch);
+    test(Operator::NotILikeMatch);
     test(Operator::BitwiseShiftRight);
     test(Operator::BitwiseShiftLeft);
     test(Operator::BitwiseAnd);


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

Reply via email to