mingmwang commented on code in PR #4122:
URL: https://github.com/apache/arrow-datafusion/pull/4122#discussion_r1015193475
##########
datafusion/core/src/physical_plan/mod.rs:
##########
@@ -477,6 +473,66 @@ impl Partitioning {
RoundRobinBatch(n) | Hash(_, n) | UnknownPartitioning(n) => *n,
}
}
+
+ /// Returns true when the guarantees made by this [[Partitioning]] are
sufficient to
+ /// satisfy the partitioning scheme mandated by the `required`
[[Distribution]]
+ pub fn satisfy<F: FnOnce() -> EquivalenceProperties>(
+ &self,
+ required: Distribution,
+ equal_properties: F,
+ ) -> bool {
+ match required {
+ Distribution::UnspecifiedDistribution => true,
Review Comment:
SinglePartition should already be covered by existing UTs.
--
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]