[FTS][BUG.FIX]throw warning when building many fts index on same columns.
This commit is contained in:
parent
fae61b20ea
commit
b671b98725
1
deps/oblib/src/lib/ob_errno.h
vendored
1
deps/oblib/src/lib/ob_errno.h
vendored
@ -432,6 +432,7 @@ constexpr int OB_OBJECT_STORAGE_CHECKSUM_ERROR = -9132;
|
||||
constexpr int OB_BACKUP_ZONE_IDC_REGION_INVALID = -9133;
|
||||
constexpr int OB_ERR_TMP_FILE_ALREADY_SEALED = -9134;
|
||||
constexpr int OB_TMP_FILE_EXCEED_DISK_QUOTA = -9135;
|
||||
constexpr int OB_ERR_DUPLICATE_INDEX = -9137;
|
||||
constexpr int OB_ERR_XML_PARSE = -9549;
|
||||
constexpr int OB_ERR_XSLT_PARSE = -9574;
|
||||
constexpr int OB_HDFS_CONNECT_FS_ERROR = -11019;
|
||||
|
File diff suppressed because one or more lines are too long
@ -2355,6 +2355,7 @@ DEFINE_ERROR_EXT_DEP(OB_BACKUP_ZONE_IDC_REGION_INVALID, -9133, -1, "HY000", "bac
|
||||
DEFINE_ERROR_DEP(OB_ERR_TMP_FILE_ALREADY_SEALED, -9134, -1, "HY000", "tmp file has already sealed");
|
||||
DEFINE_ERROR_DEP(OB_TMP_FILE_EXCEED_DISK_QUOTA, -9135, -1, "HY000", "tmp file exceeds disk quota");
|
||||
DEFINE_ERROR(OB_BACKUP_MISSING_MVIEW_DEP_TABLET_SSTABLE, -9136, -1, "HY000", "Backup missing mview dependent tablet sstable, sstable maybe recycled");
|
||||
DEFINE_ERROR_DEP(OB_ERR_DUPLICATE_INDEX, -9137, ER_DUP_INDEX, "HY000", "Duplicate index \'%s\' defined on the table \'%s.%s\'");
|
||||
// 余留位置,在该行之前继续添加storage错误码
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
@ -3326,7 +3326,6 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_UNKNOWN_SUBPARTITION__USER_ERROR_MSG "Unknown subpartition"
|
||||
#define OB_ERR_INVALID_SQL_ROW_LIMITING__USER_ERROR_MSG "Invalid SQL ROW LIMITING expression was specified."
|
||||
#define INCORRECT_ARGUMENTS_TO_ESCAPE__USER_ERROR_MSG "Incorrect arguments to ESCAPE"
|
||||
#define INCORRECT_ARGUMENTS_TO_URL_DECODE__USER_ERROR_MSG "Incorrect arguments to URL_DECODE, %s: %%%c%c"
|
||||
#define STATIC_ENG_NOT_IMPLEMENT__USER_ERROR_MSG "not implemented in SQL static typing engine, will try the old engine automatically"
|
||||
#define OB_OBJ_ALREADY_EXIST__USER_ERROR_MSG "name is already used by an existing object"
|
||||
#define OB_DBLINK_NOT_EXIST_TO_ACCESS__USER_ERROR_MSG "connection description for remote database not found"
|
||||
@ -3952,6 +3951,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_TMP_FILE_ALREADY_SEALED__USER_ERROR_MSG "tmp file has already sealed"
|
||||
#define OB_TMP_FILE_EXCEED_DISK_QUOTA__USER_ERROR_MSG "tmp file exceeds disk quota"
|
||||
#define OB_BACKUP_MISSING_MVIEW_DEP_TABLET_SSTABLE__USER_ERROR_MSG "Backup missing mview dependent tablet sstable, sstable maybe recycled"
|
||||
#define OB_ERR_DUPLICATE_INDEX__USER_ERROR_MSG "Duplicate index \'%s\' defined on the table \'%s.%s\'"
|
||||
#define OB_ERR_RESIZE_FILE_TO_SMALLER__USER_ERROR_MSG "Extend ssblock file to smaller is not allowed"
|
||||
#define OB_MARK_BLOCK_INFO_TIMEOUT__USER_ERROR_MSG "Mark blocks timeout(5s) in auto extend process when alloc block fail"
|
||||
#define OB_NOT_READY_TO_EXTEND_FILE__USER_ERROR_MSG "Auto extend param is not ready to start extending file"
|
||||
@ -8330,6 +8330,8 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_TMP_FILE_EXCEED_DISK_QUOTA__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -9135, tmp file exceeds disk quota"
|
||||
#define OB_BACKUP_MISSING_MVIEW_DEP_TABLET_SSTABLE__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9136, Backup missing mview dependent tablet sstable, sstable maybe recycled"
|
||||
#define OB_BACKUP_MISSING_MVIEW_DEP_TABLET_SSTABLE__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -9136, Backup missing mview dependent tablet sstable, sstable maybe recycled"
|
||||
#define OB_ERR_DUPLICATE_INDEX__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9137, Duplicate index \'%s\' defined on the table \'%s.%s\'"
|
||||
#define OB_ERR_DUPLICATE_INDEX__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -9137, Duplicate index \'%s\' defined on the table \'%s.%s\'"
|
||||
#define OB_ERR_RESIZE_FILE_TO_SMALLER__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9200, Extend ssblock file to smaller is not allowed"
|
||||
#define OB_ERR_RESIZE_FILE_TO_SMALLER__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -9200, Extend ssblock file to smaller is not allowed"
|
||||
#define OB_MARK_BLOCK_INFO_TIMEOUT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -9201, Mark blocks timeout(5s) in auto extend process when alloc block fail"
|
||||
@ -9163,7 +9165,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_INVALID_DATE_MSG_FMT_V2__ORA_USER_ERROR_MSG "ORA-01861: Incorrect datetime value for column '%.*s' at row %ld"
|
||||
#define OB_ERR_INVALID_DATE_MSG_FMT_V2__OBE_USER_ERROR_MSG "OBE-01861: Incorrect datetime value for column '%.*s' at row %ld"
|
||||
|
||||
extern int g_all_ob_errnos[2393];
|
||||
extern int g_all_ob_errnos[2395];
|
||||
|
||||
const char *ob_error_name(const int oberr);
|
||||
const char* ob_error_cause(const int oberr);
|
||||
|
@ -334,6 +334,10 @@ int ObFtsIndexBuilderUtil::adjust_fts_args(
|
||||
ObColumnSchemaV2 *generated_word_col = nullptr;
|
||||
ObColumnSchemaV2 *generated_doc_len_col = nullptr;
|
||||
ObColumnSchemaV2 *generated_word_count_col = nullptr;
|
||||
if (existing_word_col && is_fts_index_aux(index_arg.index_type_)) {
|
||||
LOG_USER_WARN(OB_ERR_DUPLICATE_INDEX, index_arg.index_name_.ptr(),
|
||||
index_arg.database_name_.ptr(), data_schema.get_table_name());
|
||||
}
|
||||
if (OB_ISNULL(existing_doc_id_col)) { // need to generate doc id col
|
||||
doc_id_col_id = available_col_id++;
|
||||
if (OB_FAIL(ret)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user