Skip to content

Commit

Permalink
Fix bug: Try optimize empty parts. #313
Browse files Browse the repository at this point in the history
  • Loading branch information
solotzg authored and zanmato1984 committed Nov 4, 2019
1 parent 117656a commit 5f1e330
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dbms/src/DataStreams/ReplacingTMTSortedBlockInputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ void ReplacingTMTSortedBlockInputStream<HandleType>::merge(MutableColumns & merg
}
}

if (isDefiniteDeleted())
++deleted_by_range;
else if (!(final && hasDeleteFlag() && behindGcTso()))
insertRow(merged_columns, merged_rows);
if (!selected_row.empty())
{
if (isDefiniteDeleted())
++deleted_by_range;
else if (!(final && hasDeleteFlag() && behindGcTso()))
insertRow(merged_columns, merged_rows);
}

finished = true;
}
Expand Down

0 comments on commit 5f1e330

Please sign in to comment.