Skip to content

Commit 9cd72ee

Browse files
authored
Fix subqueries resolution release tests (#138343)
1 parent 9d866d6 commit 9cd72ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/plugin/IndexResolutionIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.elasticsearch.plugins.Plugin;
2424
import org.elasticsearch.xpack.esql.VerificationException;
2525
import org.elasticsearch.xpack.esql.action.AbstractEsqlIntegTestCase;
26+
import org.elasticsearch.xpack.esql.action.EsqlCapabilities;
2627
import org.elasticsearch.xpack.esql.action.EsqlQueryResponse;
2728
import org.elasticsearch.xpack.esql.core.expression.MetadataAttribute;
2829

@@ -275,12 +276,14 @@ public void testResolutionWithFilter() {
275276
}
276277

277278
public void testSubqueryResolution() {
279+
assumeTrue("Requires subqueries feature", EsqlCapabilities.Cap.SUBQUERY_IN_FROM_COMMAND.isEnabled());
280+
278281
assertAcked(client().admin().indices().prepareCreate("index-1"));
279282
indexRandom(true, "index-1", 1);
280283
assertAcked(client().admin().indices().prepareCreate("index-2"));
281284
indexRandom(true, "index-2", 1);
282285

283-
try (var response = run(syncEsqlQueryRequest().query("FROM index-1, (FROM index-2 METADATA _index) METADATA _index"))) {
286+
try (var response = run(syncEsqlQueryRequest().query("FROM (FROM index-1 METADATA _index), (FROM index-2 METADATA _index)"))) {
284287
assertOk(response);
285288
assertResultConcreteIndices(response, "index-1", "index-2");
286289
}

0 commit comments

Comments
 (0)