-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
ES|QL Add primitive float variants of all aggregators to the compute engine #109781
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Hi @ChrisHegarty, I've created a changelog YAML for you. |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
...plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/X-ArrayState.java.st
Outdated
Show resolved
Hide resolved
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
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.
Got a first pass; still need to review the tests in a second pass.
x-pack/plugin/esql/compute/gen/src/main/java/org/elasticsearch/compute/gen/Types.java
Outdated
Show resolved
Hide resolved
.../esql/compute/src/main/java/org/elasticsearch/compute/aggregation/X-ValuesAggregator.java.st
Show resolved
Hide resolved
...ompute/src/main/java/org/elasticsearch/compute/aggregation/CountDistinctFloatAggregator.java
Show resolved
Hide resolved
...gin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/MinFloatAggregator.java
Show resolved
Hide resolved
...gin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/SumFloatAggregator.java
Show resolved
Hide resolved
...n/esql/compute/src/test/java/org/elasticsearch/compute/operator/ForkingOperatorTestCase.java
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 good except for a couple minor comments on the tests; before merging, I think we should probably remove the copy-pasted mute, and we should check if the sum aggregation tests test what they ought to, given that the aggregation state is double not float.
...ute/src/test/java/org/elasticsearch/compute/aggregation/MaxFloatAggregatorFunctionTests.java
Outdated
Show resolved
Hide resolved
...n/esql/compute/src/test/java/org/elasticsearch/compute/operator/ForkingOperatorTestCase.java
Show resolved
Hide resolved
...csearch/compute/aggregation/MedianAbsoluteDeviationFloatGroupingAggregatorFunctionTests.java
Outdated
Show resolved
Hide resolved
...ute/src/test/java/org/elasticsearch/compute/aggregation/SumFloatAggregatorFunctionTests.java
Show resolved
Hide resolved
...ute/src/test/java/org/elasticsearch/compute/aggregation/SumFloatAggregatorFunctionTests.java
Outdated
Show resolved
Hide resolved
...ute/src/test/java/org/elasticsearch/compute/aggregation/SumFloatAggregatorFunctionTests.java
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.
Thanks for committing the TopList float aggregator @ivancea
...ompute/src/main/java/org/elasticsearch/compute/aggregation/CountDistinctFloatAggregator.java
Show resolved
Hide resolved
@elasticmachine update branch |
@elasticmachine update branch |
@elasticmachine update branch |
This commit adds primitive float variants of all ES|QL aggregators to the compute engine.
Much of the changes are mechanical and/or are generated, and retain similar type input/output params as other aggregators.
Still no language changes or support for floats at the language level, this PR just addresses support in the engine.
relates: #109746