Skip to content

Commit c6f7363

Browse files
authored
Support LikeMatch, ILikeMatch, NotLikeMatch, NotILikeMatch operators in protobuf serialization (#18961)
## Which issue does this PR close? - Closes [#18960](#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
1 parent b990987 commit c6f7363

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

datafusion/proto/src/logical_plan/from_proto.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,10 @@ pub fn from_proto_binary_op(op: &str) -> Result<Operator, Error> {
729729
"RegexMatch" => Ok(Operator::RegexMatch),
730730
"RegexNotIMatch" => Ok(Operator::RegexNotIMatch),
731731
"RegexNotMatch" => Ok(Operator::RegexNotMatch),
732+
"LikeMatch" => Ok(Operator::LikeMatch),
733+
"ILikeMatch" => Ok(Operator::ILikeMatch),
734+
"NotLikeMatch" => Ok(Operator::NotLikeMatch),
735+
"NotILikeMatch" => Ok(Operator::NotILikeMatch),
732736
"StringConcat" => Ok(Operator::StringConcat),
733737
"AtArrow" => Ok(Operator::AtArrow),
734738
"ArrowAt" => Ok(Operator::ArrowAt),

datafusion/proto/tests/cases/roundtrip_logical_plan.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,6 +1981,10 @@ fn roundtrip_binary_op() {
19811981
test(Operator::RegexNotMatch);
19821982
test(Operator::RegexIMatch);
19831983
test(Operator::RegexMatch);
1984+
test(Operator::LikeMatch);
1985+
test(Operator::ILikeMatch);
1986+
test(Operator::NotLikeMatch);
1987+
test(Operator::NotILikeMatch);
19841988
test(Operator::BitwiseShiftRight);
19851989
test(Operator::BitwiseShiftLeft);
19861990
test(Operator::BitwiseAnd);

0 commit comments

Comments
 (0)