Skip to content

Restore window sort optimizations without exponential planning time #17624

@findepi

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)

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