Skip to content

Commit

Permalink
[dq] Separate setting SplitStageOnDqReplicate (YQL-17382) (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvu1024 authored Dec 22, 2023
1 parent 55c5812 commit 8fbea85
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ydb/library/yql/cfg/tests/gateways.conf
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ Dq {
Name: "UseWideChannels"
Value: "true"
}

DefaultSettings {
Name: "SplitStageOnDqReplicate"
Value: "true"
}
}

Fs {
Expand Down
8 changes: 8 additions & 0 deletions ydb/library/yql/providers/dq/common/yql_dq_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,18 @@ TDqConfiguration::TDqConfiguration() {
.ValueSetter([this](const TString&, TDqSettings::ESpillingEngine value) {
SpillingEngine = value;
if (value != TDqSettings::ESpillingEngine::Disable) {
SplitStageOnDqReplicate = false;
EnableDqReplicate = true;
}
});
REGISTER_SETTING(*this, DisableLLVMForBlockStages);
REGISTER_SETTING(*this, SplitStageOnDqReplicate)
.ValueSetter([this](const TString&, bool value) {
SplitStageOnDqReplicate = value;
if (!value) {
EnableDqReplicate = true;
}
});
}

} // namespace NYql
1 change: 1 addition & 0 deletions ydb/library/yql/providers/dq/common/yql_dq_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ struct TDqSettings {
NCommon::TConfSetting<bool, false> UseBlockReader;
NCommon::TConfSetting<ESpillingEngine, false> SpillingEngine;
NCommon::TConfSetting<bool, false> DisableLLVMForBlockStages;
NCommon::TConfSetting<bool, false> SplitStageOnDqReplicate;

// This options will be passed to executor_actor and worker_actor
template <typename TProtoConfig>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ struct TDqsPipelineConfigurator : public IPipelineConfigurator {
}
pipeline->Add(
NDq::CreateDqBuildPhyStagesTransformer(
State_->Settings->SpillingEngine.Get().GetOrElse(TDqSettings::TDefault::SpillingEngine) != TDqSettings::ESpillingEngine::Disable,
!State_->Settings->SplitStageOnDqReplicate.Get().GetOrElse(true),
*pipeline->GetTypeAnnotationContext(), mode
),
"BuildPhy");
Expand Down

0 comments on commit 8fbea85

Please sign in to comment.