From 7ebad4f9f34a666d80ae651da9c91c83167cb69f Mon Sep 17 00:00:00 2001 From: obdev Date: Sun, 16 Feb 2025 16:47:30 +0000 Subject: [PATCH] [FTS] prohibit building fts index on string type column --- src/share/ob_fts_index_builder_util.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/share/ob_fts_index_builder_util.cpp b/src/share/ob_fts_index_builder_util.cpp index 6d19aae19a..072d040d06 100644 --- a/src/share/ob_fts_index_builder_util.cpp +++ b/src/share/ob_fts_index_builder_util.cpp @@ -1777,6 +1777,9 @@ int ObFtsIndexBuilderUtil::generate_fts_parser_property( } else if (OB_ISNULL(col_schema = data_schema.get_column_schema(column_name))) { ret = OB_ERR_KEY_COLUMN_DOES_NOT_EXITS; LOG_USER_ERROR(OB_ERR_KEY_COLUMN_DOES_NOT_EXITS, column_name.length(), column_name.ptr()); + } else if (col_schema->is_string_lob()) { + ret = OB_NOT_SUPPORTED; + LOG_USER_ERROR(OB_NOT_SUPPORTED, "fulltext index on string type column is"); } else if (CS_TYPE_INVALID == collation_type) { collation_type = col_schema->get_collation_type(); } else if (collation_type != col_schema->get_collation_type()) {