This is an automated email from the ASF dual-hosted git repository. xudong963 pushed a commit to branch fix/sort-merge-reservation-starvation in repository https://gitbox.apache.org/repos/asf/datafusion.git
commit 4ab7cafd4a6e3f935ef2cbe3ebc24c1c2266edb0 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 (cherry picked from commit c6f73636b771ddb827c2c0b4c5c690707867e9a0) --- 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 bfd693e6a0..9c63f8078e 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]
