viirya commented on code in PR #8496:
URL: https://github.com/apache/arrow-datafusion/pull/8496#discussion_r1423360408


##########
datafusion/sql/src/expr/binary_op.rs:
##########
@@ -47,6 +47,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
             BinaryOperator::PGBitwiseShiftRight => 
Ok(Operator::BitwiseShiftRight),
             BinaryOperator::PGBitwiseShiftLeft => 
Ok(Operator::BitwiseShiftLeft),
             BinaryOperator::StringConcat => Ok(Operator::StringConcat),
+            BinaryOperator::PGOverlap => Ok(Operator::And),

Review Comment:
   No...this PR makes `AND` as an alias operator of `array_intersect` function 
when it is applied with `List` parameters. So this line actually means an 
`BinaryOperator::PGOverlap` will be treated as `AND` operator in DataFusion 
(i.e., `AND` in DataFusion is compatible with Postgres' ``PGOverlap` operator).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to