Skip to content

Commit

Permalink
Revert "fix (#7349)"
Browse files Browse the repository at this point in the history
This reverts commit dc8a91c.
  • Loading branch information
baibaichen committed Oct 8, 2024
1 parent 3dceeb8 commit 5a41fa6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ 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 @@ -252,6 +250,9 @@ 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 5a41fa6

Please sign in to comment.