erenavsarogullari opened a new pull request, #14217:
URL: https://github.com/apache/datafusion/pull/14217
## Which issue does this PR close?
Closes #14216.
## What changes are included in this PR?
`arrays_overlap` function is supported by following query engines:
`arrays_overlap`: `select arrays_overlap(array('hello', world'),
array('hello'))` => `true`
References:
Spark:
https://docs.databricks.com/en/sql/language-manual/functions/arrays_overlap.html
Snowflake:
https://docs.snowflake.com/en/sql-reference/functions/arrays_overlap
Trino:
https://prestodb.io/docs/current/functions/array.html#arrays_overlap-x-y-boolean
DataFusion' s `array_has_any` function aims to have same behavior with
`arrays_overlap` function and it can also be exposed as alias of legacy
`array_has_any` function.
## Are these changes tested?
Added new UT to verify `arrays_overlap` function in terms of different
source arrays.
## Are there any user-facing changes?
Yes, new function is supported and documentation has also be updated.
--
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]