Skip to content

Commit 15d809e

Browse files
Unmute tests (#133139)
Addresses #132985 and #133013.
1 parent f60be16 commit 15d809e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

muted-tests.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,6 @@ tests:
543543
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
544544
method: test {p0=search/160_exists_query/Test exists query on unmapped float field}
545545
issue: https://github.com/elastic/elasticsearch/issues/132984
546-
- class: org.elasticsearch.xpack.esql.analysis.AnalyzerTests
547-
method: testMagnitudePlanWithDenseVectorImplicitCasting
548-
issue: https://github.com/elastic/elasticsearch/issues/132985
549546
- class: org.elasticsearch.xpack.search.AsyncSearchErrorTraceIT
550547
method: testAsyncSearchFailingQueryErrorTraceDefault
551548
issue: https://github.com/elastic/elasticsearch/issues/133010
@@ -582,9 +579,6 @@ tests:
582579
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
583580
method: test {p0=search/160_exists_query/Test exists query on _id field}
584581
issue: https://github.com/elastic/elasticsearch/issues/133097
585-
- class: org.elasticsearch.xpack.esql.analysis.AnalyzerTests
586-
method: testNoDenseVectorFailsForMagnitude
587-
issue: https://github.com/elastic/elasticsearch/issues/133013
588582
- class: org.elasticsearch.xpack.ml.integration.TextEmbeddingQueryIT
589583
method: testModelWithPrefixStrings
590584
issue: https://github.com/elastic/elasticsearch/issues/133138

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/analysis/AnalyzerTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2444,6 +2444,8 @@ private void checkNoDenseVectorFailsSimilarityFunction(String similarityFunction
24442444
}
24452445

24462446
public void testMagnitudePlanWithDenseVectorImplicitCasting() {
2447+
assumeTrue("v_magnitude not available", EsqlCapabilities.Cap.MAGNITUDE_SCALAR_VECTOR_FUNCTION.isEnabled());
2448+
24472449
var plan = analyze(String.format(Locale.ROOT, """
24482450
from test | eval scalar = v_magnitude([1, 2, 3])
24492451
"""), "mapping-dense_vector.json");
@@ -2459,6 +2461,8 @@ public void testMagnitudePlanWithDenseVectorImplicitCasting() {
24592461
}
24602462

24612463
public void testNoDenseVectorFailsForMagnitude() {
2464+
assumeTrue("v_magnitude not available", EsqlCapabilities.Cap.MAGNITUDE_SCALAR_VECTOR_FUNCTION.isEnabled());
2465+
24622466
var query = String.format(Locale.ROOT, "row a = 1 | eval scalar = v_magnitude(0.342)");
24632467
VerificationException error = expectThrows(VerificationException.class, () -> analyze(query));
24642468
assertThat(

0 commit comments

Comments
 (0)