Skip to content

Commit 763b3b8

Browse files
committed
Remove RATE check due to elastic#125193
1 parent 9e4dff5 commit 763b3b8

File tree

1 file changed

+1
-5
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate

1 file changed

+1
-5
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/AggregateFunction.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ public BiConsumer<LogicalPlan, Failures> postAnalysisPlanVerification() {
144144
// so allowing aggregate functions for dedup explicitly is just an internal implementation detail
145145
if ((p instanceof Aggregate) == false && (p instanceof Dedup) == false) {
146146
p.expressions().forEach(x -> x.forEachDown(AggregateFunction.class, af -> {
147-
if (af instanceof Rate) {
148-
failures.add(fail(af, "aggregate function [{}] not allowed outside METRICS command", af.sourceText()));
149-
} else {
150-
failures.add(fail(af, "aggregate function [{}] not allowed outside STATS command", af.sourceText()));
151-
}
147+
failures.add(fail(af, "aggregate function [{}] not allowed outside STATS command", af.sourceText()));
152148
}));
153149
}
154150
};

0 commit comments

Comments
 (0)