Skip to content

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 Changes to the physical-expr crates core Core DataFusion crate labels Oct 11, 2023
@alamb alamb force-pushed the alamb/explain_plans branch from d49d32f to f5210af Compare October 11, 2023 17:10
@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!.

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 Changes to the physical-expr crates sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants