mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
Edit review issues
This commit is contained in:
parent
e750755f8f
commit
87b49f13b7
@ -27,19 +27,20 @@ namespace DB
|
||||
return Block();
|
||||
}
|
||||
|
||||
PaddedPODArray<size_t> permutation;
|
||||
IColumn::Permutation permutation;
|
||||
|
||||
for (size_t i = 0; i < result_block.rows(); ++i)
|
||||
size_t rows_size = result_block.rows();
|
||||
for (size_t i = 0; i < rows_size; ++i)
|
||||
{
|
||||
permutation.emplace_back(result_block.rows() - 1 - i);
|
||||
permutation.emplace_back(rows_size - 1 - i);
|
||||
}
|
||||
|
||||
for (auto iter = result_block.begin(); iter != result_block.end(); ++iter)
|
||||
for (auto& block : result_block)
|
||||
{
|
||||
iter->column = iter->column->permute(permutation, 0);
|
||||
block.column = block.column->permute(permutation, 0);
|
||||
}
|
||||
|
||||
return result_block;
|
||||
}
|
||||
|
||||
} // namespace DB
|
||||
}
|
||||
|
@ -12,10 +12,10 @@ namespace DB
|
||||
class ReverseBlockInputStream : public IBlockInputStream
|
||||
{
|
||||
public:
|
||||
ReverseBlockInputStream(const BlockInputStreamPtr& input);
|
||||
ReverseBlockInputStream(
|
||||
const BlockInputStreamPtr& input);
|
||||
|
||||
String getName() const override;
|
||||
|
||||
Block getHeader() const override;
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user