goutamadwant commented on code in PR #24766:
URL: https://github.com/apache/datafusion/pull/24766#discussion_r4079721602
##########
datafusion/physical-optimizer/src/ensure_requirements/enforce_distribution.rs:
##########
@@ -1154,7 +1157,8 @@ fn enforce_distribution_relationships(
let partitioning = plan.output_partitioning();
match partitioning {
Partitioning::Range(_) | Partitioning::Hash(_, _) => {
- let is_native = !plan.is::<RepartitionExec>();
+ let is_native =
+ !plan.is::<RepartitionExec>() ||
child.scaled_native_range;
Review Comment:
done @stuhood thanks for this input.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]