Temporarily modify ErrorCodes to avoid conflicts.

This commit is contained in:
chen768959 2023-08-10 11:23:43 +08:00
parent efb041c4d5
commit da2a041d68
2 changed files with 2 additions and 5 deletions

View File

@ -582,9 +582,6 @@
M(697, CANNOT_RESTORE_TO_NONENCRYPTED_DISK) \
M(698, INVALID_REDIS_STORAGE_TYPE) \
M(699, INVALID_REDIS_TABLE_STRUCTURE) \
M(700, USER_SESSION_LIMIT_EXCEEDED) \
M(701, CLUSTER_DOESNT_EXIST) \
M(702, OPPOSITE_SIGN_DATA_TYPE_NOT_FOUND) \
\
M(999, KEEPER_EXCEPTION) \
M(1000, POCO_EXCEPTION) \

View File

@ -23,7 +23,6 @@ namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
extern const int DATA_TYPE_CANNOT_BE_PROMOTED;
extern const int OPPOSITE_SIGN_DATA_TYPE_NOT_FOUND;
extern const int ILLEGAL_COLUMN;
}
@ -74,7 +73,8 @@ DataTypePtr IDataType::promoteNumericType() const
DataTypePtr IDataType::oppositeSignDataType() const
{
throw Exception(ErrorCodes::OPPOSITE_SIGN_DATA_TYPE_NOT_FOUND, "Opposite sign data type not found for {}.", getName());
// TODO: Should use ErrorCodes::OPPOSITE_SIGN_DATA_TYPE_NOT_FOUND.
throw Exception(702, "Opposite sign data type not found for {}.", getName());
}
size_t IDataType::getSizeOfValueInMemory() const