Skip to content

Commit 0e57822

Browse files
committed
Add support for PGCustomBinaryOperator regex
Add basic support for PGCustomBinaryOperator regex.
1 parent 638dc46 commit 0e57822

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

datafusion/sql/src/expr/binary_op.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
6868
BinaryOperator::Question => Ok(Operator::Question),
6969
BinaryOperator::QuestionAnd => Ok(Operator::QuestionAnd),
7070
BinaryOperator::QuestionPipe => Ok(Operator::QuestionPipe),
71+
BinaryOperator::PGCustomBinaryOperator(custom) if custom == ["pg_catalog", "~"] => Ok(Operator::RegexMatch),
7172
_ => not_impl_err!("Unsupported binary operator: {:?}", op),
7273
}
7374
}

0 commit comments

Comments
 (0)