Skip to content

Commit 84ee176

Browse files
authored
Add semantic_text to data types supported by the match function only if the SEMANTIC_TEXT_TYPE capability is enabled. (#119755) (#119788)
1 parent f8cddd0 commit 84ee176

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/optimizer/LocalPhysicalPlanOptimizerTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,6 +1401,10 @@ private void checkMatchFunctionPushDown(
14011401
var analyzer = makeAnalyzer("mapping-all-types.json", new EnrichResolution());
14021402
// Check for every possible query data type
14031403
for (DataType fieldDataType : fieldDataTypes) {
1404+
if (DataType.UNDER_CONSTRUCTION.containsKey(fieldDataType)) {
1405+
continue;
1406+
}
1407+
14041408
var queryValue = randomQueryValue(fieldDataType);
14051409

14061410
String fieldName = fieldDataType == DataType.DATETIME ? "date" : fieldDataType.name().toLowerCase(Locale.ROOT);

0 commit comments

Comments
 (0)