Skip to content

Commit b5b46b2

Browse files
committed
NGeneric::TSource -> Generic::TSource
1 parent 3fe6dba commit b5b46b2

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

ydb/library/yql/providers/generic/actors/yql_generic_read_actor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace NYql::NDq {
104104
TCollectStatsLevel statsLevel,
105105
NConnector::IClient::TPtr client,
106106
TGenericTokenProvider::TPtr tokenProvider,
107-
NGeneric::TSource&& source,
107+
Generic::TSource&& source,
108108
const NActors::TActorId& computeActorId,
109109
const NKikimr::NMiniKQL::THolderFactory& holderFactory)
110110
: InputIndex_(inputIndex)
@@ -499,12 +499,12 @@ namespace NYql::NDq {
499499

500500
NKikimr::NMiniKQL::TPlainContainerCache ArrowRowContainerCache_;
501501
const NKikimr::NMiniKQL::THolderFactory& HolderFactory_;
502-
NGeneric::TSource Source_;
502+
Generic::TSource Source_;
503503
};
504504

505505
std::pair<NYql::NDq::IDqComputeActorAsyncInput*, IActor*>
506506
CreateGenericReadActor(NConnector::IClient::TPtr genericClient,
507-
NGeneric::TSource&& source,
507+
Generic::TSource&& source,
508508
ui64 inputIndex,
509509
TCollectStatsLevel statsLevel,
510510
const THashMap<TString, TString>& /*secureParams*/,

ydb/library/yql/providers/generic/actors/yql_generic_read_actor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace NYql::NDq {
1010

1111
std::pair<NYql::NDq::IDqComputeActorAsyncInput*, NActors::IActor*>
12-
CreateGenericReadActor(NConnector::IClient::TPtr genericClient, NGeneric::TSource&& params, ui64 inputIndex,
12+
CreateGenericReadActor(NConnector::IClient::TPtr genericClient, Generic::TSource&& params, ui64 inputIndex,
1313
TCollectStatsLevel statsLevel, const THashMap<TString, TString>& secureParams,
1414
const THashMap<TString, TString>& taskParams, const NActors::TActorId& computeActorId,
1515
ISecuredServiceAccountCredentialsFactory::TPtr credentialsFactory,

ydb/library/yql/providers/generic/actors/yql_generic_source_factory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ namespace NYql::NDq {
1010
ISecuredServiceAccountCredentialsFactory::TPtr credentialsFactory,
1111
NYql::NConnector::IClient::TPtr genericClient) {
1212
auto genericFactory = [credentialsFactory, genericClient](
13-
NGeneric::TSource&& settings,
13+
Generic::TSource&& settings,
1414
IDqAsyncIoFactory::TSourceArguments&& args) {
1515
return CreateGenericReadActor(genericClient, std::move(settings), args.InputIndex, args.StatsLevel,
1616
args.SecureParams, args.TaskParams, args.ComputeActorId, credentialsFactory, args.HolderFactory);
1717
};
1818

1919
for (auto& sourceName : {"ClickHouseGeneric", "PostgreSqlGeneric", "YdbGeneric"}) {
20-
factory.RegisterSource<NGeneric::TSource>(sourceName, genericFactory);
20+
factory.RegisterSource<Generic::TSource>(sourceName, genericFactory);
2121
}
2222
}
2323

ydb/library/yql/providers/generic/actors/yql_generic_token_provider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace NYql::NDq {
66
TGenericTokenProvider::TGenericTokenProvider(
7-
const NYql::NGeneric::TSource& source, const ISecuredServiceAccountCredentialsFactory::TPtr& credentialsFactory)
7+
const NYql::Generic::TSource& source, const ISecuredServiceAccountCredentialsFactory::TPtr& credentialsFactory)
88
: Source_(source)
99
, StaticIAMToken_(source.GetToken())
1010
, CredentialsProvider_(nullptr)
@@ -60,7 +60,7 @@ namespace NYql::NDq {
6060
}
6161

6262
TGenericTokenProvider::TPtr
63-
CreateGenericTokenProvider(const NYql::NGeneric::TSource& source,
63+
CreateGenericTokenProvider(const NYql::Generic::TSource& source,
6464
const ISecuredServiceAccountCredentialsFactory::TPtr& credentialsFactory) {
6565
return std::make_unique<TGenericTokenProvider>(source, credentialsFactory);
6666
}

ydb/library/yql/providers/generic/actors/yql_generic_token_provider.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ namespace NYql::NDq {
1313
public:
1414
using TPtr = std::unique_ptr<TGenericTokenProvider>;
1515

16-
TGenericTokenProvider(const NYql::NGeneric::TSource& source,
16+
TGenericTokenProvider(const NYql::Generic::TSource& source,
1717
const ISecuredServiceAccountCredentialsFactory::TPtr& credentialsFactory);
1818

1919
void MaybeFillToken(NConnector::NApi::TDataSourceInstance& dsi) const;
2020

2121
private:
22-
NYql::NGeneric::TSource Source_;
22+
NYql::Generic::TSource Source_;
2323
TString StaticIAMToken_;
2424
NYdb::TCredentialsProviderPtr CredentialsProvider_;
2525
};
2626

2727
TGenericTokenProvider::TPtr
28-
CreateGenericTokenProvider(const NYql::NGeneric::TSource& source,
28+
CreateGenericTokenProvider(const NYql::Generic::TSource& source,
2929
const ISecuredServiceAccountCredentialsFactory::TPtr& credentialsFactory);
3030
} //namespace NYql::NDq

ydb/library/yql/providers/generic/proto/source.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22

33
option cc_enable_arenas = true;
44

5-
package NYql.NGeneric;
5+
package NYql.Generic;
66

77
import "ydb/library/yql/providers/generic/connector/api/service/protos/connector.proto";
88
import "ydb/library/yql/providers/generic/connector/api/common/data_source.proto";

ydb/library/yql/providers/generic/provider/ut/pushdown/pushdown_ut.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ struct TFakeGenericClient: public NConnector::IClient {
144144

145145
class TBuildDqSourceSettingsTransformer: public TOptimizeTransformerBase {
146146
public:
147-
explicit TBuildDqSourceSettingsTransformer(TTypeAnnotationContext* types, NGeneric::TSource* dqSourceSettings, bool* dqSourceSettingsWereBuilt)
147+
explicit TBuildDqSourceSettingsTransformer(TTypeAnnotationContext* types, Generic::TSource* dqSourceSettings, bool* dqSourceSettingsWereBuilt)
148148
: TOptimizeTransformerBase(types, NLog::EComponent::ProviderGeneric, {})
149149
, DqSourceSettings_(dqSourceSettings)
150150
, DqSourceSettingsWereBuilt_(dqSourceSettingsWereBuilt)
@@ -182,13 +182,13 @@ class TBuildDqSourceSettingsTransformer: public TOptimizeTransformerBase {
182182
TString sourceType;
183183
dqIntegration->FillSourceSettings(*dqSourceNode, settings, sourceType, 1);
184184
UNIT_ASSERT_STRINGS_EQUAL(sourceType, "PostgreSqlGeneric");
185-
UNIT_ASSERT(settings.Is<NGeneric::TSource>());
185+
UNIT_ASSERT(settings.Is<Generic::TSource>());
186186
settings.UnpackTo(DqSourceSettings_);
187187
*DqSourceSettingsWereBuilt_ = true;
188188
}
189189

190190
private:
191-
NGeneric::TSource* DqSourceSettings_;
191+
Generic::TSource* DqSourceSettings_;
192192
bool* DqSourceSettingsWereBuilt_;
193193
};
194194

@@ -207,7 +207,7 @@ struct TPushdownFixture: public NUnitTest::TBaseFixture {
207207

208208
TAutoPtr<IGraphTransformer> Transformer;
209209
TAutoPtr<IGraphTransformer> BuildDqSourceSettingsTransformer;
210-
NGeneric::TSource DqSourceSettings;
210+
Generic::TSource DqSourceSettings;
211211
bool DqSourceSettingsWereBuilt = false;
212212

213213
TExprNode::TPtr InitialExprRoot;

ydb/library/yql/providers/generic/provider/yql_generic_dq_integration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace NYql {
102102
const auto& clusterConfig = State_->Configuration->ClusterNamesToClusterConfigs[clusterName];
103103
const auto& endpoint = clusterConfig.endpoint();
104104

105-
NGeneric::TSource source;
105+
Generic::TSource source;
106106

107107
// for backward compability full path can be used (cluster_name.`db_name.table`)
108108
// TODO: simplify during https://st.yandex-team.ru/YQ-2494

0 commit comments

Comments
 (0)