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
* Implementation of increase function for timeseries applications
* rebasing aigu
* fixup
* fixup
* Test repro
* cleanup and ready to go
* Fix formatting in X-RateGroupingAggregatorFunction.java.st
This was causing an infinite CI loop where the formatter and the code
generator were fighting.
* [CI] Update transport version definitions
* adding capability for tsfn increase
* comments and fixup
* csvtests
* fixup?
* fixup
* fixcsvtests
---------
Co-authored-by: Jordan Powers <[email protected]>
Co-authored-by: elasticsearchmachine <[email protected]>
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/RateDoubleGroupingAggregatorFunction.java
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/RateIntGroupingAggregatorFunction.java
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/compute/src/main/generated-src/org/elasticsearch/compute/aggregation/RateLongGroupingAggregatorFunction.java
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/X-RateGroupingAggregatorFunction.java.st
+25-8Lines changed: 25 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,13 @@ import java.util.List;
36
36
public final class Rate$Type$GroupingAggregatorFunction implements GroupingAggregatorFunction {
37
37
38
38
public static final class FunctionSupplier implements AggregatorFunctionSupplier {
39
+
// Overriding constructor to support isRateOverTime flag
40
+
private final boolean isRateOverTime;
41
+
42
+
public FunctionSupplier(boolean isRateOverTime) {
43
+
this.isRateOverTime = isRateOverTime;
44
+
}
45
+
39
46
@Override
40
47
public List<IntermediateStateDesc> nonGroupingIntermediateStateDesc() {
41
48
throw new UnsupportedOperationException("non-grouping aggregator is not supported");
@@ -53,7 +60,7 @@ public final class Rate$Type$GroupingAggregatorFunction implements GroupingAggre
53
60
54
61
@Override
55
62
public Rate$Type$GroupingAggregatorFunction groupingAggregator(DriverContext driverContext, List<Integer> channels) {
56
-
return new Rate$Type$GroupingAggregatorFunction(channels, driverContext);
63
+
return new Rate$Type$GroupingAggregatorFunction(channels, driverContext, isRateOverTime);
57
64
}
58
65
59
66
@Override
@@ -74,11 +81,13 @@ public final class Rate$Type$GroupingAggregatorFunction implements GroupingAggre
74
81
private final DriverContext driverContext;
75
82
private final BigArrays bigArrays;
76
83
private ObjectArray<ReducedState> reducedStates;
84
+
private final boolean isRateOverTime;
77
85
78
-
public Rate$Type$GroupingAggregatorFunction(List<Integer> channels, DriverContext driverContext) {
86
+
public Rate$Type$GroupingAggregatorFunction(List<Integer> channels, DriverContext driverContext, boolean isRateOverTime) {
0 commit comments