mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
dbms: tiny improvement [#METR-2807].
This commit is contained in:
parent
9fbaa3f823
commit
71ed66ff2c
@ -204,13 +204,13 @@ protected:
|
||||
{
|
||||
readData(*it, *column.type, *column.column, max_rows_to_read, 0, read_offsets);
|
||||
}
|
||||
catch (const Exception & e)
|
||||
catch (Exception & e)
|
||||
{
|
||||
/// Более хорошая диагностика.
|
||||
if (e.code() == ErrorCodes::CHECKSUM_DOESNT_MATCH || e.code() == ErrorCodes::TOO_LARGE_SIZE_COMPRESSED)
|
||||
throw Exception(e.message() + " (while reading column " + *it + " from part " + path + ")", e.code());
|
||||
else
|
||||
throw;
|
||||
e.addMessage("(while reading column " + *it + " from part " + path + ")");
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
if (column.column->size())
|
||||
@ -226,13 +226,13 @@ protected:
|
||||
{
|
||||
rows_left_in_current_range -= res.rows();
|
||||
}
|
||||
catch (const Exception & e)
|
||||
catch (Exception & e)
|
||||
{
|
||||
/// Более хорошая диагностика.
|
||||
if (e.code() == ErrorCodes::SIZES_OF_COLUMNS_DOESNT_MATCH)
|
||||
throw Exception(e.message() + " (while reading from part " + path + ")", e.code());
|
||||
else
|
||||
throw;
|
||||
e.addMessage("(while reading from part " + path + ")");
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
/// Заполним столбцы, для которых нет файлов, значениями по-умолчанию.
|
||||
|
Loading…
Reference in New Issue
Block a user