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

Minor: include sort expressions in SortPreservingRepartitionExec explain plan #7796

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Oct 11, 2023

Which issue does this PR close?

Related to #7794

Rationale for this change

A plan without sort exprs is incorrect, but it was not clear to me this was happening during my initial debugging. I would like to make it easier to debug such errors in the future

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added physical-expr Physical Expressions core Core DataFusion crate labels Oct 11, 2023
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Oct 11, 2023
write!(
f,
"SortRequiredExec: [{}]",
PhysicalSortExpr::format_list(&self.expr)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a cleanup to use the same code everywhere to format [PhysicalSortExpr]

)
)?;

if let Some(sort_exprs) = self.sort_exprs() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the new behavior

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 @alamb for this PR. It is LGTM!.

@alamb alamb merged commit e1bef86 into apache:main Oct 13, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants