Skip to content

[ES|QL] Return ConstNullBlock in FromAggMetricDouble#136773

Merged
limotova merged 3 commits intoelastic:mainfrom
limotova:const-null-block-from-agg-metric
Oct 21, 2025
Merged

[ES|QL] Return ConstNullBlock in FromAggMetricDouble#136773
limotova merged 3 commits intoelastic:mainfrom
limotova:const-null-block-from-agg-metric

Conversation

@limotova
Copy link
Contributor

If we receive a block that contains all null values in FromAggregateMetricDouble, we want to return a new ConstantNullBlock, in order to allow other functions down the line to operate on it like a typical null block, rather than an AggregateMetricDouble.

If we receive a block that contains all null values in
FromAggregateMetricDouble, we want to return a new ConstantNullBlock,
in order to allow other functions down the line to operate on it down
the line like a typical null block, rather than an AggregateMetricDouble
@limotova limotova added >bug :StorageEngine/ES|QL Timeseries / metrics / PromQL / logsdb capabilities in ES|QL labels Oct 18, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @limotova, I've created a changelog YAML for you.

@limotova limotova requested review from dnhatn and kkrik-es October 20, 2025 21:54
Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good - thanks, Larisa! I think you can reproduce the issue in DownsampleIT with some intervals without data points.

@limotova limotova force-pushed the const-null-block-from-agg-metric branch from de095cb to 4cb03c5 Compare October 21, 2025 06:37
@limotova limotova marked this pull request as ready for review October 21, 2025 07:48
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test looks good. Thanks Larisa!

@limotova limotova added auto-backport Automatically create backport pull requests when merged v9.2.1 labels Oct 21, 2025
@limotova limotova merged commit cab30d9 into elastic:main Oct 21, 2025
33 of 34 checks passed
@limotova limotova deleted the const-null-block-from-agg-metric branch October 21, 2025 16:25
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.2
limotova added a commit to limotova/elasticsearch that referenced this pull request Oct 21, 2025
If we receive a block that contains all null values in
FromAggregateMetricDouble, we want to return a new ConstantNullBlock,
in order to allow other functions down the line to operate on it down
the line like a typical null block, rather than an AggregateMetricDouble
elasticsearchmachine pushed a commit that referenced this pull request Oct 21, 2025
If we receive a block that contains all null values in
FromAggregateMetricDouble, we want to return a new ConstantNullBlock,
in order to allow other functions down the line to operate on it down
the line like a typical null block, rather than an AggregateMetricDouble
fzowl pushed a commit to voyage-ai/elasticsearch that referenced this pull request Nov 3, 2025
If we receive a block that contains all null values in
FromAggregateMetricDouble, we want to return a new ConstantNullBlock,
in order to allow other functions down the line to operate on it down
the line like a typical null block, rather than an AggregateMetricDouble
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :StorageEngine/ES|QL Timeseries / metrics / PromQL / logsdb capabilities in ES|QL Team:StorageEngine v9.2.1 v9.3.0

3 participants