-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Do not add redundant subquery ordering into plan #12003
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
mertak-synnada eeabaf1
format code
mertak-synnada 85e23e7
add license
mertak-synnada bd63098
fix test cases with sort plan removing
mertak-synnada 930c204
fix comment
mertak-synnada 9d5f875
keep sorting on ordering mode test cases
mertak-synnada 2d40a8d
protect test intentions with order + limit
mertak-synnada b6bc6d4
protect test intentions with order + limit
mertak-synnada 510b16c
Tmp
mustafasrepo 6ef4369
Minor changes
mustafasrepo c3efafc
Minor changes
mustafasrepo 2d1b48f
Merge remote-tracking branch 'refs/remotes/origin/bug_fix/enforce_sor…
mertak-synnada 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…
mertak-synnada c769f9f
Minor changes
mustafasrepo 07dca3a
Merge remote-tracking branch 'refs/remotes/origin/bug_fix/enforce_sor…
mertak-synnada 9192ca9
initialize fetch() api for execution plan
mertak-synnada 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
mertak-synnada 74041e7
support limit push down with multi children cases
mertak-synnada 1d73ddb
fix typos
mertak-synnada 8dd7e0a
Add fetch info to the statistics
mustafasrepo 23a33df
optimize tpch test plans
mertak-synnada 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…
mertak-synnada 501f403
Merge branch 'refs/heads/bug_fix/enforce_sorting' into feature/Sort-F…
mertak-synnada ebda00a
Merge remote-tracking branch 'refs/remotes/origin/apache_main' into f…
mertak-synnada 27342ff
merge with apache main
mertak-synnada 1d04db8
format code
mertak-synnada ec67b36
fix doc paths
mertak-synnada 4564f4b
fix doc paths
mertak-synnada 8e7d1df
Merge branch 'refs/heads/apache_main' into feature/Sort-For-Subqueries
mertak-synnada b139b02
remove redundant code block
mertak-synnada 4472e15
if partition count is 1 put GlobalLimitExec
mertak-synnada eb96912
fix test cases
mertak-synnada 128676e
Apply suggestions from code review
ozankabak 782487c
fix syntax errors
mertak-synnada ff227a2
Simplify branches
ozankabak 07820cc
Merge branch 'refs/heads/apache_main' into feature/Sort-For-Subqueries
mertak-synnada c6a9abc
remove redundant limit plans from merge
mertak-synnada 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 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 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 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 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 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 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 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 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 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 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 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 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 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