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 support for array_top_n function #20525

Closed
wants to merge 7 commits into from

Conversation

setyven
Copy link
Contributor

@setyven setyven commented Aug 9, 2023

Description

Add array_top_n function to return an array of top n elements, given an array.

Test Plan

Test ran sucessfully in local machine.

./mvnw clean install -Dtest=TestArraySqlFunctions -Dmaven.javadoc.skip=true -T1C -fn -pl presto-main

Contributor checklist

  • Please make sure your submission complies with our development, formatting, commit message, and attribution guidelines.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.

Release Notes

== RELEASE NOTES ==

General Changes
* add :func:`array_top_n` to return an array of top N elements of a given array.

@setyven setyven requested a review from a team as a code owner August 9, 2023 10:25
@setyven setyven requested a review from presto-oss August 9, 2023 10:25
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 9, 2023

CLA Missing ID CLA Not Signed

@setyven setyven closed this Aug 9, 2023
@setyven setyven deleted the feature/array_top_n branch August 9, 2023 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant