Remove error code

This commit is contained in:
alesapin 2020-05-28 22:07:20 +03:00
parent 026244b07f
commit db72f39594
2 changed files with 3 additions and 4 deletions

View File

@ -498,7 +498,6 @@ namespace ErrorCodes
extern const int ALTER_OF_COLUMN_IS_FORBIDDEN = 524;
extern const int INCORRECT_DISK_INDEX = 525;
extern const int UNKNOWN_VOLUME_TYPE = 526;
extern const int SORT_ORDER_VIOLATED = 527;
extern const int KEEPER_EXCEPTION = 999;
extern const int POCO_EXCEPTION = 1000;

View File

@ -6,7 +6,7 @@ namespace DB
namespace ErrorCodes
{
extern const int SORT_ORDER_VIOLATED;
extern const int LOGICAL_ERROR;
}
CheckSortedBlockInputStream::CheckSortedBlockInputStream(
@ -72,12 +72,12 @@ Block CheckSortedBlockInputStream::readImpl()
auto block_columns = block.getColumns();
if (!last_row.empty() && !less(last_row, 0, block_columns, 0))
throw Exception("Sort order of blocks violated", ErrorCodes::SORT_ORDER_VIOLATED);
throw Exception("Sort order of blocks violated", ErrorCodes::LOGICAL_ERROR);
size_t rows = block.rows();
for (size_t i = 1; i < rows; ++i)
if (!less(block_columns, i - 1, block_columns, i))
throw Exception("Sort order of blocks violated", ErrorCodes::SORT_ORDER_VIOLATED);
throw Exception("Sort order of blocks violated", ErrorCodes::LOGICAL_ERROR);
last_row.clear();
for (size_t i = 0; i < block.columns(); ++i)