Skip to content

Commit 74a5fec

Browse files
committed
Add last_over_time
1 parent 1739049 commit 74a5fec

File tree

20 files changed

+2168
-3
lines changed

20 files changed

+2168
-3
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,4 +862,27 @@ tasks.named('stringTemplates').configure {
862862
it.outputFile = "org/elasticsearch/xpack/compute/operator/lookup/EnrichResultBuilderForBoolean.java"
863863
}
864864

865+
// TODO: add last_over_time for other types: boolean, bytes_refs
866+
File lastOverTimeAggregatorInputFile = file("src/main/java/org/elasticsearch/compute/aggregation/X-LastOverTimeAggregator.java.st")
867+
template {
868+
it.properties = intProperties
869+
it.inputFile = lastOverTimeAggregatorInputFile
870+
it.outputFile = "org/elasticsearch/compute/aggregation/LastOverTimeIntAggregator.java"
871+
}
872+
template {
873+
it.properties = longProperties
874+
it.inputFile = lastOverTimeAggregatorInputFile
875+
it.outputFile = "org/elasticsearch/compute/aggregation/LastOverTimeLongAggregator.java"
876+
}
877+
template {
878+
it.properties = floatProperties
879+
it.inputFile = lastOverTimeAggregatorInputFile
880+
it.outputFile = "org/elasticsearch/compute/aggregation/LastOverTimeFloatAggregator.java"
881+
}
882+
template {
883+
it.properties = doubleProperties
884+
it.inputFile = lastOverTimeAggregatorInputFile
885+
it.outputFile = "org/elasticsearch/compute/aggregation/LastOverTimeDoubleAggregator.java"
886+
}
887+
865888
}

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

Lines changed: 176 additions & 0 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/LastOverTimeFloatAggregator.java

Lines changed: 176 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)