|
@@ -1033,7 +1033,8 @@ public:
|
|
|
std::optional<TKqpFederatedQuerySetup> federatedQuerySetup, const TIntrusiveConstPtr<NACLib::TUserToken>& userToken,
|
|
|
const NKikimr::NMiniKQL::IFunctionRegistry* funcRegistry, bool keepConfigChanges, bool isInternalCall,
|
|
|
TKqpTempTablesState::TConstPtr tempTablesState = nullptr, NActors::TActorSystem* actorSystem = nullptr,
|
|
|
- NYql::TExprContext* ctx = nullptr, const NKikimrConfig::TQueryServiceConfig& queryServiceConfig = NKikimrConfig::TQueryServiceConfig())
|
|
|
+ NYql::TExprContext* ctx = nullptr, const NKikimrConfig::TQueryServiceConfig& queryServiceConfig = NKikimrConfig::TQueryServiceConfig(),
|
|
|
+ const TIntrusivePtr<TUserRequestContext>& userRequestContext = nullptr)
|
|
|
: Gateway(gateway)
|
|
|
, Cluster(cluster)
|
|
|
, GUCSettings(gUCSettings)
|
|
@@ -1044,7 +1045,7 @@ public:
|
|
|
, KeepConfigChanges(keepConfigChanges)
|
|
|
, IsInternalCall(isInternalCall)
|
|
|
, FederatedQuerySetup(federatedQuerySetup)
|
|
|
- , SessionCtx(new TKikimrSessionContext(funcRegistry, config, TAppData::TimeProvider, TAppData::RandomProvider, userToken))
|
|
|
+ , SessionCtx(new TKikimrSessionContext(funcRegistry, config, TAppData::TimeProvider, TAppData::RandomProvider, userToken, nullptr, userRequestContext))
|
|
|
, Config(config)
|
|
|
, TypesCtx(MakeIntrusive<TTypeAnnotationContext>())
|
|
|
, PlanBuilder(CreatePlanBuilder(*TypesCtx))
|
|
@@ -1958,10 +1959,10 @@ TIntrusivePtr<IKqpHost> CreateKqpHost(TIntrusivePtr<IKqpGateway> gateway, const
|
|
|
const TString& database, TKikimrConfiguration::TPtr config, IModuleResolver::TPtr moduleResolver,
|
|
|
std::optional<TKqpFederatedQuerySetup> federatedQuerySetup, const TIntrusiveConstPtr<NACLib::TUserToken>& userToken, const TGUCSettings::TPtr& gUCSettings,
|
|
|
const NKikimrConfig::TQueryServiceConfig& queryServiceConfig, const TMaybe<TString>& applicationName, const NKikimr::NMiniKQL::IFunctionRegistry* funcRegistry, bool keepConfigChanges,
|
|
|
- bool isInternalCall, TKqpTempTablesState::TConstPtr tempTablesState, NActors::TActorSystem* actorSystem, NYql::TExprContext* ctx)
|
|
|
+ bool isInternalCall, TKqpTempTablesState::TConstPtr tempTablesState, NActors::TActorSystem* actorSystem, NYql::TExprContext* ctx, const TIntrusivePtr<TUserRequestContext>& userRequestContext)
|
|
|
{
|
|
|
return MakeIntrusive<TKqpHost>(gateway, cluster, database, gUCSettings, applicationName, config, moduleResolver, federatedQuerySetup, userToken, funcRegistry,
|
|
|
- keepConfigChanges, isInternalCall, std::move(tempTablesState), actorSystem, ctx, queryServiceConfig);
|
|
|
+ keepConfigChanges, isInternalCall, std::move(tempTablesState), actorSystem, ctx, queryServiceConfig, userRequestContext);
|
|
|
}
|
|
|
|
|
|
} // namespace NKqp
|