Skip to content

Explicitly set a confidence interval in dense vector tests#145078

Merged
davidkyle merged 2 commits intoelastic:mainfrom
davidkyle:default-confidence
Mar 27, 2026
Merged

Explicitly set a confidence interval in dense vector tests#145078
davidkyle merged 2 commits intoelastic:mainfrom
davidkyle:default-confidence

Conversation

@davidkyle
Copy link
Copy Markdown
Member

@davidkyle davidkyle commented Mar 27, 2026

Mixed cluster tests using int4_flat or int4_hnsw index options fail because confidence_interval previously defaulted to 0.0 but is now deprecated. This means when the value is unset versions before 9.4.0 write it out as 0.0 but after 9.4.0 the field is not written. The difference triggers an assertion in the DocumentMapper.

The simple fix is to explicitly add the param into the tests so both versions have the same representation

Closes #144997.

@davidkyle davidkyle added the >test Issues or PRs that are addressing/adding tests label Mar 27, 2026
@elasticsearchmachine elasticsearchmachine added v9.4.0 needs:triage Requires assignment of a team area label labels Mar 27, 2026
@davidkyle davidkyle added :Search Relevance/Search Catch all for Search Relevance and removed needs:triage Requires assignment of a team area label labels Mar 27, 2026
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Mar 27, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Contributor

@john-wagster john-wagster left a comment

Choose a reason for hiding this comment

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

lgtm; i agree do this PR instead

@davidkyle davidkyle changed the title Explicitly set a confidence interval in Explicitly set a confidence interval in dense vector tests Mar 27, 2026
@davidkyle davidkyle merged commit afb249c into elastic:main Mar 27, 2026
37 checks passed
mamazzol pushed a commit to mamazzol/elasticsearch that referenced this pull request Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search Relevance/Search Catch all for Search Relevance 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] MixedClusterClientYamlTestSuiteIT class failing

3 participants