-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Do not add redundant subquery ordering into plan #12003
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
Merged
ozankabak
merged 47 commits into
apache:main
from
synnada-ai:feature/Sort-For-Subqueries
Aug 19, 2024
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
d5d6cda
do not add redundant subquery ordering into plan
eeabaf1
format code
85e23e7
add license
bd63098
fix test cases with sort plan removing
930c204
fix comment
9d5f875
keep sorting on ordering mode test cases
2d40a8d
protect test intentions with order + limit
b6bc6d4
protect test intentions with order + limit
510b16c
Tmp
mustafasrepo 6ef4369
Minor changes
mustafasrepo c3efafc
Minor changes
mustafasrepo 2d1b48f
Merge remote-tracking branch 'refs/remotes/origin/bug_fix/enforce_sor…
2bf220d
Minor changes
mustafasrepo eb83917
Implement top down recursion with delete check
mustafasrepo 0b66b15
Minor changes
mustafasrepo 9d3a972
Merge remote-tracking branch 'refs/remotes/origin/bug_fix/enforce_sor…
c769f9f
Minor changes
mustafasrepo 07dca3a
Merge remote-tracking branch 'refs/remotes/origin/bug_fix/enforce_sor…
9192ca9
initialize fetch() api for execution plan
0ad7063
Address reviews
mustafasrepo 3661f06
Update comments
mustafasrepo 60967c1
Minor changes
mustafasrepo 6b87c4c
Make test deterministic
mustafasrepo a029d6f
add supports limit push down to union exec
74041e7
support limit push down with multi children cases
1d73ddb
fix typos
8dd7e0a
Add fetch info to the statistics
mustafasrepo 23a33df
optimize tpch test plans
15423ae
Enforce distribution use inexact count estimate also.
mustafasrepo 94fb83d
Minor changes
mustafasrepo 9053b9f
Minor changes
mustafasrepo 54fc4b2
Merge remote-tracking branch 'refs/remotes/origin/bug_fix/enforce_sor…
501f403
Merge branch 'refs/heads/bug_fix/enforce_sorting' into feature/Sort-F…
ebda00a
Merge remote-tracking branch 'refs/remotes/origin/apache_main' into f…
27342ff
merge with apache main
1d04db8
format code
ec67b36
fix doc paths
4564f4b
fix doc paths
8e7d1df
Merge branch 'refs/heads/apache_main' into feature/Sort-For-Subqueries
b139b02
remove redundant code block
4472e15
if partition count is 1 put GlobalLimitExec
eb96912
fix test cases
128676e
Apply suggestions from code review
ozankabak 782487c
fix syntax errors
ff227a2
Simplify branches
ozankabak 07820cc
Merge branch 'refs/heads/apache_main' into feature/Sort-For-Subqueries
c6a9abc
remove redundant limit plans from merge
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plan looks better to me because since the sort already has a fetch there is no reason to also apply a limit afterwards