Skip to content
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

Projection Cannot Propagate Order for non-Column Expressions #7363

Closed
berkaysynnada opened this issue Aug 22, 2023 · 0 comments · Fixed by #7364
Closed

Projection Cannot Propagate Order for non-Column Expressions #7363

berkaysynnada opened this issue Aug 22, 2023 · 0 comments · Fixed by #7364
Labels
enhancement New feature or request

Comments

@berkaysynnada
Copy link
Contributor

Is your feature request related to a problem or challenge?

When the column which is the output ordering of the input plan of a projection disappears after the projection, the order information is lost. Therefore, unnecessary SortExecs may be added.
For example, if the input plan has an output ordering of column 'a', and there is a projection of 'a+1', the order requirement of 'a' is still satisfied.

Describe the solution you'd like

We can estimate the new expressions' orders by using the input plan output ordering and equivalence properties, and in the case of dropping the output ordering, we can assign one of them as the new output ordering.

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
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant