izveigor opened a new issue, #6976:
URL: https://github.com/apache/arrow-datafusion/issues/6976
### Is your feature request related to a problem or challenge?
## Summary
| Characteristic | Description
|
| --------------------- |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| Function name: | `array_has_any`
|
| Aliases: | `list_has_any`, `&&`
|
| Original function?: | No
|
| Function Description: | <b>PostgreSQL:</b> Do the arrays overlap, that is,
have any elements in common? </br> <b>Azure DataBricks:</b> Returns true if the
intersection of array1 and array2 is not empty. </br> <b>Clickhouse:</b> Checks
whether two arrays have intersection by some elements. </br> <b>DuckDB:</b>
Returns true if any elements exist is both lists. <b> </b>
|
| Sources: |
[Concept](https://github.com/apache/arrow-datafusion/discussions/6855)
[PostgreSQL](https://www.postgresql.org/docs/current/functions-array.html)
[Azure](https://learn.microsoft.com/en-us/azure/databricks/sql/language-manual/functions/arrays_overlap)
[ClickHouse](https://clickhouse.com/docs/en/sql-reference/functions/array-functions#hasany)
[DuckDB](https://duckdb.org/docs/sql/functions/nested) |
## Examples:
```
select has_any([1, 2, 3, 4], [3, 5, 6]);
----
true
```
```
select has_any([1, 5, 3, 4], [2, 6]);
----
false
```
### Describe the solution you'd like
_No response_
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
--
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]