-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enforce sorting handle fetchable operators, add option to repartition based on row count estimates #11875
Merged
Merged
Enforce sorting handle fetchable operators, add option to repartition based on row count estimates #11875
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
510b16c
Tmp
mustafasrepo 6ef4369
Minor changes
mustafasrepo c3efafc
Minor changes
mustafasrepo 2bf220d
Minor changes
mustafasrepo eb83917
Implement top down recursion with delete check
mustafasrepo 0b66b15
Minor changes
mustafasrepo c769f9f
Minor changes
mustafasrepo 0ad7063
Address reviews
mustafasrepo 3661f06
Update comments
mustafasrepo 60967c1
Minor changes
mustafasrepo 6b87c4c
Make test deterministic
mustafasrepo 8dd7e0a
Add fetch info to the statistics
mustafasrepo 15423ae
Enforce distribution use inexact count estimate also.
mustafasrepo 94fb83d
Minor changes
mustafasrepo 9053b9f
Minor changes
mustafasrepo 1171584
Minor changes
mustafasrepo 711038d
Do not add unnecessary hash partitioning
mustafasrepo 7e598e5
Minor changes
mustafasrepo 12ad2c2
Add config option to use inexact row number estimates during planning
mustafasrepo 2e3cc5d
Update config
mustafasrepo 34af8ba
Minor changes
mustafasrepo 98760bc
Minor changes
mustafasrepo 1e4dada
Final review
ozankabak 9fc4f3d
Address reviews
mustafasrepo 1116058
Add handling for sort removal with fetch
mustafasrepo 44dc292
Fix linter errors
mustafasrepo c6d2de6
Minor changes
mustafasrepo c7c85f4
Update config
mustafasrepo 7c8967d
Cleanup stats under fetch
ozankabak ed35660
Update SLT comment
ozankabak 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
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.
Result of this test changes with this PR. I have analyzed the change, previously this tes was generating the following plan:
After the changes in this PR, following plan is generated
I think the second plan generates a deterministic result. However, the query (dataframe query) is not deterministic as is.
With this observation, I have updated the place of the limit to make sure the query is deterministic after execution. With the change of the place of the limit, the following plan is generated:
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.
I agree it also makes sense that the previous test did a
sort
right after a select + filter which will not produce a deterministic result. Doing the limit after the sort makes sense