stuhood commented on issue #21207:
URL: https://github.com/apache/datafusion/issues/21207#issuecomment-4284235894
> At optimizer time, detect whether each side of the join has a
`RepartitionExec` between the scan and
> the join.
I might be missing something fundamental, but I'm not seeing why it is
necessary to differentiate a `RepartitionExec` from any other plan node.
`Partitioning` doesn't implement `Eq` (and probably shouldn't, although
potentially it could implement `PartialEq`), but shouldn't it always be
sufficient to do something like:
```rust
match (left, right) {
(Hash(expr1, size1), Hash(expr2, size2)) if expr1 == expr2 && size1 ==
size2 => /* partitions map 1:1 */,
...
}
```
...to check equivalence of partitioning in `HashJoin`, and then it wouldn't
matter what the source of that partitioning is?
--
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]