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