Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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