aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorssmike <ssmike@ydb.tech>2023-08-05 20:09:41 +0300
committerssmike <ssmike@ydb.tech>2023-08-05 20:36:08 +0300
commit7419afaea7242cb8b8b8e7b5fbb2e9d2d901d4fd (patch)
tree9e7b141bb2bf3fbedbc6d8fc4eb93d94f1e7b6c2
parent09fd1688d71e3837ef009a776464bd4cdbff2dfc (diff)
downloadydb-7419afaea7242cb8b8b8e7b5fbb2e9d2d901d4fd.tar.gz
reenable tests for iterator reads
-rw-r--r--ydb/core/kqp/ut/indexes/kqp_indexes_ut.cpp13
-rw-r--r--ydb/core/kqp/ut/opt/kqp_sort_ut.cpp22
2 files changed, 11 insertions, 24 deletions
diff --git a/ydb/core/kqp/ut/indexes/kqp_indexes_ut.cpp b/ydb/core/kqp/ut/indexes/kqp_indexes_ut.cpp
index 24c55dd7b2..a556a1fcf7 100644
--- a/ydb/core/kqp/ut/indexes/kqp_indexes_ut.cpp
+++ b/ydb/core/kqp/ut/indexes/kqp_indexes_ut.cpp
@@ -1306,13 +1306,10 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
}
}
- Y_UNIT_TEST_TWIN(SecondaryIndexOrderBy, SourceRead) {
+ Y_UNIT_TEST(SecondaryIndexOrderBy) {
auto setting = NKikimrKqp::TKqpSetting();
- NKikimrConfig::TAppConfig appConfig;
- appConfig.MutableTableServiceConfig()->SetEnableKqpDataQuerySourceRead(SourceRead);
auto serverSettings = TKikimrSettings()
- .SetKqpSettings({setting})
- .SetAppConfig(appConfig);
+ .SetKqpSettings({setting});
TKikimrRunner kikimr(serverSettings);
auto db = kikimr.GetTableClient();
@@ -1511,7 +1508,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
query)
.ExtractValueSync();
UNIT_ASSERT_VALUES_EQUAL(result.GetStatus(), EStatus::SUCCESS);
- UNIT_ASSERT_C(result.GetAst().Contains("('\"ItemsLimit\"") || SourceRead, result.GetAst());
+ UNIT_ASSERT_C(result.GetAst().Contains("('\"ItemsLimit\""), result.GetAst());
UNIT_ASSERT_C(!result.GetAst().Contains("'('\"Reverse\")"), result.GetAst());
}
@@ -1537,7 +1534,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
query)
.ExtractValueSync();
UNIT_ASSERT_VALUES_EQUAL(result.GetStatus(), EStatus::SUCCESS);
- UNIT_ASSERT_C(result.GetAst().Contains("('\"ItemsLimit\"") || SourceRead, result.GetAst());
+ UNIT_ASSERT_C(result.GetAst().Contains("('\"ItemsLimit\""), result.GetAst());
UNIT_ASSERT_C(!result.GetAst().Contains("'('\"Reverse\")"), result.GetAst());
}
@@ -1564,7 +1561,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
query)
.ExtractValueSync();
UNIT_ASSERT_VALUES_EQUAL(result.GetStatus(), EStatus::SUCCESS);
- UNIT_ASSERT_C(result.GetAst().Contains("('\"ItemsLimit\"") || SourceRead, result.GetAst());
+ UNIT_ASSERT_C(result.GetAst().Contains("('\"ItemsLimit\""), result.GetAst());
UNIT_ASSERT_C(!result.GetAst().Contains("'('\"Reverse\")"), result.GetAst());
}
diff --git a/ydb/core/kqp/ut/opt/kqp_sort_ut.cpp b/ydb/core/kqp/ut/opt/kqp_sort_ut.cpp
index f0867cd11b..08feede9a6 100644
--- a/ydb/core/kqp/ut/opt/kqp_sort_ut.cpp
+++ b/ydb/core/kqp/ut/opt/kqp_sort_ut.cpp
@@ -237,13 +237,8 @@ Y_UNIT_TEST_SUITE(KqpSort) {
}
}
- Y_UNIT_TEST_TWIN(ReverseRangeLimitOptimized, SourceRead) {
- NKikimrConfig::TAppConfig appConfig;
- appConfig.MutableTableServiceConfig()->SetEnableKqpDataQuerySourceRead(SourceRead);
- auto serverSettings = TKikimrSettings()
- .SetAppConfig(appConfig);
-
- TKikimrRunner kikimr{serverSettings};
+ Y_UNIT_TEST(ReverseRangeLimitOptimized) {
+ TKikimrRunner kikimr;
auto db = kikimr.GetTableClient();
auto session = db.CreateSession().GetValueSync().GetSession();
@@ -281,7 +276,7 @@ Y_UNIT_TEST_SUITE(KqpSort) {
} else {
UNIT_ASSERT(limit.IsDefined());
UNIT_ASSERT(limit.GetMapSafe().contains("Limit"));
- UNIT_ASSERT_C(result.GetAst().Contains("'\"ItemsLimit\"") || SourceRead, result.GetAst());
+ UNIT_ASSERT_C(result.GetAst().Contains("'\"ItemsLimit\""), result.GetAst());
}
}
@@ -453,13 +448,8 @@ Y_UNIT_TEST_SUITE(KqpSort) {
}
}
- Y_UNIT_TEST_TWIN(TopSortExprPk, SourceRead) {
- NKikimrConfig::TAppConfig appConfig;
- appConfig.MutableTableServiceConfig()->SetEnableKqpDataQuerySourceRead(SourceRead);
- auto serverSettings = TKikimrSettings()
- .SetAppConfig(appConfig);
-
- TKikimrRunner kikimr{serverSettings};
+ Y_UNIT_TEST(TopSortExprPk) {
+ TKikimrRunner kikimr;
auto db = kikimr.GetTableClient();
auto session = db.CreateSession().GetValueSync().GetSession();
@@ -479,7 +469,7 @@ Y_UNIT_TEST_SUITE(KqpSort) {
auto result = session.ExplainDataQuery(query).GetValueSync();
result.GetIssues().PrintTo(Cerr);
UNIT_ASSERT_VALUES_EQUAL(result.GetStatus(), EStatus::SUCCESS);
- UNIT_ASSERT_C(result.GetAst().Contains("ItemsLimit") || SourceRead, result.GetAst());
+ UNIT_ASSERT_C(result.GetAst().Contains("ItemsLimit"), result.GetAst());
}
{