Try fix summing.

This commit is contained in:
Nikolai Kochetov 2020-04-03 17:09:01 +03:00
parent 47eccf2332
commit c53b902d6c
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ void AggregatingSortedTransform::updateCursor(Chunk chunk, size_t source_num)
{ {
/// Extend lifetime of last chunk. /// Extend lifetime of last chunk.
last_chunk = std::move(source_chunk); last_chunk = std::move(source_chunk);
last_chunk_sort_columns = std::move(cursors[source_num].all_columns); last_chunk_sort_columns = std::move(cursors[source_num].sort_columns);
source_chunk = std::move(chunk); source_chunk = std::move(chunk);
cursors[source_num].reset(source_chunk.getColumns(), {}); cursors[source_num].reset(source_chunk.getColumns(), {});

View File

@ -411,7 +411,7 @@ void SummingSortedTransform::updateCursor(Chunk chunk, size_t source_num)
{ {
/// Extend lifetime of last chunk. /// Extend lifetime of last chunk.
last_chunk = std::move(source_chunk); last_chunk = std::move(source_chunk);
last_chunk_sort_columns = std::move(cursors[source_num].all_columns); last_chunk_sort_columns = std::move(cursors[source_num].sort_columns);
source_chunk = std::move(chunk); source_chunk = std::move(chunk);
cursors[source_num].reset(source_chunk.getColumns(), {}); cursors[source_num].reset(source_chunk.getColumns(), {});