nuno-faria commented on code in PR #27793:
URL: https://github.com/apache/datafusion/pull/27793#discussion_r4731306133


##########
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:
   Would it make sense to add the operator?



##########
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:
   nit: I think it would be nicer to use the `[...]` directly instead of 
make_array.



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