提交 7aadd380 编写于 作者: A Alexey Milovidov

Fix error

上级 b3845b10
......@@ -57,15 +57,12 @@ protected:
for (const auto & name : column_names)
columns.emplace_back(src.getByName(name).column);
++current_it;
++current_block_idx;
if (current_block_idx == num_blocks)
{
is_finished = true;
}
else
{
++current_it;
++current_block_idx;
}
return Chunk(std::move(columns), src.rows());
}
}
......@@ -137,7 +134,7 @@ Pipe StorageMemory::read(
size_t offset = 0;
for (size_t stream = 0; stream < num_streams; ++stream)
{
size_t next_offset = stream * size / num_streams;
size_t next_offset = (stream + 1) * size / num_streams;
size_t num_blocks = next_offset - offset;
assert(num_blocks > 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册