Skip to content

Commit 1b5720d

Browse files
authored
[ES|QL] Fix test releases for LookupJoinTypesIT. (#128985)
1 parent 40cf2d3 commit 1b5720d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import static org.elasticsearch.xpack.esql.core.type.DataType.SHORT;
5555
import static org.elasticsearch.xpack.esql.core.type.DataType.TEXT;
5656
import static org.elasticsearch.xpack.esql.core.type.DataType.TSID_DATA_TYPE;
57+
import static org.elasticsearch.xpack.esql.core.type.DataType.UNDER_CONSTRUCTION;
5758
import static org.hamcrest.Matchers.containsString;
5859
import static org.hamcrest.Matchers.equalTo;
5960
import static org.hamcrest.Matchers.is;
@@ -318,6 +319,9 @@ private void testLookupJoinTypes(String group) {
318319
initIndexes(group);
319320
initData(group);
320321
for (TestConfig config : testConfigurations.get(group).configs.values()) {
322+
if ((isValidDataType(config.mainType()) && isValidDataType(config.lookupType())) == false) {
323+
continue;
324+
}
321325
String query = String.format(
322326
Locale.ROOT,
323327
"FROM index | LOOKUP JOIN %s ON %s | KEEP other",
@@ -572,4 +576,8 @@ public void testQuery(String query) {
572576
assertion().accept(e);
573577
}
574578
}
579+
580+
private boolean isValidDataType(DataType dataType) {
581+
return UNDER_CONSTRUCTION.get(dataType) == null || UNDER_CONSTRUCTION.get(dataType).isEnabled();
582+
}
575583
}

0 commit comments

Comments
 (0)