Skip to content

Commit 0c6607d

Browse files
pabloemelasticsearchmachine
andauthored
Implementing irate function for timeseries (#134095)
* Implementing irate function for timeseries * Fixes to irate function. Pending: test suite * [CI] Auto commit changes from spotless * Adding support for irate in test framework * fixup * Progress on irate. Debugging one last issue * [CI] Auto commit changes from spotless * Finalized irate * fixup * comments and simplifying state impl * comments * test * comments andfixup --------- Co-authored-by: elasticsearchmachine <[email protected]>
1 parent 447bce4 commit 0c6607d

File tree

21 files changed

+3256
-25
lines changed

21 files changed

+3256
-25
lines changed

muted-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,12 @@ tests:
480480
- class: org.elasticsearch.xpack.esql.inference.rerank.RerankOperatorTests
481481
method: testSimpleCircuitBreaking
482482
issue: https://github.com/elastic/elasticsearch/issues/133619
483+
- class: org.elasticsearch.xpack.kql.parser.KqlParserBooleanQueryTests
484+
method: testParseOrQuery
485+
issue: https://github.com/elastic/elasticsearch/issues/133863
486+
- class: org.elasticsearch.xpack.kql.parser.KqlParserBooleanQueryTests
487+
method: testParseAndQuery
488+
issue: https://github.com/elastic/elasticsearch/issues/133871
483489
- class: org.elasticsearch.xpack.ml.integration.InferenceIT
484490
method: testInferClassificationModel
485491
issue: https://github.com/elastic/elasticsearch/issues/133448

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,28 @@ tasks.named('stringTemplates').configure {
491491
}
492492
}
493493

494+
File irateAggregatorInputFile = file("src/main/java/org/elasticsearch/compute/aggregation/X-IrateAggregator.java.st")
495+
template {
496+
it.properties = intProperties
497+
it.inputFile = irateAggregatorInputFile
498+
it.outputFile = "org/elasticsearch/compute/aggregation/IrateIntAggregator.java"
499+
}
500+
template {
501+
it.properties = longProperties
502+
it.inputFile = irateAggregatorInputFile
503+
it.outputFile = "org/elasticsearch/compute/aggregation/IrateLongAggregator.java"
504+
}
505+
template {
506+
it.properties = floatProperties
507+
it.inputFile = irateAggregatorInputFile
508+
it.outputFile = "org/elasticsearch/compute/aggregation/IrateFloatAggregator.java"
509+
}
510+
template {
511+
it.properties = doubleProperties
512+
it.inputFile = irateAggregatorInputFile
513+
it.outputFile = "org/elasticsearch/compute/aggregation/IrateDoubleAggregator.java"
514+
}
515+
494516
File fallibleStateInputFile = new File("${projectDir}/src/main/java/org/elasticsearch/compute/aggregation/X-FallibleState.java.st")
495517
template {
496518
it.properties = booleanProperties
@@ -601,6 +623,7 @@ tasks.named('stringTemplates').configure {
601623
it.inputFile = fallibleArrayStateInputFile
602624
it.outputFile = "org/elasticsearch/compute/aggregation/FloatFallibleArrayState.java"
603625
}
626+
604627
File valuesAggregatorInputFile = new File("${projectDir}/src/main/java/org/elasticsearch/compute/aggregation/X-ValuesAggregator.java.st")
605628
template {
606629
it.properties = intProperties

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

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