aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorivanmorozov333 <111685085+ivanmorozov333@users.noreply.github.com>2024-01-28 17:45:31 +0300
committerGitHub <noreply@github.com>2024-01-28 17:45:31 +0300
commit5450e7b6cb4d07b476fdfa66a26b97546a16de6e (patch)
tree3c56bfcdcc1071dc4ddd3f262d561bef22163394
parent62f8e34758ea40a8f7fecd45d76ba7c622c49ebf (diff)
downloadydb-5450e7b6cb4d07b476fdfa66a26b97546a16de6e.tar.gz
fix test for indexes (#1367)
-rw-r--r--ydb/core/kqp/ut/olap/kqp_olap_ut.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/ydb/core/kqp/ut/olap/kqp_olap_ut.cpp b/ydb/core/kqp/ut/olap/kqp_olap_ut.cpp
index c7fa1dae57..0241e11c90 100644
--- a/ydb/core/kqp/ut/olap/kqp_olap_ut.cpp
+++ b/ydb/core/kqp/ut/olap/kqp_olap_ut.cpp
@@ -1327,8 +1327,7 @@ Y_UNIT_TEST_SUITE(KqpOlap) {
Cout << csController->GetIndexesSkippingOnSelect().Val() << " / " << csController->GetIndexesApprovedOnSelect().Val() << Endl;
CompareYson(result, R"([[0u;]])");
AFL_VERIFY(csController->GetIndexesSkippedNoData().Val() == 0);
- AFL_VERIFY(csController->GetIndexesSkippingOnSelect().Val() == 17);
- AFL_VERIFY(csController->GetIndexesApprovedOnSelect().Val() == 4);
+ AFL_VERIFY(csController->GetIndexesApprovedOnSelect().Val() < csController->GetIndexesSkippingOnSelect().Val() * 0.3);
}
ui32 requestsCount = 100;
for (ui32 i = 0; i < requestsCount; ++i) {
@@ -1353,7 +1352,7 @@ Y_UNIT_TEST_SUITE(KqpOlap) {
CompareYson(result, R"([[1u;]])");
}
- AFL_VERIFY(csController->GetIndexesApprovedOnSelect().Val() / csController->GetIndexesSkippingOnSelect().Val() < 0.15);
+ AFL_VERIFY(csController->GetIndexesApprovedOnSelect().Val() < 0.15 * csController->GetIndexesSkippingOnSelect().Val());
}