Skip to content

Restore window sort optimizations without exponential planning time #17624

Description

@findepi

A fix for #17401 has the caveat of producing less ideal query plans.
The plan now has an extra sort where the plan before hand had no sort after the BoundedWindowAggExec
Per #14813 (comment), we should be able to get such better query plan with only linear cost in the planner (not exponential).

Originally posted by @alamb in #17563 (comment)

Activity

  1. findepi commented on Sep 23, 2025

    @findepi
    MemberAuthor

    that was a follow up issue for #17563, which we did not merge

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions