Tpt commented on code in PR #27793:
URL: https://github.com/apache/datafusion/pull/27793#discussion_r4742403105


##########
docs/source/user-guide/sql/operators.md:
##########
@@ -543,6 +544,22 @@ Array Is Contained By
 +-------------------------------------------------------------------------+
 ```
 
+(op_arr_overlap)=
+
+### `&&`
+
+Array Overlap: true if the arrays have at least one element in common. 
Equivalent to
+[`array_has_any`](scalar_functions.md#array_has_any).
+
+```sql
+> SELECT make_array(1,2) && make_array(2,3);

Review Comment:
   Done.



##########
datafusion/functions-nested/src/planner.rs:
##########
@@ -82,6 +82,19 @@ impl ExprPlanner for NestedFunctionPlanner {
             }
         }
 
+        // `Operator` has no overlap variant, so `&&` only reaches this 
planner via sqlparser
+        #[cfg(feature = "sql")]
+        if op == BinaryOperator::PGOverlap {

Review Comment:
   yes, would it be fine with you if I do it in a follow-up?



-- 
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]


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

Reply via email to