Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support arrays_overlap function #14216

Open
erenavsarogullari opened this issue Jan 20, 2025 · 1 comment · May be fixed by #14217
Open

Support arrays_overlap function #14216

erenavsarogullari opened this issue Jan 20, 2025 · 1 comment · May be fixed by #14217
Assignees
Labels
enhancement New feature or request

Comments

@erenavsarogullari
Copy link
Member

erenavsarogullari commented Jan 20, 2025

Is your feature request related to a problem or challenge?

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
Presto: https://prestodb.io/docs/current/functions/array.html#arrays_overlap-x-y-boolean

Also, related DataFusion Comet PR: apache/datafusion-comet#1312

Describe the solution you'd like

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.

Describe alternatives you've considered

No response

Additional context

No response

@erenavsarogullari erenavsarogullari added the enhancement New feature or request label Jan 20, 2025
@erenavsarogullari
Copy link
Member Author

take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant