@@ -5178,6 +5178,37 @@ Y_UNIT_TEST_SUITE(KqpScheme) {
5178
5178
5179
5179
Y_UNIT_TEST_SUITE (KqpOlapScheme) {
5180
5180
5181
+ Y_UNIT_TEST (DropTable) {
5182
+ TKikimrSettings runnerSettings;
5183
+ runnerSettings.WithSampleTables = false ;
5184
+ TTestHelper testHelper (runnerSettings);
5185
+
5186
+ TVector<TTestHelper::TColumnSchema> schema = {
5187
+ TTestHelper::TColumnSchema ().SetName (" id" ).SetType (NScheme::NTypeIds::Int32).SetNullable (false ),
5188
+ TTestHelper::TColumnSchema ().SetName (" id_second" ).SetType (NScheme::NTypeIds::Int32).SetNullable (false ),
5189
+ TTestHelper::TColumnSchema ().SetName (" level" ).SetType (NScheme::NTypeIds::Int32),
5190
+ TTestHelper::TColumnSchema ().SetName (" created_at" ).SetType (NScheme::NTypeIds::Timestamp).SetNullable (false )
5191
+ };
5192
+
5193
+ TTestHelper::TColumnTable testTable;
5194
+ testTable
5195
+ .SetName (" /Root/ColumnTableTest" )
5196
+ .SetPrimaryKey ({ " id" , " id_second" })
5197
+ .SetSharding ({ " id" })
5198
+ .SetMinPartitionsCount (16 )
5199
+ .SetSchema (schema);
5200
+ testHelper.CreateTable (testTable);
5201
+ auto sender = testHelper.GetRuntime ().AllocateEdgeActor ();
5202
+ auto tabletIds = GetColumnTableShards (&testHelper.GetKikimr ().GetTestServer (), sender, " /Root/ColumnTableTest" );
5203
+ for (auto tablet: tabletIds) {
5204
+ UNIT_ASSERT_C (testHelper.GetKikimr ().GetTestClient ().TabletExistsInHive (&testHelper.GetRuntime (), tablet), ToString (tablet) + " not alive" );
5205
+ }
5206
+ testHelper.DropTable (" /Root/ColumnTableTest" );
5207
+ for (auto tablet: tabletIds) {
5208
+ UNIT_ASSERT_C (!testHelper.GetKikimr ().GetTestClient ().TabletExistsInHive (&testHelper.GetRuntime (), tablet), ToString (tablet) + " is alive" );
5209
+ }
5210
+ }
5211
+
5181
5212
Y_UNIT_TEST (AddColumnLongPk) {
5182
5213
TKikimrSettings runnerSettings;
5183
5214
runnerSettings.WithSampleTables = false ;
0 commit comments