@@ -1200,9 +1200,38 @@ Y_UNIT_TEST_SUITE(TCdcStreamTests) {
12001200 }
12011201 }
12021202
1203+ Y_UNIT_TEST (StreamOnIndexTableNegative) {
1204+ TTestBasicRuntime runtime;
1205+ TTestEnv env (runtime, TTestEnvOptions ().EnableChangefeedsOnIndexTables (false ));
1206+ ui64 txId = 100 ;
1207+
1208+ TestCreateIndexedTable (runtime, ++txId, " /MyRoot" , R"(
1209+ TableDescription {
1210+ Name: "Table"
1211+ Columns { Name: "key" Type: "Uint64" }
1212+ Columns { Name: "indexed" Type: "Uint64" }
1213+ KeyColumnNames: ["key"]
1214+ }
1215+ IndexDescription {
1216+ Name: "Index"
1217+ KeyColumnNames: ["indexed"]
1218+ }
1219+ )" );
1220+ env.TestWaitNotification (runtime, txId);
1221+
1222+ TestCreateCdcStream (runtime, ++txId, " /MyRoot/Table/Index" , R"(
1223+ TableName: "indexImplTable"
1224+ StreamDescription {
1225+ Name: "Stream"
1226+ Mode: ECdcStreamModeKeysOnly
1227+ Format: ECdcStreamFormatProto
1228+ }
1229+ )" , {NKikimrScheme::StatusPreconditionFailed});
1230+ }
1231+
12031232 Y_UNIT_TEST (StreamOnIndexTable) {
12041233 TTestBasicRuntime runtime;
1205- TTestEnv env (runtime, TTestEnvOptions ().EnableProtoSourceIdInfo (true ));
1234+ TTestEnv env (runtime, TTestEnvOptions ().EnableChangefeedsOnIndexTables (true ));
12061235 ui64 txId = 100 ;
12071236
12081237 TestCreateIndexedTable (runtime, ++txId, " /MyRoot" , R"(
@@ -1298,7 +1327,7 @@ Y_UNIT_TEST_SUITE(TCdcStreamTests) {
12981327
12991328 Y_UNIT_TEST (StreamOnBuildingIndexTable) {
13001329 TTestBasicRuntime runtime;
1301- TTestEnv env (runtime, TTestEnvOptions ().EnableProtoSourceIdInfo (true ));
1330+ TTestEnv env (runtime, TTestEnvOptions ().EnableChangefeedsOnIndexTables (true ));
13021331 ui64 txId = 100 ;
13031332
13041333 TestCreateTable (runtime, ++txId, " /MyRoot" , R"(
@@ -1350,7 +1379,7 @@ Y_UNIT_TEST_SUITE(TCdcStreamTests) {
13501379
13511380 Y_UNIT_TEST (DropIndexWithStream) {
13521381 TTestBasicRuntime runtime;
1353- TTestEnv env (runtime, TTestEnvOptions ().EnableProtoSourceIdInfo (true ));
1382+ TTestEnv env (runtime, TTestEnvOptions ().EnableChangefeedsOnIndexTables (true ));
13541383 ui64 txId = 100 ;
13551384
13561385 TestCreateIndexedTable (runtime, ++txId, " /MyRoot" , R"(
@@ -1393,7 +1422,7 @@ Y_UNIT_TEST_SUITE(TCdcStreamTests) {
13931422
13941423 Y_UNIT_TEST (DropTableWithIndexWithStream) {
13951424 TTestBasicRuntime runtime;
1396- TTestEnv env (runtime, TTestEnvOptions ().EnableProtoSourceIdInfo (true ));
1425+ TTestEnv env (runtime, TTestEnvOptions ().EnableChangefeedsOnIndexTables (true ));
13971426 ui64 txId = 100 ;
13981427
13991428 TestCreateIndexedTable (runtime, ++txId, " /MyRoot" , R"(
0 commit comments