Skip to content

Commit b161a3b

Browse files
committed
Fix UT
Signed-off-by: Heng Qian <qianheng@amazon.com>
1 parent 8a8edb3 commit b161a3b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/src/main/java/org/opensearch/sql/calcite/plan/PPLAggregateConvertRule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ public void apply(RelOptRuleCall call, LogicalAggregate aggregate, LogicalProjec
9999
return ref;
100100
})
101101
.toList();
102+
// Stop processing if there is no converted agg call args
103+
if (convertedAggCallArgs.isEmpty()) return;
102104
relBuilder.project(newChildProjects);
103105
RelNode newInput = relBuilder.peek();
104106

0 commit comments

Comments
 (0)