mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +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)
|
void MergeTreeReaderCompact::adjustUpperBound(size_t last_mark)
|
||||||
{
|
{
|
||||||
auto right_offset = marks_loader.getMark(last_mark).offset_in_compressed_file;
|
size_t right_offset = 0;
|
||||||
if (!right_offset)
|
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 already reading till the end of file.
|
||||||
if (last_right_offset && *last_right_offset == 0)
|
if (last_right_offset && *last_right_offset == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user