Skip to content

ESQL: Fix release build only failures#144122

Merged
julian-elastic merged 5 commits intoelastic:mainfrom
julian-elastic:streamingLookupReleaseFix
Mar 13, 2026
Merged

ESQL: Fix release build only failures#144122
julian-elastic merged 5 commits intoelastic:mainfrom
julian-elastic:streamingLookupReleaseFix

Conversation

@julian-elastic
Copy link
Copy Markdown
Contributor

@julian-elastic julian-elastic commented Mar 12, 2026

Fixes a few broken tests that generate slightly different plan in Release vs Snapshot build and would fail in release build.

  • testLengthPushedWithTopN () - previously different result was expected in Release vs Snapshot. With ESQL: Remove snapshot protection from node reduce late materialization #142834 late materialization is enabled in Release too, so now the plan is the same.

  • For testLengthNotPushedToLookupJoinKeyword() and testLengthNotPushedToLookupJoinKeywordSameName() - the operator used is different in Release vs Snapshot, as StreamingLookup is behind Snapshot flag for now. Changed the tests to expect StreamingLookupFromIndexOperator in Snapshot and LookupFromIndexOperator in Release.

Partially addresses: #144086

@julian-elastic julian-elastic self-assigned this Mar 12, 2026
@julian-elastic julian-elastic added :Analytics/ES|QL AKA ESQL >test Issues or PRs that are addressing/adding tests Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Mar 12, 2026
@julian-elastic julian-elastic marked this pull request as ready for review March 12, 2026 17:05
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@julian-elastic
Copy link
Copy Markdown
Contributor Author

@GalLalouche I have confirmed the change in testLengthPushedWithTopN is due to your PR here #142834, can you please code review and see if the change is expected?
@cimequinox Can you please code review the two lookup join related changes?

@GalLalouche
Copy link
Copy Markdown
Contributor

@julian-elastic Could you please explain in the PR exactly what is this PR doing? I get that it's trying to fix a broken test, but why was it broken and how this fix it? It would make it a lot easier to review :)

Copy link
Copy Markdown
Contributor

@cimequinox cimequinox left a comment

Choose a reason for hiding this comment

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

The changes address the issue reported in #144086

  1. PushExpressionToLoadIT (3 tests) — @julian-elasticTests assert StreamingLookupOperator in execution plan profiles but LocalExecutionPlanner.shouldUseStreamingOperator() returns false when isSnapshot() == false, falling back to LookupOperator.

@julian-elastic julian-elastic merged commit 95b998d into elastic:main Mar 13, 2026
36 checks passed
@julian-elastic julian-elastic deleted the streamingLookupReleaseFix branch March 13, 2026 15:54
szybia added a commit to szybia/elasticsearch that referenced this pull request Mar 13, 2026
…elocations

* upstream/main: (72 commits)
  [Test] Randomly disable sequence numbers in CcrTimeSeriesDataStreamsIT (elastic#143930)
  Fix AsyncSearchIndexServiceTests.testCircuitBreaker failure (elastic#144058)
  Refine GenerativeIT some more, this time with accounting for some added (elastic#144220)
  ESQL: Physical Planning on the Lookup Node (elastic#143707)
  Mute org.elasticsearch.xpack.esql.CsvIT test {csv-spec:approximation.Approximate stats by with zero variance} elastic#144240
  Trigger counter metrics in test for delta temporality measurements (elastic#144193)
  fix capabiltiy approximation_v3 (elastic#144230)
  [ci] Add PR pipeline for testing ipv6 and fix tests not working with ipv6 (elastic#140473)
  update (elastic#144095)
  Make from/to optional in TBUCKET when Kibana timestamp filter is present (elastic#144057)
  Extract reroute behavior from create-index request classes (elastic#144140)
  ESQL: Fix release build only failures (elastic#144122)
  ES|QL query approximation: move sample correction to data node (elastic#144005)
  Add indexing pressure tracking to OTLP endpoints (elastic#144009)
  Fix replica writes after _seq_no doc values are pruned (elastic#144180)
  allow tests to configure supportsLoadingConfig (elastic#144061)
  [ES|QL] Unmute testGiantTextFieldInSubqueryIntermediateResultsWithSort (elastic#144126)
  [ESQL][DOCS] Add CPS page (unpublished for moment) (elastic#144206)
  ESQL: Forbid "load" unmapped_fields for certain commands (elastic#144115)
  Add CCS Remote Views Detection (elastic#143384)
  ...
ncordon pushed a commit to ncordon/elasticsearch that referenced this pull request Mar 16, 2026
* Fix release build failures

* Address code review comments

Assisted by Cursor
michalborek pushed a commit to michalborek/elasticsearch that referenced this pull request Mar 23, 2026
* Fix release build failures

* Address code review comments

Assisted by Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants