Github user hbdeshmukh commented on the issue: https://github.com/apache/incubator-quickstep/pull/181 One case which is currently not considered is the following: Imagine a join between two relations. The probe side is a result of a selection on a base relation. The probe's base relation is hash partitioned on attribute ``a``. There are two cases: 1. In the projection, the attribute ``a`` is left out, i.e. we don't project it. 2. We project the attribute ``a``. If you look at the code of ``convertSelection``, the output of the selection has no partitioning scheme. In case two, we can carry forward the partitioning scheme from the base table to the output of the selection. That way, you can avoid the repartitioning step for the probe side. To summarize, you need to add a check in ``convertSelection`` that can identify case 1 and case 2 mentioned earlier.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---