From 39a4694849e9a70619b46518892c476aa68ea88c Mon Sep 17 00:00:00 2001 From: Ioana Tagirta Date: Tue, 5 Nov 2024 10:43:38 +0100 Subject: [PATCH] Fix release tests for semantic_text (#116202) --- .../org/elasticsearch/xpack/esql/core/type/DataType.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/DataType.java b/x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/DataType.java index 81739536c6572..9708a3ea0db85 100644 --- a/x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/DataType.java +++ b/x-pack/plugin/esql-core/src/main/java/org/elasticsearch/xpack/esql/core/type/DataType.java @@ -370,10 +370,7 @@ public static boolean isUnsupported(DataType from) { } public static boolean isString(DataType t) { - if (EsqlCorePlugin.SEMANTIC_TEXT_FEATURE_FLAG.isEnabled() && t == SEMANTIC_TEXT) { - return true; - } - return t == KEYWORD || t == TEXT; + return t == KEYWORD || t == TEXT || t == SEMANTIC_TEXT; } public static boolean isPrimitiveAndSupported(DataType t) {