You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/optimizer/LocalPhysicalPlanOptimizerTests.java
+48-2Lines changed: 48 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1365,6 +1365,8 @@ public void testMultiMatchOptionsPushDown() {
1365
1365
}
1366
1366
1367
1367
publicvoidtestKnnOptionsPushDown() {
1368
+
assumeTrue("KNN should be enabled", EsqlCapabilities.Cap.KNN_FUNCTION.isEnabled());
1369
+
1368
1370
Stringquery = """
1369
1371
from test
1370
1372
| where KNN(dense_vector, [0.1, 0.2, 0.3],
@@ -2059,6 +2061,8 @@ public void testToDateNanosPushDown() {
2059
2061
}
2060
2062
2061
2063
publicvoidtestKnnWithoutExplicitLimit() {
2064
+
assumeTrue("KNN should be enabled", EsqlCapabilities.Cap.KNN_FUNCTION.isEnabled());
2065
+
2062
2066
varquery = """
2063
2067
from test
2064
2068
| where knn(dense_vector, [0, 1, 2])
@@ -2077,6 +2081,8 @@ public void testKnnWithoutExplicitLimit() {
2077
2081
}
2078
2082
2079
2083
publicvoidtestKnnWithoutExplicitLimitSorted() {
2084
+
assumeTrue("KNN should be enabled", EsqlCapabilities.Cap.KNN_FUNCTION.isEnabled());
2085
+
2080
2086
varquery = """
2081
2087
from test metadata _score
2082
2088
| where knn(dense_vector, [0, 1, 2])
@@ -2095,7 +2101,9 @@ public void testKnnWithoutExplicitLimitSorted() {
0 commit comments