mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
Update ReverseBlockInputStream.cpp
This commit is contained in:
parent
c04c614bc0
commit
00753506dc
@ -2,7 +2,6 @@
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
ReverseBlockInputStream::ReverseBlockInputStream(const BlockInputStreamPtr & input)
|
||||
{
|
||||
children.push_back(input);
|
||||
@ -31,16 +30,11 @@ namespace DB
|
||||
|
||||
size_t rows_size = result_block.rows();
|
||||
for (size_t i = 0; i < rows_size; ++i)
|
||||
{
|
||||
permutation.emplace_back(rows_size - 1 - i);
|
||||
}
|
||||
|
||||
for (auto& block : result_block)
|
||||
{
|
||||
for (auto & block : result_block)
|
||||
block.column = block.column->permute(permutation, 0);
|
||||
}
|
||||
|
||||
return result_block;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user