-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Implementing irate function for timeseries #134095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4da7153
to
793cd98
Compare
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
6d758aa
to
4727916
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left some comments, but this looks correct. Thanks @pabloem!
...n/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/X-IrateAggregator.java.st
Outdated
Show resolved
Hide resolved
...n/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/X-IrateAggregator.java.st
Outdated
Show resolved
Hide resolved
...n/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/X-IrateAggregator.java.st
Outdated
Show resolved
Hide resolved
...gin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/Irate.java
Outdated
Show resolved
Hide resolved
...gin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/aggregate/Irate.java
Outdated
Show resolved
Hide resolved
...n/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/X-IrateAggregator.java.st
Outdated
Show resolved
Hide resolved
24fb9c4
to
5edc4c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left some comments regarding memory accounting; it's almost ready. Thanks, @pabloem.
...pute/src/main/generated-src/org/elasticsearch/compute/aggregation/IrateDoubleAggregator.java
Outdated
Show resolved
Hide resolved
...pute/src/main/generated-src/org/elasticsearch/compute/aggregation/IrateDoubleAggregator.java
Outdated
Show resolved
Hide resolved
...pute/src/main/generated-src/org/elasticsearch/compute/aggregation/IrateDoubleAggregator.java
Show resolved
Hide resolved
...pute/src/main/generated-src/org/elasticsearch/compute/aggregation/IrateDoubleAggregator.java
Show resolved
Hide resolved
...pute/src/main/generated-src/org/elasticsearch/compute/aggregation/IrateDoubleAggregator.java
Outdated
Show resolved
Hide resolved
...pute/src/main/generated-src/org/elasticsearch/compute/aggregation/IrateDoubleAggregator.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks @pabloem
Implementation for
irate
- very similar torate
, except we only need two elements to calculate the data point.This includes randomized test suite support for
irate
, so it has strong coverage.