Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,6 @@ tests:
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
method: test {p0=search/160_exists_query/Test exists query on unmapped float field}
issue: https://github.com/elastic/elasticsearch/issues/132984
- class: org.elasticsearch.xpack.esql.analysis.AnalyzerTests
method: testMagnitudePlanWithDenseVectorImplicitCasting
issue: https://github.com/elastic/elasticsearch/issues/132985
- class: org.elasticsearch.xpack.search.AsyncSearchErrorTraceIT
method: testAsyncSearchFailingQueryErrorTraceDefault
issue: https://github.com/elastic/elasticsearch/issues/133010
Expand Down Expand Up @@ -582,9 +579,6 @@ tests:
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
method: test {p0=search/160_exists_query/Test exists query on _id field}
issue: https://github.com/elastic/elasticsearch/issues/133097
- class: org.elasticsearch.xpack.esql.analysis.AnalyzerTests
method: testNoDenseVectorFailsForMagnitude
issue: https://github.com/elastic/elasticsearch/issues/133013

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2444,6 +2444,8 @@ private void checkNoDenseVectorFailsSimilarityFunction(String similarityFunction
}

public void testMagnitudePlanWithDenseVectorImplicitCasting() {
assumeTrue("v_magnitude not available", EsqlCapabilities.Cap.MAGNITUDE_SCALAR_VECTOR_FUNCTION.isEnabled());

var plan = analyze(String.format(Locale.ROOT, """
from test | eval scalar = v_magnitude([1, 2, 3])
"""), "mapping-dense_vector.json");
Expand All @@ -2459,6 +2461,8 @@ public void testMagnitudePlanWithDenseVectorImplicitCasting() {
}

public void testNoDenseVectorFailsForMagnitude() {
assumeTrue("v_magnitude not available", EsqlCapabilities.Cap.MAGNITUDE_SCALAR_VECTOR_FUNCTION.isEnabled());

var query = String.format(Locale.ROOT, "row a = 1 | eval scalar = v_magnitude(0.342)");
VerificationException error = expectThrows(VerificationException.class, () -> analyze(query));
assertThat(
Expand Down