From d3007aec6328771287f9d83060241c7011cda808 Mon Sep 17 00:00:00 2001 From: ivanmorozov333 Date: Tue, 29 Oct 2024 17:05:27 +0300 Subject: [PATCH] fix --- ydb/core/tx/columnshard/engines/portions/constructor.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ydb/core/tx/columnshard/engines/portions/constructor.h b/ydb/core/tx/columnshard/engines/portions/constructor.h index f7499aabe0ca..f444836068bf 100644 --- a/ydb/core/tx/columnshard/engines/portions/constructor.h +++ b/ydb/core/tx/columnshard/engines/portions/constructor.h @@ -175,10 +175,12 @@ class TPortionInfoConstructor { for (auto&& i : chunks) { Validate(i); if (entityId != i.GetEntityId()) { - if (recordsCount) { - AFL_VERIFY(recordsCountCurrent == *recordsCount); - } else { - recordsCount = recordsCountCurrent; + if (entityId) { + if (recordsCount) { + AFL_VERIFY(recordsCountCurrent == *recordsCount); + } else { + recordsCount = recordsCountCurrent; + } } AFL_VERIFY(entityId < i.GetEntityId())("entity", entityId)("next", i.GetEntityId())("details", debugString()); AFL_VERIFY(i.GetChunkIdx() == 0);