Skip to content

Commit f09b03f

Browse files
committed
add first and last by timestamp
1 parent 2e461e2 commit f09b03f

File tree

16 files changed

+2085
-26
lines changed

16 files changed

+2085
-26
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ tasks.named('stringTemplates').configure {
477477
*/
478478
File twoStateInputFile = file("src/main/java/org/elasticsearch/compute/aggregation/X-2State.java.st")
479479
[longProperties].forEach { v1 ->
480-
[intProperties, longProperties, floatProperties, doubleProperties].forEach { v2 ->
480+
[intProperties, longProperties, floatProperties, doubleProperties, bytesRefProperties].forEach { v2 ->
481481
{
482482
var properties = [:]
483483
v1.forEach { k, v -> properties["v1_" + k] = v}
@@ -945,6 +945,11 @@ tasks.named('stringTemplates').configure {
945945
it.inputFile = valueByTimestampAggregatorInputFile
946946
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}DoubleByTimestampAggregator.java"
947947
}
948+
template {
949+
it.properties = addOccurrence(bytesRefProperties, Occurrence)
950+
it.inputFile = valueByTimestampAggregatorInputFile
951+
it.outputFile = "org/elasticsearch/compute/aggregation/${Occurrence}BytesRefByTimestampAggregator.java"
952+
}
948953
}
949954
}
950955
}

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

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