Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
loneylee committed Sep 25, 2024
1 parent 59e02c1 commit 113f1b0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ std::vector<MergeTreeDataPartPtr> SparkStorageMergeTree::loadDataPartsWithNames(
data_parts.emplace_back(res.part);
}

// without it "test mergetree optimize partitioned by one low card column" will log ERROR
calculateColumnAndSecondaryIndexSizesImpl();
return data_parts;
}

Expand Down Expand Up @@ -250,9 +252,6 @@ MergeTreeData::LoadPartResult SparkStorageMergeTree::loadDataPart(
if (res.part->hasLightweightDelete())
has_lightweight_delete_parts.store(true);

// without it "test mergetree optimize partitioned by one low card column" will log ERROR
calculateColumnAndSecondaryIndexSizesImpl();

LOG_TRACE(log, "Finished loading {} part {} on disk {}", magic_enum::enum_name(to_state), part_name, part_disk_ptr->getName());
return res;
}
Expand Down

0 comments on commit 113f1b0

Please sign in to comment.