Repository navigation
Fix read in order optimization for DESC sorting with FINAL - #46009
Merged
Merged
Conversation
hanfei1991
reviewed
Feb 6, 2023
| /// If do_not_merge_across_partitions_select_final is true | ||
| /// and there is only one part in partition with level > 0 | ||
| /// then we won't postprocess this part | ||
| bool should_read_in_order = !input_order_info || input_order_info->direction == 0; |
Member
There was a problem hiding this comment.
Only one question: Why should we read in order if input_order_info is null
Member
Author
There was a problem hiding this comment.
My mistake was that it should be should_not_read_in_order.
But anyway, decided to use another solution. We need to disable read-in-order optimization for reverse order with final because it may lead to incorrect final behavior (it may rely on read in direct order). Check out new commits in the PR, please.
This reverts commit cf76234.
vdimir
force-pushed
the
vdimir/fix_read_in_order_final_desc
branch
from
February 9, 2023 11:11
654e42c to
cb5a178
Compare
hanfei1991
reviewed
Feb 10, 2023
hanfei1991
approved these changes
Feb 10, 2023
vdimir
commented
Feb 10, 2023
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Documentation entry for user-facing changes