loose the assertion

This commit is contained in:
Anton Popov 2023-02-01 15:31:06 +00:00
parent e2324c9f15
commit 9f26e16963

View File

@ -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();