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

fix: Update the Description of map_top_n #12216

Closed

Conversation

duxiao1212
Copy link
Contributor

Summary:
Update the description of map_top_n

map function map_top_n returns a new map containing only the top N elements, sorted in descending order by value. In cases where values are tied, the function sorts the tied elements in lexicographical descending order by key.

Since both 'a' and 'c' have null values, 'c' is included in the top 2 results along with 'b',

Differential Revision: D68913230

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 30, 2025
Copy link

netlify bot commented Jan 30, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 15c6343
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/679c19d56f40b2000826a60e

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68913230

Copy link
Contributor

@zacw7 zacw7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. Please capitalize the PR title as well as the commit message:
fix: Update the description of map_top_n

@duxiao1212 duxiao1212 changed the title fix: update the description of map_top_n fix: Update the Description of map_top_n Jan 30, 2025
duxiao1212 added a commit to duxiao1212/velox that referenced this pull request Jan 30, 2025
Summary:

Update the description of map_top_n

map function **map_top_n** returns a new map containing only the top N elements, sorted in descending order by value. In cases where values are tied, the function sorts the tied elements in lexicographical descending order by key.

Since both 'a' and 'c' have null values, 'c' is included in the top 2 results along with 'b',

Reviewed By: zacw7

Differential Revision: D68913230
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68913230

Summary:

Update the description of map_top_n

map function **map_top_n** returns a new map containing only the top N elements, sorted in descending order by value. In cases where values are tied, the function sorts the tied elements in lexicographical descending order by key.

Since both 'a' and 'c' have null values, 'c' is included in the top 2 results along with 'b',

Reviewed By: zacw7

Differential Revision: D68913230
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D68913230

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 832583d.

ArnavBalyan pushed a commit to ArnavBalyan/velox that referenced this pull request Jan 31, 2025
Summary:
Pull Request resolved: facebookincubator#12216

Update the description of map_top_n

map function **map_top_n** returns a new map containing only the top N elements, sorted in descending order by value. In cases where values are tied, the function sorts the tied elements in lexicographical descending order by key.

Since both 'a' and 'c' have null values, 'c' is included in the top 2 results along with 'b',

Reviewed By: zacw7

Differential Revision: D68913230

fbshipit-source-id: 7d0483d28e2f7eada5e1dcb7e0bd000857f831ac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants