Skip to content

Preserve order for root for SINGLE distribution only#14871

Merged
losipiuk merged 1 commit intotrinodb:masterfrom
losipiuk:lo/preserve-ordering-only-for-single
Nov 3, 2022
Merged

Preserve order for root for SINGLE distribution only#14871
losipiuk merged 1 commit intotrinodb:masterfrom
losipiuk:lo/preserve-ordering-only-for-single

Conversation

@losipiuk
Copy link
Copy Markdown
Member

@losipiuk losipiuk commented Nov 2, 2022

We need to set preserveOrderWithinPartition flag only if root stage of plan requires total ordering. The need of total ordering implies that SINGLE distribution will be used for root stage.

Note there still can be cases when SINGLE distribution is used but we do not really need to preserve order. Improving on that is a followup work as it requires annotating plan with information if output ordering is required or not.

Release notes

(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

We need to set preserveOrderWithinPartition flag only if root stage of
plan requires total ordering. The need of total ordering implies that
SINGLE distribution will be used for root stage.

Note there still can be cases when SINGLE distribution is used but we do
not really need to preserve order. Improving on that is a followup work
as it requires annotating plan with information if output ordering is
required or not.
@cla-bot cla-bot bot added the cla-signed label Nov 2, 2022
@losipiuk losipiuk requested a review from arhimondr November 2, 2022 21:05
@losipiuk losipiuk merged commit 325dd89 into trinodb:master Nov 3, 2022
@github-actions github-actions bot added this to the 403 milestone Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants