Skip to content

Commit e085841

Browse files
authored
Fix pattern tests in release builds (#120879) (#120991)
(cherry picked from commit 974c4e6)
1 parent ae0bb70 commit e085841

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2904,6 +2904,8 @@ public void testValidFromPattern() {
29042904
}
29052905

29062906
public void testValidJoinPattern() {
2907+
assumeTrue("LOOKUP JOIN requires corresponding capability", EsqlCapabilities.Cap.JOIN_LOOKUP_V12.isEnabled());
2908+
29072909
var basePattern = randomIndexPatterns(without(CROSS_CLUSTER));
29082910
var joinPattern = randomIndexPattern(without(WILDCARD_PATTERN), without(CROSS_CLUSTER));
29092911
var onField = randomIdentifier();
@@ -2921,6 +2923,8 @@ public void testValidJoinPattern() {
29212923
}
29222924

29232925
public void testInvalidJoinPatterns() {
2926+
assumeTrue("LOOKUP JOIN requires corresponding capability", EsqlCapabilities.Cap.JOIN_LOOKUP_V12.isEnabled());
2927+
29242928
{
29252929
// wildcard
29262930
var joinPattern = randomIndexPattern(WILDCARD_PATTERN, without(CROSS_CLUSTER));

0 commit comments

Comments
 (0)