1- #include < ydb/public/sdk/cpp/client/ydb_proto/accessor.h>
2-
31#include < ydb/core/kqp/ut/common/kqp_ut_common.h>
42#include < ydb/library/yql/sql/sql.h>
53#include < ydb/library/yql/utils/log/log.h>
4+ #include < ydb/public/sdk/cpp/client/ydb_proto/accessor.h>
65
76#include < util/folder/filelist.h>
87
@@ -96,8 +95,8 @@ int GetInteger(const TValue& value) {
9695 return TValueParser (value).GetInt32 ();
9796}
9897
99- TMaybe<bool > GetFromCache (const TQueryStats& stats) {
100- const auto & proto = NYdb:: TProtoAccessor::GetProto (stats);
98+ TMaybe<bool > GetFromCacheStat (const TQueryStats& stats) {
99+ const auto & proto = TProtoAccessor::GetProto (stats);
101100 if (!proto.Hascompilation ()) {
102101 return Nothing ();
103102 }
@@ -106,9 +105,9 @@ TMaybe<bool> GetFromCache(const TQueryStats& stats) {
106105
107106void AssertFromCache (const TMaybe<TQueryStats>& stats, bool expectedValue) {
108107 UNIT_ASSERT (stats.Defined ());
109- const auto fromCache = GetFromCache (*stats);
110- UNIT_ASSERT_C (fromCache .Defined (), stats->ToString ());
111- UNIT_ASSERT_VALUES_EQUAL_C (*fromCache , expectedValue, stats->ToString ());
108+ const auto isFromCache = GetFromCacheStat (*stats);
109+ UNIT_ASSERT_C (isFromCache .Defined (), stats->ToString ());
110+ UNIT_ASSERT_VALUES_EQUAL_C (*isFromCache , expectedValue, stats->ToString ());
112111}
113112
114113void CompareResults (const TDataQueryResult& first, const TDataQueryResult& second) {
0 commit comments