Skip to content

[ES|QL] fixing bug when handling 1d literal vectors#136891

Merged
pmpailis merged 2 commits intoelastic:mainfrom
pmpailis:fix_136364_1d_vector_literal
Oct 22, 2025
Merged

[ES|QL] fixing bug when handling 1d literal vectors#136891
pmpailis merged 2 commits intoelastic:mainfrom
pmpailis:fix_136364_1d_vector_literal

Conversation

@pmpailis
Copy link
Contributor

Simple fix to account for constant 1-d vectors after the refactoring in #135602. E.g.:

ROW left_vector = to_dense_vector([1.5])
| EVAL similarity = v_cosine(left_vector, 2.3)
| KEEP left_vector, similarity

Closes #136364

@pmpailis pmpailis added >bug :Search Relevance/ES|QL Search functionality in ES|QL labels Oct 21, 2025
@elasticsearchmachine elasticsearchmachine added Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.3.0 labels Oct 21, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

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

@pmpailis pmpailis merged commit f7a9cb5 into elastic:main Oct 22, 2025
34 checks passed
fzowl pushed a commit to voyage-ai/elasticsearch that referenced this pull request Nov 3, 2025
@pmpailis pmpailis deleted the fix_136364_1d_vector_literal branch January 16, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Search Relevance/ES|QL Search functionality in ES|QL Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.3.0

3 participants