Github user fhueske commented on the pull request:
https://github.com/apache/flink/pull/1255#issuecomment-155052860
I just realized we also need to make the optimizer aware that two
auto-sampled range partitionings are not equivalent. These checks the to be
added to the `areCompatible()` methods of the `AbstractJoinDescriptor` and
`CoGroupDescriptor` to avoid incorrect joins and coGroups.
For now, it is sufficient to simply return `false` if a range partitioning
is observed for a join or coGroup. Later, we want to add a property to the
`GlobalProperties` that identifies the data distribution which is used for the
range partitioning.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---