Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shnikd committed Jan 19, 2024
1 parent dba1ef6 commit 399be5e
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions ydb/core/kqp/ut/pg/kqp_pg_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2210,19 +2210,6 @@ Y_UNIT_TEST_SUITE(KqpPg) {
UNIT_ASSERT_VALUES_EQUAL(stats.compilation().from_cache(), false);
}

{
const auto query = Q_(R"(
--!syntax_pg
SELECT * FROM PgTemp;
)");

auto result = session.ExecuteQuery(
query, NYdb::NQuery::TTxControl::BeginTx().CommitTx(), settings).ExtractValueSync();
UNIT_ASSERT_C(result.IsSuccess(), result.GetIssues().ToString());
auto stats = NYdb::TProtoAccessor::GetProto(*result.GetStats());
UNIT_ASSERT_VALUES_EQUAL(stats.compilation().from_cache(), true);
}

{
const auto query = Q_(R"(
--!syntax_pg
Expand All @@ -2236,19 +2223,6 @@ Y_UNIT_TEST_SUITE(KqpPg) {
UNIT_ASSERT_VALUES_EQUAL(stats.compilation().from_cache(), false);
}

{
const auto query = Q_(R"(
--!syntax_pg
SELECT * FROM SimpleTable;
)");

auto result = session.ExecuteQuery(
query, NYdb::NQuery::TTxControl::BeginTx().CommitTx(), settings).ExtractValueSync();
UNIT_ASSERT_C(result.IsSuccess(), result.GetIssues().ToString());
auto stats = NYdb::TProtoAccessor::GetProto(*result.GetStats());
UNIT_ASSERT_VALUES_EQUAL(stats.compilation().from_cache(), true);
}

{
const auto query = Q_(R"(
--!syntax_pg
Expand Down Expand Up @@ -2341,7 +2315,7 @@ Y_UNIT_TEST_SUITE(KqpPg) {
session.ExecuteQuery(query, NYdb::NQuery::TTxControl::NoTx(), settings).ExtractValueSync();
UNIT_ASSERT_C(result.IsSuccess(), result.GetIssues().ToString());
auto stats = NYdb::TProtoAccessor::GetProto(*result.GetStats());
UNIT_ASSERT_VALUES_EQUAL(stats.compilation().from_cache(), true);
UNIT_ASSERT_VALUES_EQUAL(stats.compilation().from_cache(), false);
}

bool allDoneOk = true;
Expand Down

0 comments on commit 399be5e

Please sign in to comment.