diff --git a/muted-tests.yml b/muted-tests.yml index 95e3161ccd884..b430e09d85c8e 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -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 @@ -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 - class: org.elasticsearch.xpack.ml.integration.TextEmbeddingQueryIT method: testModelWithPrefixStrings issue: https://github.com/elastic/elasticsearch/issues/133138 diff --git a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java index e2f786b94ed5b..2c57deac50fdc 100644 --- a/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java +++ b/x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java @@ -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"); @@ -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(