Repository: drill Updated Branches: refs/heads/master 22539c8b3 -> 1cfbe7de9
DRILL-3574: (continued) Code refactoring to use DrillDistributionTrait constructor that allows SINGLETON Project: http://git-wip-us.apache.org/repos/asf/drill/repo Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/1cfbe7de Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/1cfbe7de Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/1cfbe7de Branch: refs/heads/master Commit: 1cfbe7de90a1a939c183f14af6c2d3be7afcfc44 Parents: 22539c8 Author: Hsuan-Yi Chu <[email protected]> Authored: Tue Aug 11 17:02:06 2015 -0700 Committer: Aman Sinha <[email protected]> Committed: Wed Aug 12 15:55:00 2015 -0700 ---------------------------------------------------------------------- .../drill/exec/planner/physical/DrillDistributionTrait.java | 4 +--- .../java/org/apache/drill/exec/planner/physical/WindowPrule.java | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/drill/blob/1cfbe7de/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/DrillDistributionTrait.java ---------------------------------------------------------------------- diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/DrillDistributionTrait.java b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/DrillDistributionTrait.java index b0e8940..c1e241d 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/DrillDistributionTrait.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/DrillDistributionTrait.java @@ -44,9 +44,7 @@ public class DrillDistributionTrait implements RelTrait { } public DrillDistributionTrait(DistributionType type, ImmutableList<DistributionField> fields) { - assert (type == DistributionType.HASH_DISTRIBUTED - || type == DistributionType.RANGE_DISTRIBUTED - || type == DistributionType.SINGLETON); + assert (type == DistributionType.HASH_DISTRIBUTED || type == DistributionType.RANGE_DISTRIBUTED); this.type = type; this.fields = fields; } http://git-wip-us.apache.org/repos/asf/drill/blob/1cfbe7de/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/WindowPrule.java ---------------------------------------------------------------------- diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/WindowPrule.java b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/WindowPrule.java index bcd9bcc..f6d2b67 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/WindowPrule.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/planner/physical/WindowPrule.java @@ -70,8 +70,7 @@ public class WindowPrule extends Prule { if(windowBase.keys.isEmpty() && windowBase.orderKeys.getFieldCollations().isEmpty()) { DrillDistributionTrait distEmptyKeys = - new DrillDistributionTrait(DrillDistributionTrait.DistributionType.SINGLETON, - ImmutableList.copyOf(new ArrayList<DistributionField>())); + new DrillDistributionTrait(DrillDistributionTrait.DistributionType.SINGLETON); traits = traits.plus(distEmptyKeys); } else if (windowBase.keys.size() > 0) {
