fix subpartition template compat bug
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -449,6 +449,7 @@ DEFINE_ERROR(OB_ERR_OBSERVER_STOP, -4394, -1, "HY000", "observer stop process fa
|
||||
DEFINE_ERROR(OB_ERR_OBSERVICE_START, -4395, -1, "HY000", "observice start process has failure");
|
||||
DEFINE_ERROR_DEP(OB_ERR_THREAD_PANIC, -4396, -1, "HY000", "Worker thread pannic, thread may be terminated or hung");
|
||||
DEFINE_ERROR(OB_ENCODING_EST_SIZE_OVERFLOW, -4397, -1, "HY000", "Encoding estimated size overflow");
|
||||
DEFINE_ORACLE_ERROR(OB_INVALID_SUB_PARTITION_TYPE, -4398, 1500, "HY000", "It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning", 14020, "this physical attribute may not be specified for a table partition");
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
//error code for root server & server management -4500 ---- -5000
|
||||
|
||||
@ -263,6 +263,7 @@ constexpr int OB_ERR_OBSERVER_START = -4393;
|
||||
constexpr int OB_ERR_OBSERVER_STOP = -4394;
|
||||
constexpr int OB_ERR_OBSERVICE_START = -4395;
|
||||
constexpr int OB_ENCODING_EST_SIZE_OVERFLOW = -4397;
|
||||
constexpr int OB_INVALID_SUB_PARTITION_TYPE = -4398;
|
||||
constexpr int OB_IMPORT_NOT_IN_SERVER = -4505;
|
||||
constexpr int OB_CONVERT_ERROR = -4507;
|
||||
constexpr int OB_BYPASS_TIMEOUT = -4510;
|
||||
@ -2100,6 +2101,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_OBSERVICE_START__USER_ERROR_MSG "observice start process has failure"
|
||||
#define OB_ERR_THREAD_PANIC__USER_ERROR_MSG "Worker thread pannic, thread may be terminated or hung"
|
||||
#define OB_ENCODING_EST_SIZE_OVERFLOW__USER_ERROR_MSG "Encoding estimated size overflow"
|
||||
#define OB_INVALID_SUB_PARTITION_TYPE__USER_ERROR_MSG "It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning"
|
||||
#define OB_IMPORT_NOT_IN_SERVER__USER_ERROR_MSG "Import not in service"
|
||||
#define OB_CONVERT_ERROR__USER_ERROR_MSG "Convert error"
|
||||
#define OB_BYPASS_TIMEOUT__USER_ERROR_MSG "Bypass timeout"
|
||||
@ -4174,6 +4176,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_OBSERVICE_START__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4395, observice start process has failure"
|
||||
#define OB_ERR_THREAD_PANIC__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4396, Worker thread pannic, thread may be terminated or hung"
|
||||
#define OB_ENCODING_EST_SIZE_OVERFLOW__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4397, Encoding estimated size overflow"
|
||||
#define OB_INVALID_SUB_PARTITION_TYPE__ORA_USER_ERROR_MSG "ORA-14020: this physical attribute may not be specified for a table partition"
|
||||
#define OB_IMPORT_NOT_IN_SERVER__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4505, Import not in service"
|
||||
#define OB_CONVERT_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4507, Convert error"
|
||||
#define OB_BYPASS_TIMEOUT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -4510, Bypass timeout"
|
||||
@ -5889,7 +5892,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_DATA_TOO_LONG_MSG_FMT_V2__ORA_USER_ERROR_MSG "ORA-12899: value too large for column %.*s (actual: %ld, maximum: %ld)"
|
||||
#define OB_ERR_INVALID_DATE_MSG_FMT_V2__ORA_USER_ERROR_MSG "ORA-01861: Incorrect datetime value for column '%.*s' at row %ld"
|
||||
|
||||
extern int g_all_ob_errnos[2070];
|
||||
extern int g_all_ob_errnos[2071];
|
||||
|
||||
const char *ob_error_name(const int oberr);
|
||||
const char* ob_error_cause(const int oberr);
|
||||
|
||||
@ -9814,7 +9814,7 @@ int ObDDLResolver::resolve_hash_partition_elements(ObPartitionedStmt *stmt,
|
||||
LOG_WARN("failed to add partition", K(ret));
|
||||
} else if (stmt->use_def_sub_part() &&
|
||||
OB_NOT_NULL(element_node->children_[ELEMENT_SUBPARTITION_NODE])) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
ret = OB_INVALID_SUB_PARTITION_TYPE;
|
||||
LOG_WARN("individual subpartition with sub part template", K(ret));
|
||||
} else if (!stmt->use_def_sub_part()) {
|
||||
// resolve non template
|
||||
|
||||
Reference in New Issue
Block a user