@@ -1897,7 +1897,7 @@ TTestActorRuntimeBase::TEventObserverHolder ReplaceEvProposeTransactionWithEvWri
1897
1897
1898
1898
// Construct new EvWrite
1899
1899
TVector<TCell> cells;
1900
- ui64 tableId = 0 ;
1900
+ TTableId tableId;
1901
1901
ui16 colCount = 0 ;
1902
1902
for (const auto & task : tx.GetKqpTransaction ().GetTasks ()) {
1903
1903
NKikimrTxDataShard::TKqpTransaction::TDataTaskMeta meta;
@@ -1906,8 +1906,9 @@ TTestActorRuntimeBase::TEventObserverHolder ReplaceEvProposeTransactionWithEvWri
1906
1906
continue ;
1907
1907
1908
1908
const auto & tableMeta = meta.GetTable ();
1909
- Y_VERIFY_S (tableId == 0 || tableId == tableMeta.GetTableId ().GetTableId (), " Only writes to one table is supported now" );
1910
- tableId = tableMeta.GetTableId ().GetTableId ();
1909
+ TTableId tableIdProto (tableMeta.GetTableId ().GetOwnerId (), tableMeta.GetTableId ().GetTableId (), tableMeta.GetSchemaVersion ());
1910
+ Y_VERIFY_S (tableId == TTableId{} || tableId == tableIdProto, " Only writes to one table is supported now" );
1911
+ tableId = tableIdProto;
1911
1912
const auto & writes = meta.GetWrites ();
1912
1913
Y_VERIFY_S (colCount == 0 || colCount == writes.GetColumns ().size (), " Only equal column count is supported now." );
1913
1914
colCount = writes.GetColumns ().size ();
@@ -1936,7 +1937,7 @@ TTestActorRuntimeBase::TEventObserverHolder ReplaceEvProposeTransactionWithEvWri
1936
1937
1937
1938
auto evWrite = std::make_unique<NKikimr::NEvents::TDataEvents::TEvWrite>(txId, txMode);
1938
1939
ui64 payloadIndex = NKikimr::NEvWrite::TPayloadHelper<NKikimr::NEvents::TDataEvents::TEvWrite>(*evWrite).AddDataToPayload (std::move (blobData));
1939
- evWrite->AddOperation (NKikimrDataEvents::TEvWrite::TOperation::OPERATION_UPSERT, tableId, 1 , columnIds, payloadIndex, NKikimrDataEvents::FORMAT_CELLVEC);
1940
+ evWrite->AddOperation (NKikimrDataEvents::TEvWrite::TOperation::OPERATION_UPSERT, tableId, columnIds, payloadIndex, NKikimrDataEvents::FORMAT_CELLVEC);
1940
1941
1941
1942
// Replace event
1942
1943
auto handle = new IEventHandle (event->Recipient , event->Sender , evWrite.release (), 0 , event->Cookie );
0 commit comments