Fix tests.

This commit is contained in:
Nikolai Kochetov 2020-06-15 20:48:04 +03:00
parent 5436ef38bf
commit b456a3cc77
6 changed files with 6 additions and 6 deletions

View File

@ -303,7 +303,7 @@ IMergingAlgorithm::Status AggregatingSortedAlgorithm::merge()
bool key_differs; bool key_differs;
SortCursor current = queue.current(); SortCursor current = queue.current();
if (current->isLast() && skipLastRowFor(current->pos)) if (current->isLast() && skipLastRowFor(current->order))
{ {
/// If we skip this row, it's not equals with any key we process. /// If we skip this row, it's not equals with any key we process.
last_key.reset(); last_key.reset();

View File

@ -115,7 +115,7 @@ IMergingAlgorithm::Status CollapsingSortedAlgorithm::merge()
{ {
auto current = queue.current(); auto current = queue.current();
if (current->isLast() && skipLastRowFor(current->pos)) if (current->isLast() && skipLastRowFor(current->order))
{ {
/// Get the next block from the corresponding source, if there is one. /// Get the next block from the corresponding source, if there is one.
queue.removeTop(); queue.removeTop();

View File

@ -157,7 +157,7 @@ IMergingAlgorithm::Status GraphiteRollupSortedAlgorithm::merge()
{ {
SortCursor current = queue.current(); SortCursor current = queue.current();
if (current->isLast() && skipLastRowFor(current->pos)) if (current->isLast() && skipLastRowFor(current->order))
{ {
/// Get the next block from the corresponding source, if there is one. /// Get the next block from the corresponding source, if there is one.
queue.removeTop(); queue.removeTop();

View File

@ -40,7 +40,7 @@ IMergingAlgorithm::Status ReplacingSortedAlgorithm::merge()
{ {
SortCursor current = queue.current(); SortCursor current = queue.current();
if (current->isLast() && skipLastRowFor(current->pos)) if (current->isLast() && skipLastRowFor(current->order))
{ {
/// Get the next block from the corresponding source, if there is one. /// Get the next block from the corresponding source, if there is one.
queue.removeTop(); queue.removeTop();

View File

@ -647,7 +647,7 @@ IMergingAlgorithm::Status SummingSortedAlgorithm::merge()
SortCursor current = queue.current(); SortCursor current = queue.current();
if (current->isLast() && skipLastRowFor(current->pos)) if (current->isLast() && skipLastRowFor(current->order))
{ {
/// If we skip this row, it's not equals with any key we process. /// If we skip this row, it's not equals with any key we process.
last_key.reset(); last_key.reset();

View File

@ -64,7 +64,7 @@ IMergingAlgorithm::Status VersionedCollapsingAlgorithm::merge()
{ {
SortCursor current = queue.current(); SortCursor current = queue.current();
if (current->isLast() && skipLastRowFor(current->pos)) if (current->isLast() && skipLastRowFor(current->order))
{ {
/// Get the next block from the corresponding source, if there is one. /// Get the next block from the corresponding source, if there is one.
queue.removeTop(); queue.removeTop();