mustafasrepo commented on code in PR #5661:
URL: https://github.com/apache/arrow-datafusion/pull/5661#discussion_r1142946682
##########
datafusion/core/src/physical_optimizer/sort_enforcement.rs:
##########
@@ -246,11 +243,11 @@ impl PlanWithCorrespondingCoalescePartitions {
// maintain a single partition. If we just saw a
`CoalescePartitionsExec`
// operator, we reset the tree and start accumulating.
let plan = item.plan;
- if plan.as_any().is::<CoalescePartitionsExec>() {
Review Comment:
I have just swapped `if` and `else if` to make it more readable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]