Skip to content

PromQL: assert output() is called on resolved plans in AcrossSeriesAggregate#145525

Merged
felixbarny merged 1 commit intoelastic:mainfrom
felixbarny:promql-output-assert-resolved
Apr 2, 2026
Merged

PromQL: assert output() is called on resolved plans in AcrossSeriesAggregate#145525
felixbarny merged 1 commit intoelastic:mainfrom
felixbarny:promql-output-assert-resolved

Conversation

@felixbarny
Copy link
Copy Markdown
Member

Encodes the contract from QueryPlan#output() with an assert rather than silently accepting unresolved attributes in the output stream.

Relates to alex-spies' comment in #145307.

…gregate

Encodes the contract from QueryPlan#output() with an assert rather than
silently accepting unresolved attributes in the output stream.

Relates: elastic#145307
@felixbarny felixbarny self-assigned this Apr 2, 2026
@felixbarny felixbarny requested a review from alex-spies April 2, 2026 06:41
@elasticsearchmachine elasticsearchmachine added Team:StorageEngine external-contributor Pull request authored by a developer outside the Elasticsearch team labels Apr 2, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

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

This is cool, thanks @felixbarny !

@felixbarny felixbarny merged commit 3bef5d6 into elastic:main Apr 2, 2026
39 checks passed
@felixbarny felixbarny deleted the promql-output-assert-resolved branch April 2, 2026 12:30
felixbarny added a commit to felixbarny/elasticsearch that referenced this pull request Apr 2, 2026
…SeriesAggregate (elastic#145525)"

The assert caused EsqlNodeSubclassTests to fail because those tests call
output() on plans with unresolved children by design. Restores the original
resolved() guard in the filter instead.

Fixes elastic#145581, elastic#145583, elastic#145584, elastic#145585
felixbarny added a commit that referenced this pull request Apr 2, 2026
…SeriesAggregate (#145525)"

The assert caused EsqlNodeSubclassTests to fail because those tests call
output() on plans with unresolved children by design. Restores the original
resolved() guard in the filter instead.

Fixes #145581, #145583, #145584, #145585
felixbarny added a commit that referenced this pull request Apr 2, 2026
…SeriesAggregate (#145525)"

The assert caused EsqlNodeSubclassTests to fail because those tests call
output() on plans with unresolved children by design. Restores the original
resolved() guard in the filter instead.

Fixes #145581, #145583, #145584, #145585, #145594, #145595, #145601
alex-spies pushed a commit that referenced this pull request Apr 2, 2026
…SeriesAggregate (#145525)" (#145597)

The assert caused EsqlNodeSubclassTests to fail because those tests call
output() on plans with unresolved children by design. Restores the original
resolved() guard in the filter instead.

Fixes #145581, #145583, #145584, #145585, #145594, #145595, #145601
mromaios pushed a commit to mromaios/elasticsearch that referenced this pull request Apr 9, 2026
…gregate (elastic#145525)

Encodes the contract from QueryPlan#output() with an assert rather than
silently accepting unresolved attributes in the output stream.

Relates: elastic#145307
mromaios pushed a commit to mromaios/elasticsearch that referenced this pull request Apr 9, 2026
…SeriesAggregate (elastic#145525)" (elastic#145597)

The assert caused EsqlNodeSubclassTests to fail because those tests call
output() on plans with unresolved children by design. Restores the original
resolved() guard in the filter instead.

Fixes elastic#145581, elastic#145583, elastic#145584, elastic#145585, elastic#145594, elastic#145595, elastic#145601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external-contributor Pull request authored by a developer outside the Elasticsearch team >non-issue :StorageEngine/PromQL PromQL support for Elastic Team:StorageEngine v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants