Skip to content

Commit 0561031

Browse files
authored
Merge 71c4c9e into ee06b69
2 parents ee06b69 + 71c4c9e commit 0561031

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

ydb/core/tx/columnshard/ut_schema/ut_columnshard_schema.cpp

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,4 +1450,33 @@ Y_UNIT_TEST_SUITE(TColumnShardTestSchema) {
14501450
}
14511451
}
14521452

1453+
Y_UNIT_TEST_SUITE(PlanStep) {
1454+
Y_UNIT_TEST(CreateTable) {
1455+
ui64 tableId = 1;
1456+
1457+
TTestBasicRuntime runtime;
1458+
TTester::Setup(runtime);
1459+
auto csDefaultControllerGuard = NKikimr::NYDBTest::TControllers::RegisterCSControllerGuard<TDefaultTestsController>();
1460+
1461+
using namespace NTxUT;
1462+
CreateTestBootstrapper(runtime, CreateTestTabletInfo(TTestTxConfig::TxTablet0, TTabletTypes::ColumnShard), &CreateColumnShard);
1463+
1464+
TDispatchOptions options;
1465+
options.FinalEvents.push_back(TDispatchOptions::TFinalEventCondition(TEvTablet::EvBoot));
1466+
runtime.DispatchEvents(options);
1467+
1468+
TActorId sender = runtime.AllocateEdgeActor();
1469+
1470+
auto schema = TTestSchema::YdbSchema(NArrow::NTest::TTestColumn("k0", TTypeInfo(NTypeIds::Timestamp)));
1471+
auto pk = NArrow::NTest::TTestColumn::CropSchema(schema, 4);
1472+
1473+
ui64 planStep = 1000;
1474+
ui64 txId = 100;
1475+
ui64 generation = 0;
1476+
1477+
auto txBody = TTestSchema::CreateTableTxBody(tableId++, schema, pk, {}, ++generation);
1478+
SetupSchema(runtime, sender, txBody, NOlap::TSnapshot(planStep++, txId++));
1479+
}
1480+
}
1481+
14531482
}

0 commit comments

Comments
 (0)