Update ReverseBlockInputStream.cpp

This commit is contained in:
alexey-milovidov 2019-05-05 23:24:05 +03:00 committed by GitHub
parent c04c614bc0
commit 00753506dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{
block.column = block.column->permute(permutation, 0);
}
return result_block;
}
}