Skip to content

[ES|QL] Fix MMR release test using subqueries#144087

Merged
ioanatia merged 2 commits intoelastic:mainfrom
ioanatia:fix_verifier_tests_mmr
Mar 12, 2026
Merged

[ES|QL] Fix MMR release test using subqueries#144087
ioanatia merged 2 commits intoelastic:mainfrom
ioanatia:fix_verifier_tests_mmr

Conversation

@ioanatia
Copy link
Copy Markdown
Member

@ioanatia ioanatia commented Mar 12, 2026

closes #144077
related #144086

we need an explicit capability check when we test MMR with subqueries.

I won't add the test-release label to the PR, since other unrelated tests are failing too.
So I just tested this with:

./gradlew ":x-pack:plugin:esql:test" --tests "org.elasticsearch.xpack.esql.analysis.VerifierTests.testMMRLimitedInput" -Dbuild.snapshot=false  -Dtests.jvm.argline="-Dbuild.snapshot=false"  -Dlicense.key=x-pack/license-tools/src/test/resources/public.key

@ioanatia ioanatia added >test Issues or PRs that are addressing/adding tests Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch :Search Relevance/ES|QL Search functionality in ES|QL labels Mar 12, 2026
}

public void testMMRDiversifyFieldIsValid() {
assumeTrue("MMR requires corresponding capability", EsqlCapabilities.Cap.MMR_V2.isEnabled());
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

cap is always enabled - these checks can be removed.

@ioanatia ioanatia requested a review from carlosdelest March 12, 2026 08:49
Copy link
Copy Markdown
Member

@carlosdelest carlosdelest left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@ioanatia ioanatia marked this pull request as ready for review March 12, 2026 09:18
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@ioanatia ioanatia merged commit 4a1f52c into elastic:main Mar 12, 2026
36 checks passed
@ioanatia ioanatia deleted the fix_verifier_tests_mmr branch March 12, 2026 12:19
szybia added a commit to szybia/elasticsearch that referenced this pull request Mar 12, 2026
…elocations

* upstream/main: (49 commits)
  CCS logging fixes (elastic#144070)
  Improve CPS cluster exclusion handling (elastic#143488)
  Remove snapshot condition now that node_reduce phase is in non-snapshot builds (elastic#144090)
  Drop deprecation warnings when updating a mapping in the cluster state applier (elastic#143884) (elastic#144040)
  Add ensureGreenAndNoInitializingShards helper (elastic#144044)
  Removed unnecessary applies_to blocks from deprecated query (elastic#144096)
  [CPS] Use single CrossProjectModeDecider instance (elastic#144030)
  Fix ESQL TS requests with LIMIT 0 (elastic#144031)
  ESQL: Remove `create` methods in aggs (elastic#144098)
  ES|QL: Refactor ChangeLimitOperator (elastic#144017)
  Add Paginated Hit Source Tests (elastic#142592)
  Fix test failure not preferred (elastic#144019)
  Remove serialization logic from EIS authorization response (elastic#144021)
  ESQL: CSV schema inference and parsing enhancements (elastic#144050)
  ESQL: Fix incorrectly optimized fork with nullify unmapped_fields (elastic#143030)
  Fix MMR release test using subqueries (elastic#144087)
  Refactoring `UserAgentPlugin` (elastic#140712)
  Drop non-finite samples in Prometheus remote write (elastic#144055)
  [TEST] Wait for internal inference indices to be created in authorization IT (elastic#143885)
  Disable ndjson datasource QA tests in release-tests (elastic#143992)
  ...
michalborek pushed a commit to michalborek/elasticsearch that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/ES|QL Search functionality in ES|QL Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >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.

[CI] VerifierTests testMMRLimitedInput failing

3 participants