[ES|QL] Introduce AggregateMetricDoubleBlock#127299
Merged
limotova merged 8 commits intoelastic:mainfrom May 1, 2025
Merged
Conversation
066a38d to
daba3fc
Compare
daba3fc to
865a57b
Compare
15 tasks
limotova
commented
Apr 28, 2025
| } | ||
|
|
||
| @Override | ||
| public int getTotalValueCount() { |
Contributor
Author
There was a problem hiding this comment.
This is the same as CompositeBlock but I'm not sure if this is what we want for AggregateMetricDouble?
dnhatn
reviewed
Apr 28, 2025
Member
dnhatn
left a comment
There was a problem hiding this comment.
I've left several suggestions, but the PR looks great. Thanks Larisa!
x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/Block.java
Show resolved
Hide resolved
...in/esql/compute/src/main/java/org/elasticsearch/compute/data/AggregateMetricDoubleBlock.java
Outdated
Show resolved
Hide resolved
...in/esql/compute/src/main/java/org/elasticsearch/compute/data/AggregateMetricDoubleBlock.java
Show resolved
Hide resolved
...in/esql/compute/src/main/java/org/elasticsearch/compute/data/AggregateMetricDoubleBlock.java
Show resolved
Hide resolved
x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/CompositeBlock.java
Outdated
Show resolved
Hide resolved
...lugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/topn/ValueExtractor.java
Outdated
Show resolved
Hide resolved
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/ResponseXContentUtils.java
Outdated
Show resolved
Hide resolved
...g/elasticsearch/xpack/esql/expression/function/scalar/convert/FromAggregateMetricDouble.java
Outdated
Show resolved
Hide resolved
...pack/esql/expression/function/scalar/convert/ToStringFromAggregateMetricDoubleEvaluator.java
Outdated
Show resolved
Hide resolved
dnhatn
approved these changes
Apr 29, 2025
...in/esql/compute/src/main/java/org/elasticsearch/compute/data/AggregateMetricDoubleBlock.java
Outdated
Show resolved
Hide resolved
...org/elasticsearch/xpack/esql/expression/function/scalar/convert/ToAggregateMetricDouble.java
Outdated
Show resolved
Hide resolved
...in/esql/compute/src/main/java/org/elasticsearch/compute/data/AggregateMetricDoubleBlock.java
Show resolved
Hide resolved
Collaborator
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Collaborator
|
Hi @limotova, I've created a changelog YAML for you. |
Collaborator
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
kkrik-es
reviewed
Apr 30, 2025
|
|
||
| @Override | ||
| public boolean mayHaveNulls() { | ||
| return Stream.of(minBlock, maxBlock, sumBlock, countBlock).anyMatch(Block::mayHaveNulls); |
Contributor
There was a problem hiding this comment.
Nit: I thought there was a push to skip streams as they're unnecessarily expensive?
kkrik-es
approved these changes
Apr 30, 2025
limotova
added a commit
to limotova/elasticsearch
that referenced
this pull request
May 2, 2025
Backports the following commits to 8.19: - [ES|QL] Introduce AggregateMetricDoubleBlock (elastic#127299)
limotova
added a commit
to limotova/elasticsearch
that referenced
this pull request
May 2, 2025
Backports the following commits to 8.19: - [ES|QL] Introduce AggregateMetricDoubleBlock (elastic#127299)
limotova
added a commit
to limotova/elasticsearch
that referenced
this pull request
May 2, 2025
Backports the following commits to 8.19: - [ES|QL] Introduce AggregateMetricDoubleBlock (elastic#127299)
elasticsearchmachine
pushed a commit
that referenced
this pull request
May 2, 2025
nik9000
added a commit
to nik9000/elasticsearch
that referenced
this pull request
May 2, 2025
In elastic#127623 we backported elastic#127299 and added a backport transport version for it - `ESQL_AGGREGATE_METRIC_DOUBLE_BLOCK_8_19` aka `8_841_0_24`. This brings that version forwards to `main` and adds support for parsing streams with that version. In elastic#127639 we backported elastic#126401 and added a backport transport version for it - `PINNED_RETRIEVER_8_19` aka `8_841_0_23`. This brings that version forwards to `main` and adds support for parsing streams with that versions. In elastic#127633 we a claimed a backport transport version to backport elastic#127314 - `INTRODUCE_FAILURES_LIFECYCLE_BACKPORT_8_19` aka `8_841_0_23`. That's the same versions as `PINNED_RETRIEVER_8_19`. It's just that this one is in `main` and `PINNED_RETRIEVER_8_19` is in `8.19`. To allow me to bring `PINNED_RETRIEVER_8_19` for wards I've had to revert elastic#127633. Closes elastic#127667
elasticsearchmachine
pushed a commit
that referenced
this pull request
May 3, 2025
In #127623 we backported #127299 and added a backport transport version for it - `ESQL_AGGREGATE_METRIC_DOUBLE_BLOCK_8_19` aka `8_841_0_24`. This brings that version forwards to `main` and adds support for parsing streams with that version. In #127639 we backported #126401 and added a backport transport version for it - `PINNED_RETRIEVER_8_19` aka `8_841_0_23`. This brings that version forwards to `main` and adds support for parsing streams with that versions. In #127633 we a claimed a backport transport version to backport #127314 - `INTRODUCE_FAILURES_LIFECYCLE_BACKPORT_8_19` aka `8_841_0_23`. That's the same versions as `PINNED_RETRIEVER_8_19`. It's just that this one is in `main` and `PINNED_RETRIEVER_8_19` is in `8.19`. To allow me to bring `PINNED_RETRIEVER_8_19` for wards I've had to revert #127633. Closes #127667
jfreden
pushed a commit
to jfreden/elasticsearch
that referenced
this pull request
May 12, 2025
In elastic#127623 we backported elastic#127299 and added a backport transport version for it - `ESQL_AGGREGATE_METRIC_DOUBLE_BLOCK_8_19` aka `8_841_0_24`. This brings that version forwards to `main` and adds support for parsing streams with that version. In elastic#127639 we backported elastic#126401 and added a backport transport version for it - `PINNED_RETRIEVER_8_19` aka `8_841_0_23`. This brings that version forwards to `main` and adds support for parsing streams with that versions. In elastic#127633 we a claimed a backport transport version to backport elastic#127314 - `INTRODUCE_FAILURES_LIFECYCLE_BACKPORT_8_19` aka `8_841_0_23`. That's the same versions as `PINNED_RETRIEVER_8_19`. It's just that this one is in `main` and `PINNED_RETRIEVER_8_19` is in `8.19`. To allow me to bring `PINNED_RETRIEVER_8_19` for wards I've had to revert elastic#127633. Closes elastic#127667
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds a new Block type named AggregateMetricDoubleBlock and
refactors AggregateMetricDouble to use it instead of CompositeBlock.
The reasoning behind this is that there were many areas where we lost
the distinction between a generic CompositeBlock vs using CompositeBlock
specifically for AggregateMetricDoubles, and we felt it was best to
split them into their own types.