Minor, hold errno code for external hdfs table
This commit is contained in:
27
deps/oblib/src/lib/ob_errno.h
vendored
27
deps/oblib/src/lib/ob_errno.h
vendored
@ -422,6 +422,33 @@ constexpr int OB_S2_REUSE_VERSION_MISMATCH = -9121;
|
||||
constexpr int OB_S2_ENTRY_NOT_EXIST = -9122;
|
||||
constexpr int OB_ERR_XML_PARSE = -9549;
|
||||
constexpr int OB_ERR_XSLT_PARSE = -9574;
|
||||
constexpr int OB_HDFS_CONNECT_FS_ERROR = -11019;
|
||||
constexpr int OB_HDFS_OPEN_FILE_ERROR = -11020;
|
||||
constexpr int OB_HDFS_READ_FILE_ERROR = -11021;
|
||||
constexpr int OB_HDFS_CREATE_IO_SERVICE_ERROR = -11022;
|
||||
constexpr int OB_HDFS_CREATE_FILE_SYSTEM_ERROR = -11023;
|
||||
constexpr int OB_HDFS_CONNECT_DEFAULTFS_ERROR = -11024;
|
||||
constexpr int OB_HDFS_LOAD_DEFAULT_RESOURCES_ERROR = -11025;
|
||||
constexpr int OB_HDFS_VALIDATE_RESOURCES_ERROR = -11026;
|
||||
constexpr int OB_HDFS_LOAD_OBJECT_ERROR = -11027;
|
||||
constexpr int OB_HDFS_RESOURCE_UNAVAILABLE = -11028;
|
||||
constexpr int OB_HDFS_FUNC_UNIMPLEMENTED = -11029;
|
||||
constexpr int OB_HDFS_OPERATION_CANCELED = -11030;
|
||||
constexpr int OB_HDFS_PERMISSION_DENIED = -11031;
|
||||
constexpr int OB_HDFS_PATH_NOT_FOUND = -11032;
|
||||
constexpr int OB_HDFS_FILE_ALREADY_EXISTS = -11033;
|
||||
constexpr int OB_HDFS_PATH_IS_NOT_EMPTY_DIRECTORY = -11034;
|
||||
constexpr int OB_HDFS_BUSY = -11035;
|
||||
constexpr int OB_HDFS_AUTHENTICATION_FAILED = -11036;
|
||||
constexpr int OB_HDFS_ACCESSCONTROL_ERROR = -11037;
|
||||
constexpr int OB_HDFS_STANDNDBY_ERROR = -11038;
|
||||
constexpr int OB_HDFS_SNAPSHOT_PROTOCOL_ERROR = -11039;
|
||||
constexpr int OB_HDFS_INVALID_OFFSET = -11040;
|
||||
constexpr int OB_HDFS_NOT_A_DIRECTORY = -11041;
|
||||
constexpr int OB_HDFS_MALFORMED_URI = -11042;
|
||||
constexpr int OB_HDFS_INVALID_ARGUMENT = -11043;
|
||||
constexpr int OB_HDFS_NOT_IMPLEMENT = -11044;
|
||||
constexpr int OB_HDFS_ERROR = -11045;
|
||||
constexpr int OB_MAX_RAISE_APPLICATION_ERROR = -20000;
|
||||
constexpr int OB_MIN_RAISE_APPLICATION_ERROR = -20999;
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -2698,6 +2698,34 @@ DEFINE_ERROR(OB_ERR_PS_NO_RECURSION, -11016, ER_PS_NO_RECURSION, "HY000", "The p
|
||||
DEFINE_ERROR_EXT(OB_ERR_PARTITION_EXCHANGE_PART_TABLE, -11017, ER_PARTITION_EXCHANGE_PART_TABLE, "HY000", "Table to exchange with partition is partitioned", "Table to exchange with partition is partitioned: \'%.*s\'");
|
||||
DEFINE_ERROR_EXT(OB_INVALID_EXTERNAL_FILE, -11018, -1, "HY000", "Invalid external file", "Invalid external file: %s");
|
||||
|
||||
DEFINE_ERROR_DEP(OB_HDFS_CONNECT_FS_ERROR, -11019, -1, "HY000", "HDFS: could not connect the hdfs file system");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_OPEN_FILE_ERROR, -11020, -1, "HY000", "HDFS: could not open file on hdfs");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_READ_FILE_ERROR, -11021, -1, "HY000", "HDFS: error reading the file on hdfs");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_CREATE_IO_SERVICE_ERROR, -11022, -1, "HY000", "HDFS: unable to create IoService for hdfs");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_CREATE_FILE_SYSTEM_ERROR, -11023, -1, "HY000", "HDFS: unable to create hdfs file system");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_CONNECT_DEFAULTFS_ERROR, -11024, -1, "HY000", "HDFS: error connecting to the cluster: defaultFS is empty");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_LOAD_DEFAULT_RESOURCES_ERROR, -11025, -1, "HY000", "HDFS: could not load hdfs default resources");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_VALIDATE_RESOURCES_ERROR, -11026, -1, "HY000", "HDFS: resources is invalid");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_LOAD_OBJECT_ERROR, -11027, -1, "HY000", "HDFS: Could not load Options object");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_RESOURCE_UNAVAILABLE, -11028, -1, "HY000", "HDFS: resource is unavailable");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_FUNC_UNIMPLEMENTED, -11029, -1, "HY000", "HDFS: function is unimplemented");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_OPERATION_CANCELED, -11030, -1, "HY000", "HDFS: operation is already canceled");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_PERMISSION_DENIED, -11031, -1, "HY000", "HDFS: permission denied");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_PATH_NOT_FOUND, -11032, -1, "HY000", "HDFS: path not found");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_FILE_ALREADY_EXISTS, -11033, -1, "HY000", "HDFS: file already exists");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_PATH_IS_NOT_EMPTY_DIRECTORY, -11034, -1, "HY000", "HDFS: path is not empty directory");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_BUSY, -11035, -1, "HY000", "HDFS: io or resource is busy");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_AUTHENTICATION_FAILED, -11036, -1, "HY000", "HDFS: authentication failed");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_ACCESSCONTROL_ERROR, -11037, -1, "HY000", "HDFS: access control error");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_STANDNDBY_ERROR, -11038, -1, "HY000", "HDFS: standby error");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_SNAPSHOT_PROTOCOL_ERROR, -11039, -1, "HY000", "HDFS: snapshot protocol error");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_INVALID_OFFSET, -11040, -1, "HY000", "HDFS: use invalid offset");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_NOT_A_DIRECTORY, -11041, -1, "HY000", "HDFS: not a directory");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_MALFORMED_URI, -11042, -1, "HY000", "HDFS: malformed uri");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_INVALID_ARGUMENT, -11043, -1, "HY000", "HDFS: invalid argument");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_NOT_IMPLEMENT, -11044, -1, "HY000", "HDFS: not implementation");
|
||||
DEFINE_ERROR_DEP(OB_HDFS_ERROR, -11045, -1, "HY000", "HDFS error");
|
||||
|
||||
// 余留位置
|
||||
////////////////////////////////////////////////////////////////
|
||||
// SQL扩展区段1:[-11000, -12000)
|
||||
|
@ -4154,6 +4154,33 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_PS_NO_RECURSION__USER_ERROR_MSG "The prepared statement contains a stored routine call that refers to that same statement. It\'s not allowed to execute a prepared statement in such a recursive manner"
|
||||
#define OB_ERR_PARTITION_EXCHANGE_PART_TABLE__USER_ERROR_MSG "Table to exchange with partition is partitioned: \'%.*s\'"
|
||||
#define OB_INVALID_EXTERNAL_FILE__USER_ERROR_MSG "Invalid external file: %s"
|
||||
#define OB_HDFS_CONNECT_FS_ERROR__USER_ERROR_MSG "HDFS: could not connect the hdfs file system"
|
||||
#define OB_HDFS_OPEN_FILE_ERROR__USER_ERROR_MSG "HDFS: could not open file on hdfs"
|
||||
#define OB_HDFS_READ_FILE_ERROR__USER_ERROR_MSG "HDFS: error reading the file on hdfs"
|
||||
#define OB_HDFS_CREATE_IO_SERVICE_ERROR__USER_ERROR_MSG "HDFS: unable to create IoService for hdfs"
|
||||
#define OB_HDFS_CREATE_FILE_SYSTEM_ERROR__USER_ERROR_MSG "HDFS: unable to create hdfs file system"
|
||||
#define OB_HDFS_CONNECT_DEFAULTFS_ERROR__USER_ERROR_MSG "HDFS: error connecting to the cluster: defaultFS is empty"
|
||||
#define OB_HDFS_LOAD_DEFAULT_RESOURCES_ERROR__USER_ERROR_MSG "HDFS: could not load hdfs default resources"
|
||||
#define OB_HDFS_VALIDATE_RESOURCES_ERROR__USER_ERROR_MSG "HDFS: resources is invalid"
|
||||
#define OB_HDFS_LOAD_OBJECT_ERROR__USER_ERROR_MSG "HDFS: Could not load Options object"
|
||||
#define OB_HDFS_RESOURCE_UNAVAILABLE__USER_ERROR_MSG "HDFS: resource is unavailable"
|
||||
#define OB_HDFS_FUNC_UNIMPLEMENTED__USER_ERROR_MSG "HDFS: function is unimplemented"
|
||||
#define OB_HDFS_OPERATION_CANCELED__USER_ERROR_MSG "HDFS: operation is already canceled"
|
||||
#define OB_HDFS_PERMISSION_DENIED__USER_ERROR_MSG "HDFS: permission denied"
|
||||
#define OB_HDFS_PATH_NOT_FOUND__USER_ERROR_MSG "HDFS: path not found"
|
||||
#define OB_HDFS_FILE_ALREADY_EXISTS__USER_ERROR_MSG "HDFS: file already exists"
|
||||
#define OB_HDFS_PATH_IS_NOT_EMPTY_DIRECTORY__USER_ERROR_MSG "HDFS: path is not empty directory"
|
||||
#define OB_HDFS_BUSY__USER_ERROR_MSG "HDFS: io or resource is busy"
|
||||
#define OB_HDFS_AUTHENTICATION_FAILED__USER_ERROR_MSG "HDFS: authentication failed"
|
||||
#define OB_HDFS_ACCESSCONTROL_ERROR__USER_ERROR_MSG "HDFS: access control error"
|
||||
#define OB_HDFS_STANDNDBY_ERROR__USER_ERROR_MSG "HDFS: standby error"
|
||||
#define OB_HDFS_SNAPSHOT_PROTOCOL_ERROR__USER_ERROR_MSG "HDFS: snapshot protocol error"
|
||||
#define OB_HDFS_INVALID_OFFSET__USER_ERROR_MSG "HDFS: use invalid offset"
|
||||
#define OB_HDFS_NOT_A_DIRECTORY__USER_ERROR_MSG "HDFS: not a directory"
|
||||
#define OB_HDFS_MALFORMED_URI__USER_ERROR_MSG "HDFS: malformed uri"
|
||||
#define OB_HDFS_INVALID_ARGUMENT__USER_ERROR_MSG "HDFS: invalid argument"
|
||||
#define OB_HDFS_NOT_IMPLEMENT__USER_ERROR_MSG "HDFS: not implementation"
|
||||
#define OB_HDFS_ERROR__USER_ERROR_MSG "HDFS error"
|
||||
#define OB_SP_RAISE_APPLICATION_ERROR__USER_ERROR_MSG "%.*s"
|
||||
#define OB_SP_RAISE_APPLICATION_ERROR_NUM__USER_ERROR_MSG "error number argument to raise_application_error of '%d' is out of range"
|
||||
#define OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN__USER_ERROR_MSG "CLOB or NCLOB in multibyte character set not supported"
|
||||
@ -6425,6 +6452,33 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_PS_NO_RECURSION__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11016, The prepared statement contains a stored routine call that refers to that same statement. It\'s not allowed to execute a prepared statement in such a recursive manner"
|
||||
#define OB_ERR_PARTITION_EXCHANGE_PART_TABLE__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11017, Table to exchange with partition is partitioned: \'%.*s\'"
|
||||
#define OB_INVALID_EXTERNAL_FILE__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11018, Invalid external file: %s"
|
||||
#define OB_HDFS_CONNECT_FS_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11019, HDFS: could not connect the hdfs file system"
|
||||
#define OB_HDFS_OPEN_FILE_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11020, HDFS: could not open file on hdfs"
|
||||
#define OB_HDFS_READ_FILE_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11021, HDFS: error reading the file on hdfs"
|
||||
#define OB_HDFS_CREATE_IO_SERVICE_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11022, HDFS: unable to create IoService for hdfs"
|
||||
#define OB_HDFS_CREATE_FILE_SYSTEM_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11023, HDFS: unable to create hdfs file system"
|
||||
#define OB_HDFS_CONNECT_DEFAULTFS_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11024, HDFS: error connecting to the cluster: defaultFS is empty"
|
||||
#define OB_HDFS_LOAD_DEFAULT_RESOURCES_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11025, HDFS: could not load hdfs default resources"
|
||||
#define OB_HDFS_VALIDATE_RESOURCES_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11026, HDFS: resources is invalid"
|
||||
#define OB_HDFS_LOAD_OBJECT_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11027, HDFS: Could not load Options object"
|
||||
#define OB_HDFS_RESOURCE_UNAVAILABLE__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11028, HDFS: resource is unavailable"
|
||||
#define OB_HDFS_FUNC_UNIMPLEMENTED__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11029, HDFS: function is unimplemented"
|
||||
#define OB_HDFS_OPERATION_CANCELED__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11030, HDFS: operation is already canceled"
|
||||
#define OB_HDFS_PERMISSION_DENIED__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11031, HDFS: permission denied"
|
||||
#define OB_HDFS_PATH_NOT_FOUND__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11032, HDFS: path not found"
|
||||
#define OB_HDFS_FILE_ALREADY_EXISTS__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11033, HDFS: file already exists"
|
||||
#define OB_HDFS_PATH_IS_NOT_EMPTY_DIRECTORY__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11034, HDFS: path is not empty directory"
|
||||
#define OB_HDFS_BUSY__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11035, HDFS: io or resource is busy"
|
||||
#define OB_HDFS_AUTHENTICATION_FAILED__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11036, HDFS: authentication failed"
|
||||
#define OB_HDFS_ACCESSCONTROL_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11037, HDFS: access control error"
|
||||
#define OB_HDFS_STANDNDBY_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11038, HDFS: standby error"
|
||||
#define OB_HDFS_SNAPSHOT_PROTOCOL_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11039, HDFS: snapshot protocol error"
|
||||
#define OB_HDFS_INVALID_OFFSET__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11040, HDFS: use invalid offset"
|
||||
#define OB_HDFS_NOT_A_DIRECTORY__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11041, HDFS: not a directory"
|
||||
#define OB_HDFS_MALFORMED_URI__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11042, HDFS: malformed uri"
|
||||
#define OB_HDFS_INVALID_ARGUMENT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11043, HDFS: invalid argument"
|
||||
#define OB_HDFS_NOT_IMPLEMENT__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11044, HDFS: not implementation"
|
||||
#define OB_HDFS_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11045, HDFS error"
|
||||
#define OB_SP_RAISE_APPLICATION_ERROR__ORA_USER_ERROR_MSG "ORA%06ld: %.*s"
|
||||
#define OB_SP_RAISE_APPLICATION_ERROR_NUM__ORA_USER_ERROR_MSG "ORA-21000: error number argument to raise_application_error of '%d' is out of range"
|
||||
#define OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN__ORA_USER_ERROR_MSG "ORA-22998: CLOB or NCLOB in multibyte character set not supported"
|
||||
@ -6435,7 +6489,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[2267];
|
||||
extern int g_all_ob_errnos[2294];
|
||||
|
||||
const char *ob_error_name(const int oberr);
|
||||
const char* ob_error_cause(const int oberr);
|
||||
|
Reference in New Issue
Block a user