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

Add array_max function support #14469

Open
erenavsarogullari opened this issue Feb 4, 2025 · 1 comment · May be fixed by #14470
Open

Add array_max function support #14469

erenavsarogullari opened this issue Feb 4, 2025 · 1 comment · May be fixed by #14470
Assignees
Labels
enhancement New feature or request

Comments

@erenavsarogullari
Copy link
Member

Is your feature request related to a problem or challenge?

Currently, Spark, Snowflake and Presto support array_max function. This can also be useful for DataFusion.

array_max(make_array(3,1,4,2)) => 4
array_max(make_array('h','e','o','l','l',NULL)) => o
array_max(make_array(NULL,NULL)) => NULL

Spark: https://docs.databricks.com/en/sql/language-manual/functions/array_max.html
Snowflake: https://docs.snowflake.com/en/sql-reference/functions/array_max
Presto: https://prestodb.io/docs/current/functions/array.html#array_max-x-x

Describe the solution you'd like

Adding array_max function support to DataFusion.

Describe alternatives you've considered

No response

Additional context

No response

@erenavsarogullari erenavsarogullari added the enhancement New feature or request label Feb 4, 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