ReverseTransform small improvement

This commit is contained in:
Maksim Kita 2023-06-08 12:40:16 +03:00
parent 96addd32ed
commit 7079b4c885

View File

@ -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();