mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
loose the assertion
This commit is contained in:
parent
e2324c9f15
commit
9f26e16963
@ -484,7 +484,7 @@ void MergeTreeDataPartWriterWide::validateColumnOfFixedSize(const NameAndTypePai
|
||||
column->size(), mark_num, index_granularity.getMarksCount(), index_granularity_rows);
|
||||
}
|
||||
|
||||
if (index_granularity_rows > data_part->index_granularity_info.fixed_index_granularity)
|
||||
if (!settings.blocks_are_granules_size && index_granularity_rows > data_part->index_granularity_info.fixed_index_granularity)
|
||||
{
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR,
|
||||
"Mark #{} has {} rows, but max fixed granularity is {}, index granularity size {}",
|
||||
@ -493,6 +493,7 @@ void MergeTreeDataPartWriterWide::validateColumnOfFixedSize(const NameAndTypePai
|
||||
}
|
||||
|
||||
if (index_granularity_rows != index_granularity.getMarkRows(mark_num))
|
||||
{
|
||||
throw Exception(
|
||||
ErrorCodes::LOGICAL_ERROR,
|
||||
"Incorrect mark rows for part {} for mark #{}"
|
||||
@ -501,6 +502,7 @@ void MergeTreeDataPartWriterWide::validateColumnOfFixedSize(const NameAndTypePai
|
||||
mark_num, offset_in_compressed_file, offset_in_decompressed_block,
|
||||
index_granularity.getMarkRows(mark_num), index_granularity_rows,
|
||||
index_granularity.getMarksCount());
|
||||
}
|
||||
|
||||
auto column = type->createColumn();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user