Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Oct 10, 2024
1 parent 31711e7 commit 786c75b
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,5 @@ void testNotPushCountBecauseUnion() {
logicalUnion(logicalAggregate(), logicalAggregate())
).when(agg -> ExpressionUtils.containsType(agg.getOutputExpressions(), Sum0.class))
);

String sql3 = "select count(1) from (select 3,6 union all select 1,3) t;";
PlanChecker.from(connectContext)
.analyze(sql3)
.rewrite()
.nonMatch(
logicalAggregate(
logicalUnion(logicalAggregate(), logicalAggregate())
).when(agg -> ExpressionUtils.containsType(agg.getOutputExpressions(), Sum0.class))
);
}
}

0 comments on commit 786c75b

Please sign in to comment.