mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-16 12:44:42 +00:00
ReverseTransform small improvement
This commit is contained in:
parent
96addd32ed
commit
7079b4c885
@ -6,11 +6,11 @@ namespace DB
|
||||
|
||||
void ReverseTransform::transform(Chunk & chunk)
|
||||
{
|
||||
IColumn::Permutation permutation;
|
||||
|
||||
size_t num_rows = chunk.getNumRows();
|
||||
IColumn::Permutation permutation(num_rows);
|
||||
|
||||
for (size_t i = 0; i < num_rows; ++i)
|
||||
permutation.emplace_back(num_rows - 1 - i);
|
||||
permutation[i] = num_rows - 1 - i;
|
||||
|
||||
auto columns = chunk.detachColumns();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user