You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change adds a window parameter to AggregateFunction, similar to the
existing filter parameter. The window parameter is optional but must
never be null. This PR also generalizes AggregateFunction to be composed
of [source, field, filter, window, extra parameters] , with all extra
parameters placed after filter and window.
The implementation of the window function will be added in a follow-up
and will initially be available only for time-series aggregations such
as rate, avg_over_time, etc.
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/EsqlFunctionRegistry.java
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/AbsentOverTime.java
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,6 @@
24
24
importjava.io.IOException;
25
25
importjava.util.List;
26
26
27
-
importstaticjava.util.Collections.emptyList;
28
-
29
27
/**
30
28
* Similar to {@link Absent}, but it is used to check the absence of values over a time series in the given field.
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/AggregateFunction.java
0 commit comments