mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Fix for "out of bound" in ColumnVector::insertRangeFrom called from shrink()
This commit is contained in:
parent
79874e8733
commit
abbb58107c
@ -403,7 +403,8 @@ void MergeTreeRangeReader::ReadResult::optimize(bool can_read_incomplete_granule
|
||||
filter_original = filter;
|
||||
|
||||
/// Check if const 1 after shrink
|
||||
if (allow_filter_columns && filter.countBytesInFilter() + total_zero_rows_in_tails == total_rows_per_granule)
|
||||
if (num_rows == filter.size() &&
|
||||
allow_filter_columns && filter.countBytesInFilter() + total_zero_rows_in_tails == total_rows_per_granule)
|
||||
{
|
||||
total_rows_per_granule = total_rows_per_granule - total_zero_rows_in_tails;
|
||||
num_rows = total_rows_per_granule;
|
||||
|
Loading…
Reference in New Issue
Block a user