disable vec index in shared storage mode

This commit is contained in:
wu-xingying 2024-10-21 09:43:18 +00:00 committed by ob-robot
parent aa2a24aafb
commit 46b28c209b
3 changed files with 12 additions and 0 deletions

View File

@ -2509,6 +2509,10 @@ int ObAlterTableResolver::generate_index_arg(obrpc::ObCreateIndexArg &index_arg,
ret = OB_NOT_SUPPORTED;
LOG_WARN("fulltext search index isn't supported in shared storage mode", K(ret));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "fulltext search index in shared storage mode is");
} else if (GCTX.is_shared_storage_mode() && VEC_KEY == index_keyname_) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("vector index search index isn't supported in shared storage mode", K(ret));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "vector index search index in shared storage mode is");
#endif
} else if (tenant_data_version < DATA_VERSION_4_3_1_0 && index_keyname_ == FTS_KEY) {
ret = OB_NOT_SUPPORTED;

View File

@ -247,6 +247,10 @@ int ObCreateIndexResolver::resolve_index_column_node(
ret = OB_NOT_SUPPORTED;
LOG_WARN("fulltext search index isn't supported in shared storage mode", K(ret));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "fulltext search index in shared storage mode is");
} else if (GCTX.is_shared_storage_mode() && VEC_KEY == index_keyname_) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("vector index isn't supported in shared storage mode", K(ret));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "vector index in shared storage mode is");
}
}
#endif

View File

@ -2746,6 +2746,10 @@ int ObCreateTableResolver::resolve_index_node(const ParseNode *node)
ret = OB_NOT_SUPPORTED;
LOG_WARN("fulltext search index isn't supported in shared storage mode", K(ret));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "fulltext search index in shared storage mode is");
} else if (GCTX.is_shared_storage_mode() && is_vec_index) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("vector index search index isn't supported in shared storage mode", K(ret));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "vector index search index in shared storage mode is");
#endif
}
for (int32_t i = 0; OB_SUCC(ret) && i < index_column_list_node->num_child_; ++i) {