Better exception message in CheckingSortedBlockInputStream

This commit is contained in:
alesapin 2020-07-20 17:54:35 +03:00
parent 941674a018
commit 5978c9720d

View File

@ -62,8 +62,8 @@ Block CheckSortedBlockInputStream::readImpl()
else if (res > 0) else if (res > 0)
{ {
throw Exception(ErrorCodes::LOGICAL_ERROR, throw Exception(ErrorCodes::LOGICAL_ERROR,
"Sort order of blocks violated for column {}, left: {}, right: {}.", "Sort order of blocks violated for column number {}, left: {}, right: {}.",
backQuoteIfNeed(elem.column_name), column_number,
applyVisitor(FieldVisitorDump(), (*left_col)[left_index]), applyVisitor(FieldVisitorDump(), (*left_col)[left_index]),
applyVisitor(FieldVisitorDump(), (*right_col)[right_index])); applyVisitor(FieldVisitorDump(), (*right_col)[right_index]));
} }