File tree 1 file changed +7
-2
lines changed
ydb/core/tx/columnshard/engines/changes
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,9 @@ TConclusionStatus TInsertColumnEngineChanges::DoConstructBlobs(TConstructionCont
160
160
auto blobSchema = context.SchemaVersions .GetSchemaVerified (inserted.GetSchemaVersion ());
161
161
std::vector<ui32> filteredIds = inserted.GetMeta ().GetSchemaSubset ().Apply (blobSchema->GetIndexInfo ().GetColumnIds (true ));
162
162
usageColumnIds.insert (filteredIds.begin (), filteredIds.end ());
163
+ if (inserted.GetMeta ().GetModificationType () == NEvWrite::EModificationType::Delete) {
164
+ usageColumnIds.emplace ((ui32)IIndexInfo::ESpecialColumn::DELETE_FLAG);
165
+ }
163
166
if (usageColumnIds.size () == resultSchema->GetIndexInfo ().GetColumnIds (true ).size ()) {
164
167
break ;
165
168
}
@@ -179,8 +182,10 @@ TConclusionStatus TInsertColumnEngineChanges::DoConstructBlobs(TConstructionCont
179
182
}
180
183
181
184
IIndexInfo::AddSnapshotColumns (*batch, inserted.GetSnapshot ());
182
- IIndexInfo::AddDeleteFlagsColumn (*batch, inserted.GetMeta ().GetModificationType () == NEvWrite::EModificationType::Delete);
183
- usageColumnIds.insert (IIndexInfo::GetSystemColumnIds ().begin (), IIndexInfo::GetSystemColumnIds ().end ());
185
+ if (usageColumnIds.contains ((ui32)IIndexInfo::ESpecialColumn::DELETE_FLAG)) {
186
+ IIndexInfo::AddDeleteFlagsColumn (*batch, inserted.GetMeta ().GetModificationType () == NEvWrite::EModificationType::Delete);
187
+ }
188
+ usageColumnIds.insert (IIndexInfo::GetSnapshotColumnIds ().begin (), IIndexInfo::GetSnapshotColumnIds ().end ());
184
189
185
190
batch = resultSchema->NormalizeBatch (*blobSchema, batch, usageColumnIds).DetachResult ();
186
191
pathBatches.Add (inserted, shardingFilterCommit, batch);
You can’t perform that action at this time.
0 commit comments