MCPcopy Create free account
hub / github.com/apache/datafusion / eq

Method eq

datafusion/physical-expr/src/partitioning.rs:298–311  ·  view source on GitHub ↗
(&self, other: &Partitioning)

Source from the content-addressed store, hash-verified

296
297impl PartialEq for Partitioning {
298 fn eq(&self, other: &Partitioning) -> bool {
299 match (self, other) {
300 (
301 Partitioning::RoundRobinBatch(count1),
302 Partitioning::RoundRobinBatch(count2),
303 ) if count1 == count2 => true,
304 (Partitioning::Hash(exprs1, count1), Partitioning::Hash(exprs2, count2))
305 if physical_exprs_equal(exprs1, exprs2) && (count1 == count2) =>
306 {
307 true
308 }
309 _ => false,
310 }
311 }
312}
313
314/// How data is distributed amongst partitions. See [`Partitioning`] for more

Callers 1

Calls 1

physical_exprs_equalFunction · 0.85

Tested by

no test coverage detected