Skip to content
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

chore: add config option for allowing bounded use of sort-preserving operators #7164

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

wolffcm
Copy link
Contributor

@wolffcm wolffcm commented Jul 31, 2023

Which issue does this PR close?

Closes #7163.

Rationale for this change

This lets client code that uses bounded queries also make use of SortPreservingRepartitionExec, which can be very helpful for removing SortExec nodes from plans.

What changes are included in this PR?

This PR adds a new config option, bounded_order_preserving_variants to control when SortPreservingRepartitionExec is produced.

Are these changes tested?

Yes, I added a test that shows this option works as expected.

Are there any user-facing changes?

Yes, I updated the docs to include a description the new option.

@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jul 31, 2023
@wolffcm
Copy link
Contributor Author

wolffcm commented Jul 31, 2023

cc @mustafasrepo @alamb

Copy link
Contributor

@mustafasrepo mustafasrepo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @wolffcm, this PR is LGTM!. Having parametrize this is very nice.

@alamb alamb merged commit cca5225 into apache:main Aug 1, 2023
22 checks passed
@alamb
Copy link
Contributor

alamb commented Aug 1, 2023

Thanks @wolffcm and @mustafasrepo for the review!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create config option for bounded use of order-preserving operators
3 participants