diff options
author | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-11-23 19:24:57 +0300 |
---|---|---|
committer | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-11-23 20:35:06 +0300 |
commit | 1d2cbee7308557abc8872c34fa4020b6eee54b0c (patch) | |
tree | ab00762b4c31afed1aefdc91fe51cff235b3f2ab | |
parent | ca304266d01ff098a5bf8fac2f3d14fa7a169f38 (diff) | |
download | ydb-1d2cbee7308557abc8872c34fa4020b6eee54b0c.tar.gz |
KIKIMR-20073: fix timeout for sanitizers
-rw-r--r-- | ydb/core/kqp/ut/olap/kqp_olap_ut.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/ydb/core/kqp/ut/olap/kqp_olap_ut.cpp b/ydb/core/kqp/ut/olap/kqp_olap_ut.cpp index fb6b837eaf..9986a39396 100644 --- a/ydb/core/kqp/ut/olap/kqp_olap_ut.cpp +++ b/ydb/core/kqp/ut/olap/kqp_olap_ut.cpp @@ -2171,6 +2171,7 @@ Y_UNIT_TEST_SUITE(KqpOlap) { std::string ExpectedReadNodeType; TExpectedLimitChecker LimitChecker; TExpectedRecordChecker RecordChecker; + bool UseLlvm = true; public: void FillExpectedAggregationGroupByPlanOptions() { #if SSA_RUNTIME_VERSION >= 2U @@ -2186,6 +2187,9 @@ Y_UNIT_TEST_SUITE(KqpOlap) { if (!Pushdown) { queryFixed << "PRAGMA Kikimr.OptEnableOlapPushdown = \"false\";" << Endl; } + if (!UseLlvm) { + queryFixed << "PRAGMA Kikimr.UseLlvm = \"false\";" << Endl; + } queryFixed << "PRAGMA Kikimr.OptUseFinalizeByKey;" << Endl; queryFixed << Query << Endl; @@ -2217,6 +2221,10 @@ Y_UNIT_TEST_SUITE(KqpOlap) { Query = value; return *this; } + TAggregationTestCase& SetUseLlvm(const bool value) { + UseLlvm = value; + return *this; + } const TString& GetExpectedReply() const { return ExpectedReply; } @@ -2348,7 +2356,7 @@ Y_UNIT_TEST_SUITE(KqpOlap) { ui32 numIterations = 10; - const ui32 iterationPackSize = 2000; + const ui32 iterationPackSize = NSan::PlainOrUnderSanitizer(2000, 20); for (ui64 i = 0; i < numIterations; ++i) { WriteTestDataForClickBench(kikimr, "/Root/benchTable", 0, 1000000 + i * 1000000, iterationPackSize); } @@ -2388,7 +2396,7 @@ Y_UNIT_TEST_SUITE(KqpOlap) { // write data ui32 numIterations = 10; - const ui32 iterationPackSize = 2000; + const ui32 iterationPackSize = NSan::PlainOrUnderSanitizer(2000, 20); for (ui64 i = 0; i < numIterations; ++i) { TClickHelper(*server).SendDataViaActorSystem("/Root/benchTable", 0, 1000000 + i * 1000000, iterationPackSize); @@ -3277,7 +3285,6 @@ Y_UNIT_TEST_SUITE(KqpOlap) { // Should be fixed in https://st.yandex-team.ru/KIKIMR-17009 // .SetExpectedReadNodeType("TableFullScan"); .SetExpectedReadNodeType("Aggregate-TableFullScan"); - ; q7.FillExpectedAggregationGroupByPlanOptions(); TAggregationTestCase q9; @@ -3356,7 +3363,12 @@ Y_UNIT_TEST_SUITE(KqpOlap) { .SetExpectedReadNodeType("Aggregate-Filter-TableFullScan"); q39.FillExpectedAggregationGroupByPlanOptions(); - TestClickBench({ q7, q9, q12, q14, q22, q39 }); + std::vector<TAggregationTestCase> cases = {q7, q9, q12, q14, q22, q39}; + for (auto&& c : cases) { + c.SetUseLlvm(NSan::PlainOrUnderSanitizer(true, false)); + } + + TestClickBench(cases); } Y_UNIT_TEST(StatsSysView) { |