diff --git a/ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/optimizer.cpp b/ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/optimizer.cpp index b26a2b90d041..c229de85a682 100644 --- a/ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/optimizer.cpp +++ b/ydb/core/tx/columnshard/engines/storage/optimizer/lcbuckets/planner/optimizer.cpp @@ -27,6 +27,7 @@ TOptimizerPlanner::TOptimizerPlanner(const ui64 pathId, const std::shared_ptrBuildLevel(nextLevel, idx, Counters->GetLevelCounters(idx))); + nextLevel = Levels.back(); } } else { Levels.emplace_back(std::make_shared(2, nullptr, Counters->GetLevelCounters(2), TDuration::Max(), 1 << 20));