mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Remove error code
This commit is contained in:
parent
026244b07f
commit
db72f39594
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user