Skip to content

Commit ff70916

Browse files
authored
Implementation of Delta function for absolute change in gauges over time (#135035)
* Implementation of Delta function for absolute change in gauges over time window * csv tests * fixup * add extrapolation code for Delta * fixup * fixup * fxup * foxup * fix csv tests
1 parent 8e46154 commit ff70916

File tree

20 files changed

+3416
-6
lines changed

20 files changed

+3416
-6
lines changed

x-pack/plugin/esql/compute/build.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,28 @@ tasks.named('stringTemplates').configure {
513513
it.outputFile = "org/elasticsearch/compute/aggregation/IrateDoubleAggregator.java"
514514
}
515515

516+
File deltaAggregatorInputFile = file("src/main/java/org/elasticsearch/compute/aggregation/X-DeltaAggregator.java.st")
517+
template {
518+
it.properties = intProperties
519+
it.inputFile = deltaAggregatorInputFile
520+
it.outputFile = "org/elasticsearch/compute/aggregation/DeltaIntAggregator.java"
521+
}
522+
template {
523+
it.properties = longProperties
524+
it.inputFile = deltaAggregatorInputFile
525+
it.outputFile = "org/elasticsearch/compute/aggregation/DeltaLongAggregator.java"
526+
}
527+
template {
528+
it.properties = floatProperties
529+
it.inputFile = deltaAggregatorInputFile
530+
it.outputFile = "org/elasticsearch/compute/aggregation/DeltaFloatAggregator.java"
531+
}
532+
template {
533+
it.properties = doubleProperties
534+
it.inputFile = deltaAggregatorInputFile
535+
it.outputFile = "org/elasticsearch/compute/aggregation/DeltaDoubleAggregator.java"
536+
}
537+
516538
File fallibleStateInputFile = new File("${projectDir}/src/main/java/org/elasticsearch/compute/aggregation/X-FallibleState.java.st")
517539
template {
518540
it.properties = booleanProperties

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

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

0 commit comments

Comments
 (0)