Skip to content

Commit aaabb30

Browse files
committed
window!
1 parent d066e86 commit aaabb30

File tree

72 files changed

+721
-497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+721
-497
lines changed

docs/reference/query-languages/esql/_snippets/functions/parameters/rate.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/_snippets/functions/types/rate.md

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/images/functions/rate.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9203000
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
min_transport_version,9202000
1+
aggregation_window,9203000

x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/RateDoubleGroupingAggregatorFunction.java

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/RateIntGroupingAggregatorFunction.java

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/RateLongGroupingAggregatorFunction.java

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/GroupingAggregator.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
1818

1919
import java.util.function.Function;
2020

21-
public class GroupingAggregator implements Releasable {
22-
private final GroupingAggregatorFunction aggregatorFunction;
21+
public record GroupingAggregator(GroupingAggregatorFunction aggregatorFunction, AggregatorMode mode) implements Releasable {
2322

24-
private final AggregatorMode mode;
23+
public interface Factory extends Function<DriverContext, GroupingAggregator>, Describable {
2524

26-
public interface Factory extends Function<DriverContext, GroupingAggregator>, Describable {}
27-
28-
public GroupingAggregator(GroupingAggregatorFunction aggregatorFunction, AggregatorMode mode) {
29-
this.aggregatorFunction = aggregatorFunction;
30-
this.mode = mode;
3125
}
3226

33-
/** The number of Blocks required for evaluation. */
27+
/**
28+
* The number of Blocks required for evaluation.
29+
*/
3430
public int evaluateBlockCount() {
3531
return mode.isOutputPartial() ? aggregatorFunction.intermediateBlockCount() : 1;
3632
}

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/TimeSeriesGroupingAggregatorEvaluationContext.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
import org.elasticsearch.compute.operator.DriverContext;
1111

12+
import java.util.List;
13+
1214
public abstract class TimeSeriesGroupingAggregatorEvaluationContext extends GroupingAggregatorEvaluationContext {
1315
public TimeSeriesGroupingAggregatorEvaluationContext(DriverContext driverContext) {
1416
super(driverContext);
@@ -17,4 +19,7 @@ public TimeSeriesGroupingAggregatorEvaluationContext(DriverContext driverContext
1719
public abstract long rangeStartInMillis(int groupId);
1820

1921
public abstract long rangeEndInMillis(int groupId);
22+
23+
public abstract List<Integer> groupIdsFromWindow(int groupId, long windowInterval);
24+
2025
}

0 commit comments

Comments
 (0)