Skip to content

Commit

Permalink
fix ut build
Browse files Browse the repository at this point in the history
  • Loading branch information
uzhastik committed Sep 24, 2024
1 parent 5f77b4c commit 26e9ff6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ydb/core/kqp/ut/join/kqp_join_order_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,26 @@ Y_UNIT_TEST_SUITE(KqpJoinOrder) {
TChainTester(65).Test();
}

TString ExecuteJoinOrderTestDataQueryWithStats(const TString& queryPath, const TString& statsPath, bool useStreamLookupJoin, bool useColumnStore) {
auto kikimr = GetKikimrWithJoinSettings(useStreamLookupJoin, GetStatic(statsPath));
auto db = kikimr.GetTableClient();
auto session = db.CreateSession().GetValueSync().GetSession();

CreateSampleTable(session, useColumnStore);

/* join with parameters */
{
const TString query = GetStatic(queryPath);

auto execRes = db.StreamExecuteScanQuery(query, TStreamExecScanQuerySettings().Explain(true)).ExtractValueSync();
execRes.GetIssues().PrintTo(Cerr);
UNIT_ASSERT_VALUES_EQUAL(execRes.GetStatus(), EStatus::SUCCESS);
auto plan = CollectStreamResult(execRes).PlanJson;
PrintPlan(plan.GetRef());
return plan.GetRef();
}
}

void CheckJoinCardinality(const TString& queryPath, const TString& statsPath, const TString& joinKind, double card, bool useStreamLookupJoin, bool useColumnStore) {
auto kikimr = GetKikimrWithJoinSettings(useStreamLookupJoin, GetStatic(statsPath));
auto db = kikimr.GetTableClient();
Expand Down

0 comments on commit 26e9ff6

Please sign in to comment.