Skip to content

Optimize TopK with filter #15699

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

Open
Dandandan opened this issue Apr 13, 2025 · 0 comments · May be fixed by #15697
Open

Optimize TopK with filter #15699

Dandandan opened this issue Apr 13, 2025 · 0 comments · May be fixed by #15697
Labels
enhancement New feature or request

Comments

@Dandandan
Copy link
Contributor

Is your feature request related to a problem or challenge?

TopK can be optimized by filtering on the max value before converting the arrays to row-format (which is slow).

Describe the solution you'd like

Create a filter based on arrow-rs kernel (lt / lt_eq) and filter the array based on this.
By making the early filter fast, we can avoid converting most of the values to RowFormat and speed up TopK.

Describe alternatives you've considered

No response

Additional context

No response

@Dandandan Dandandan added the enhancement New feature or request label Apr 13, 2025
@Dandandan Dandandan linked a pull request Apr 13, 2025 that will close this issue
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