Skip to content

Optimize TopK with filter #15699

Description

@Dandandan

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions