mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
fixed reading with zero max block size setting
This commit is contained in:
parent
e2d032b883
commit
546012079c
@ -84,7 +84,7 @@ Block MergeTreeBaseBlockInputStream::readFromPart()
|
||||
MergeTreeReadTask & task, MergeTreeRangeReader & reader)
|
||||
{
|
||||
if (!task.size_predictor)
|
||||
return std::max(1, max_block_size_rows);
|
||||
return std::max<size_t>(1, max_block_size_rows);
|
||||
|
||||
size_t rows_to_read_for_block = task.size_predictor->estimateNumRows(preferred_block_size_bytes);
|
||||
size_t rows_to_read_for_max_size_column
|
||||
|
Loading…
Reference in New Issue
Block a user