Skip to content

Fix output_ordering of WindowAggExec #4438

@mustafasrepo

Description

@mustafasrepo

Describe the bug

output_ordering method of WindowAggExec gives output ordering of its input, as in the link. Although conceptually it is the correct behavior, SortExec is added before the WindowAggExec during BasicEnforcement pass of the PhysicalOptimizerRule (relevant section). Hence if we inquire the output_ordering of the WindowAggExec before SortExec is added, we will get wrong orderings.

To Reproduce

N.A

Expected behavior

I expect to get true output ordering for WindowAggExec during physical plan construction (before optimizations are applied)

Additional context

N.A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions