@@ -3496,9 +3496,10 @@ Y_UNIT_TEST_SUITE(KqpQueryService) {
3496
3496
}
3497
3497
}
3498
3498
3499
- Y_UNIT_TEST (SeveralCTAS) {
3499
+ Y_UNIT_TEST_TWIN (SeveralCTAS, UseSink ) {
3500
3500
NKikimrConfig::TAppConfig appConfig;
3501
3501
appConfig.MutableTableServiceConfig ()->SetEnableAstCache (true );
3502
+ appConfig.MutableTableServiceConfig ()->SetEnableOltpSink (UseSink);
3502
3503
appConfig.MutableTableServiceConfig ()->SetEnableOlapSink (true );
3503
3504
appConfig.MutableTableServiceConfig ()->SetEnableCreateTableAs (true );
3504
3505
appConfig.MutableTableServiceConfig ()->SetEnablePerStatementQueryExecution (true );
@@ -3523,19 +3524,12 @@ Y_UNIT_TEST_SUITE(KqpQueryService) {
3523
3524
CREATE TABLE Table3 (
3524
3525
PRIMARY KEY (Key)
3525
3526
) AS SELECT * FROM Table2 UNION ALL SELECT * FROM Table1;
3526
- SELECT * FROM Table1 ORDER BY Key;
3527
- SELECT * FROM Table2 ORDER BY Key;
3528
- SELECT * FROM Table3 ORDER BY Key;
3529
3527
)" , TTxControl::NoTx (), TExecuteQuerySettings ()).ExtractValueSync ();
3530
3528
UNIT_ASSERT_VALUES_EQUAL_C (result.GetStatus (), EStatus::SUCCESS, result.GetIssues ().ToString ());
3531
- UNIT_ASSERT_VALUES_EQUAL (result.GetResultSets ().size (), 3 );
3532
- // Results are empty. Snapshot was taken before tables were created, so we don't see changes after snapshot.
3533
- // This will be fixed in future, for example, by implicit commit before/after each ddl statement.
3534
- CompareYson (R"( [])" , FormatResultSetYson (result.GetResultSet (0 )));
3535
- CompareYson (R"( [])" , FormatResultSetYson (result.GetResultSet (1 )));
3536
- CompareYson (R"( [])" , FormatResultSetYson (result.GetResultSet (2 )));
3529
+ }
3537
3530
3538
- result = db.ExecuteQuery (R"(
3531
+ {
3532
+ auto result = db.ExecuteQuery (R"(
3539
3533
SELECT * FROM Table1 ORDER BY Key;
3540
3534
SELECT * FROM Table2 ORDER BY Key;
3541
3535
SELECT * FROM Table3 ORDER BY Key;
0 commit comments