Skip to content

Commit cd4e21f

Browse files
fix ut
1 parent c362a94 commit cd4e21f

File tree

1 file changed

+5
-0
lines changed
  • fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/algebra

1 file changed

+5
-0
lines changed

fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/algebra/RepeatTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.apache.doris.nereids.trees.expressions.functions.agg.Sum;
2424
import org.apache.doris.nereids.trees.expressions.functions.scalar.GroupingId;
2525
import org.apache.doris.nereids.trees.plans.Plan;
26+
import org.apache.doris.nereids.trees.plans.algebra.Repeat.RepeatType;
2627
import org.apache.doris.nereids.trees.plans.logical.LogicalOlapScan;
2728
import org.apache.doris.nereids.trees.plans.logical.LogicalRepeat;
2829
import org.apache.doris.nereids.util.PlanConstructor;
@@ -71,6 +72,7 @@ public void testToShapes() {
7172
Repeat<Plan> repeat = new LogicalRepeat<>(
7273
groupingSets,
7374
ImmutableList.of(id, name, alias),
75+
RepeatType.GROUPING_SETS,
7476
scan
7577
);
7678

@@ -106,6 +108,7 @@ public void testToShapesWithGroupingFunction() {
106108
Repeat<Plan> repeat = new LogicalRepeat<>(
107109
groupingSets,
108110
ImmutableList.of(name, groupingAlias),
111+
RepeatType.GROUPING_SETS,
109112
scan
110113
);
111114

@@ -160,6 +163,7 @@ public void testGetGroupingSetsIndexesInOutput() {
160163
Repeat<Plan> repeat = new LogicalRepeat<>(
161164
groupingSets,
162165
ImmutableList.of(id, name, gender, groupingId),
166+
RepeatType.GROUPING_SETS,
163167
scan
164168
);
165169
List<Slot> outputSlots = ImmutableList.of(id, name, gender, groupingId.toSlot());
@@ -185,6 +189,7 @@ public void testComputeRepeatSlotIdList() {
185189
Repeat<Plan> repeat = new LogicalRepeat<>(
186190
groupingSets,
187191
ImmutableList.of(id, name),
192+
RepeatType.GROUPING_SETS,
188193
scan
189194
);
190195
List<Slot> outputSlots = ImmutableList.of(id, name);

0 commit comments

Comments
 (0)