Skip to content

Commit d8e009d

Browse files
authored
Merge 2be0cca into 275fd42
2 parents 275fd42 + 2be0cca commit d8e009d

File tree

14 files changed

+16
-35
lines changed

14 files changed

+16
-35
lines changed

ydb/core/kqp/compute_actor/kqp_compute_actor.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,10 @@ using namespace NYql::NDqProto;
127127

128128
IActor* CreateKqpScanComputeActor(const TActorId& executerId, ui64 txId,
129129
TDqTask* task, IDqAsyncIoFactory::TPtr asyncIoFactory,
130-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
131130
const NYql::NDq::TComputeRuntimeSettings& settings, const TComputeMemoryLimits& memoryLimits, NWilson::TTraceId traceId,
132131
TIntrusivePtr<NActors::TProtoArenaHolder> arena) {
133132
return new NScanPrivate::TKqpScanComputeActor(executerId, txId, task, std::move(asyncIoFactory),
134-
functionRegistry, settings, memoryLimits, std::move(traceId), std::move(arena));
133+
settings, memoryLimits, std::move(traceId), std::move(arena));
135134
}
136135

137136
IActor* CreateKqpScanFetcher(const NKikimrKqp::TKqpSnapshot& snapshot, std::vector<NActors::TActorId>&& computeActors,

ydb/core/kqp/compute_actor/kqp_compute_actor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,12 @@ class TShardsScanningPolicy {
4444

4545
IActor* CreateKqpComputeActor(const TActorId& executerId, ui64 txId, NYql::NDqProto::TDqTask* task,
4646
NYql::NDq::IDqAsyncIoFactory::TPtr asyncIoFactory,
47-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
4847
const NYql::NDq::TComputeRuntimeSettings& settings, const NYql::NDq::TComputeMemoryLimits& memoryLimits,
4948
NWilson::TTraceId traceId,
5049
TIntrusivePtr<NActors::TProtoArenaHolder> arena);
5150

5251
IActor* CreateKqpScanComputeActor(const TActorId& executerId, ui64 txId,
5352
NYql::NDqProto::TDqTask* task, NYql::NDq::IDqAsyncIoFactory::TPtr asyncIoFactory,
54-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
5553
const NYql::NDq::TComputeRuntimeSettings& settings, const NYql::NDq::TComputeMemoryLimits& memoryLimits, NWilson::TTraceId traceId,
5654
TIntrusivePtr<NActors::TProtoArenaHolder> arena);
5755

ydb/core/kqp/compute_actor/kqp_pure_compute_actor.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ bool TKqpComputeActor::IsDebugLogEnabled(const TActorSystem* actorSystem) {
1212

1313
TKqpComputeActor::TKqpComputeActor(const TActorId& executerId, ui64 txId, NDqProto::TDqTask* task,
1414
IDqAsyncIoFactory::TPtr asyncIoFactory,
15-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
1615
const TComputeRuntimeSettings& settings, const TComputeMemoryLimits& memoryLimits,
1716
NWilson::TTraceId traceId, TIntrusivePtr<NActors::TProtoArenaHolder> arena)
18-
: TBase(executerId, txId, task, std::move(asyncIoFactory), functionRegistry, settings, memoryLimits, /* ownMemoryQuota = */ true, /* passExceptions = */ true, /*taskCounters = */ nullptr, std::move(traceId), std::move(arena))
17+
: TBase(executerId, txId, task, std::move(asyncIoFactory), settings, memoryLimits, /* ownMemoryQuota = */ true, /* passExceptions = */ true, /*taskCounters = */ nullptr, std::move(traceId), std::move(arena))
1918
, ComputeCtx(settings.StatsMode)
2019
{
2120
if (GetTask().GetMeta().Is<NKikimrTxDataShard::TKqpTransaction::TScanTaskMeta>()) {
@@ -276,12 +275,11 @@ void TKqpComputeActor::HandleExecute(TEvKqpCompute::TEvScanError::TPtr& ev) {
276275

277276
IActor* CreateKqpComputeActor(const TActorId& executerId, ui64 txId, NDqProto::TDqTask* task,
278277
IDqAsyncIoFactory::TPtr asyncIoFactory,
279-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
280278
const TComputeRuntimeSettings& settings, const TComputeMemoryLimits& memoryLimits,
281279
NWilson::TTraceId traceId, TIntrusivePtr<NActors::TProtoArenaHolder> arena)
282280
{
283281
return new TKqpComputeActor(executerId, txId, task, std::move(asyncIoFactory),
284-
functionRegistry, settings, memoryLimits, std::move(traceId), std::move(arena));
282+
settings, memoryLimits, std::move(traceId), std::move(arena));
285283
}
286284

287285
} // namespace NKqp

ydb/core/kqp/compute_actor/kqp_pure_compute_actor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class TKqpComputeActor : public TDqSyncComputeActorBase<TKqpComputeActor> {
2727

2828
TKqpComputeActor(const TActorId& executerId, ui64 txId, NDqProto::TDqTask* task,
2929
IDqAsyncIoFactory::TPtr asyncIoFactory,
30-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
3130
const TComputeRuntimeSettings& settings, const TComputeMemoryLimits& memoryLimits,
3231
NWilson::TTraceId traceId, TIntrusivePtr<NActors::TProtoArenaHolder> arena);
3332

@@ -65,7 +64,6 @@ class TKqpComputeActor : public TDqSyncComputeActorBase<TKqpComputeActor> {
6564

6665
IActor* CreateKqpComputeActor(const TActorId& executerId, ui64 txId, NDqProto::TDqTask* task,
6766
IDqAsyncIoFactory::TPtr asyncIoFactory,
68-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
6967
const TComputeRuntimeSettings& settings, const TComputeMemoryLimits& memoryLimits,
7068
NWilson::TTraceId traceId, TIntrusivePtr<NActors::TProtoArenaHolder> arena);
7169

ydb/core/kqp/compute_actor/kqp_scan_compute_actor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ static constexpr TDuration RL_MAX_BATCH_DELAY = TDuration::Seconds(50);
2323
} // anonymous namespace
2424

2525
TKqpScanComputeActor::TKqpScanComputeActor(const TActorId& executerId, ui64 txId, NDqProto::TDqTask* task,
26-
IDqAsyncIoFactory::TPtr asyncIoFactory, const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
26+
IDqAsyncIoFactory::TPtr asyncIoFactory,
2727
const TComputeRuntimeSettings& settings, const TComputeMemoryLimits& memoryLimits, NWilson::TTraceId traceId,
2828
TIntrusivePtr<NActors::TProtoArenaHolder> arena)
29-
: TBase(executerId, txId, task, std::move(asyncIoFactory), functionRegistry, settings,
29+
: TBase(executerId, txId, task, std::move(asyncIoFactory), settings,
3030
memoryLimits, /* ownMemoryQuota = */ true, /* passExceptions = */ true, /*taskCounters = */ nullptr, std::move(traceId), std::move(arena))
3131
, ComputeCtx(settings.StatsMode)
3232
{

ydb/core/kqp/compute_actor/kqp_scan_compute_actor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ class TKqpScanComputeActor: public NYql::NDq::TDqSyncComputeActorBase<TKqpScanCo
3232

3333
TKqpScanComputeActor(const TActorId& executerId, ui64 txId,
3434
NYql::NDqProto::TDqTask* task, NYql::NDq::IDqAsyncIoFactory::TPtr asyncIoFactory,
35-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
3635
const NYql::NDq::TComputeRuntimeSettings& settings, const NYql::NDq::TComputeMemoryLimits& memoryLimits, NWilson::TTraceId traceId,
3736
TIntrusivePtr<NActors::TProtoArenaHolder> arena);
3837

ydb/core/kqp/executer_actor/kqp_planner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ void TKqpPlanner::ExecuteDataComputeTask(ui64 taskId, bool shareMailbox, bool op
349349
limits.MemoryQuotaManager = std::make_shared<NYql::NDq::TGuaranteeQuotaManager>(limit * 2, limit);
350350

351351
auto computeActor = NKikimr::NKqp::CreateKqpComputeActor(ExecuterId, TxId, taskDesc, AsyncIoFactory,
352-
AppData()->FunctionRegistry, settings, limits, ExecuterSpan.GetTraceId(), TasksGraph.GetMeta().GetArenaIntrusivePtr());
352+
settings, limits, ExecuterSpan.GetTraceId(), TasksGraph.GetMeta().GetArenaIntrusivePtr());
353353

354354
if (optimizeProtoForLocalExecution) {
355355
TVector<google::protobuf::Message*>& taskSourceSettings = static_cast<TKqpComputeActor*>(computeActor)->MutableTaskSourceSettings();

ydb/core/kqp/node_service/kqp_node_service.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,14 +484,14 @@ class TKqpNodeService : public TActorBootstrapped<TKqpNodeService> {
484484
if (tableKind == ETableKind::Datashard || tableKind == ETableKind::Olap) {
485485
auto& info = computesByStage.UpsertTaskWithScan(dqTask, meta, !AppData()->FeatureFlags.GetEnableSeparationComputeActorsFromRead());
486486
computeActor = CreateKqpScanComputeActor(request.Executer, txId, &dqTask,
487-
AsyncIoFactory, AppData()->FunctionRegistry, runtimeSettings, memoryLimits,
487+
AsyncIoFactory, runtimeSettings, memoryLimits,
488488
NWilson::TTraceId(ev->TraceId), ev->Get()->Arena);
489489
taskCtx.ComputeActorId = Register(computeActor);
490490
info.MutableActorIds().emplace_back(taskCtx.ComputeActorId);
491491
} else {
492492
if (Y_LIKELY(!CaFactory)) {
493493
computeActor = CreateKqpComputeActor(request.Executer, txId, &dqTask, AsyncIoFactory,
494-
AppData()->FunctionRegistry, runtimeSettings, memoryLimits, NWilson::TTraceId(ev->TraceId), ev->Get()->Arena);
494+
runtimeSettings, memoryLimits, NWilson::TTraceId(ev->TraceId), ev->Get()->Arena);
495495
taskCtx.ComputeActorId = Register(computeActor);
496496
} else {
497497
computeActor = CaFactory->CreateKqpComputeActor(request.Executer, txId, &dqTask,

ydb/library/yql/dq/actors/compute/dq_async_compute_actor.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,12 @@ class TDqAsyncComputeActor : public TDqComputeActorBase<TDqAsyncComputeActor, TC
7575

7676
TDqAsyncComputeActor(const TActorId& executerId, const TTxId& txId, NDqProto::TDqTask* task,
7777
IDqAsyncIoFactory::TPtr asyncIoFactory,
78-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
7978
const TComputeRuntimeSettings& settings, const TComputeMemoryLimits& memoryLimits,
8079
const NTaskRunnerActor::ITaskRunnerActorFactory::TPtr& taskRunnerActorFactory,
8180
const ::NMonitoring::TDynamicCounterPtr& taskCounters,
8281
const TActorId& quoterServiceActorId,
8382
bool ownCounters)
84-
: TBase(executerId, txId, task, std::move(asyncIoFactory), functionRegistry, settings, memoryLimits, /* ownMemoryQuota = */ false, false, taskCounters)
83+
: TBase(executerId, txId, task, std::move(asyncIoFactory), settings, memoryLimits, /* ownMemoryQuota = */ false, false, taskCounters)
8584
, TaskRunnerActorFactory(taskRunnerActorFactory)
8685
, ReadyToCheckpointFlag(false)
8786
, SentStatsRequest(false)
@@ -976,15 +975,14 @@ class TDqAsyncComputeActor : public TDqComputeActorBase<TDqAsyncComputeActor, TC
976975

977976
IActor* CreateDqAsyncComputeActor(const TActorId& executerId, const TTxId& txId, NYql::NDqProto::TDqTask* task,
978977
IDqAsyncIoFactory::TPtr asyncIoFactory,
979-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
980978
const TComputeRuntimeSettings& settings, const TComputeMemoryLimits& memoryLimits,
981979
const NTaskRunnerActor::ITaskRunnerActorFactory::TPtr& taskRunnerActorFactory,
982980
::NMonitoring::TDynamicCounterPtr taskCounters,
983981
const TActorId& quoterServiceActorId,
984982
bool ownCounters)
985983
{
986984
return new TDqAsyncComputeActor(executerId, txId, task, std::move(asyncIoFactory),
987-
functionRegistry, settings, memoryLimits, taskRunnerActorFactory, taskCounters, quoterServiceActorId, ownCounters);
985+
settings, memoryLimits, taskRunnerActorFactory, taskCounters, quoterServiceActorId, ownCounters);
988986
}
989987

990988
} // namespace NDq

ydb/library/yql/dq/actors/compute/dq_async_compute_actor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ namespace NDq {
1919

2020
NActors::IActor* CreateDqAsyncComputeActor(const NActors::TActorId& executerId, const TTxId& txId, NDqProto::TDqTask* task,
2121
IDqAsyncIoFactory::TPtr asyncIoFactory,
22-
const NKikimr::NMiniKQL::IFunctionRegistry* functionRegistry,
2322
const TComputeRuntimeSettings& settings, const TComputeMemoryLimits& memoryLimits,
2423
const NTaskRunnerActor::ITaskRunnerActorFactory::TPtr& taskRunnerActorFactory,
2524
::NMonitoring::TDynamicCounterPtr taskCounters = nullptr,

0 commit comments

Comments
 (0)