drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinfengni <...@git.apache.org>
Subject [GitHub] drill pull request #555: DRILL-4147: Change union-all distribution trait to ...
Date Mon, 01 Aug 2016 18:31:11 GMT
Github user jinfengni commented on a diff in the pull request:

    --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/UnionAllPrule.java
    @@ -61,7 +61,8 @@ public void onMatch(RelOptRuleCall call) {
    -      traits = call.getPlanner().emptyTraitSet().plus(Prel.DRILL_PHYSICAL).plus(DrillDistributionTrait.SINGLETON);
    +      // distribution trait is set to ANY to allow Union-All to inherit the distribution
of its child
    +      traits = call.getPlanner().emptyTraitSet().plus(Prel.DRILL_PHYSICAL).plus(DrillDistributionTrait.ANY);
    --- End diff --
    Will it work by setting "ANY" in case inputs of union-all has different distribution trait?
    Let's say LHS has Hash-distribution(col1), RHS has Hash-distribution(co1, col2), or Random
distribution. What will union-all's distribution trait? Will it use LHS, or RHS ? 

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 infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message