mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Fix compact parts as well
This commit is contained in:
parent
4bedcc19b5
commit
4f1b902342
@ -277,8 +277,11 @@ void MergeTreeReaderCompact::seekToMark(size_t row_index, size_t column_index)
|
||||
|
||||
void MergeTreeReaderCompact::adjustUpperBound(size_t last_mark)
|
||||
{
|
||||
auto right_offset = marks_loader.getMark(last_mark).offset_in_compressed_file;
|
||||
if (!right_offset)
|
||||
size_t right_offset = 0;
|
||||
if (last_mark < data_part->getMarksCount()) /// Otherwise read until the end of file
|
||||
right_offset = marks_loader.getMark(last_mark).offset_in_compressed_file;
|
||||
|
||||
if (right_offset == 0)
|
||||
{
|
||||
/// If already reading till the end of file.
|
||||
if (last_right_offset && *last_right_offset == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user