Skip to content

Commit

Permalink
Renamed KikimrProviderExecution to PassiveExecution
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriyPA committed Feb 16, 2024
1 parent dc962e1 commit a4f69e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ydb/core/kqp/host/kqp_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ class TKqpHost : public IKqpHost {

auto [ytState, statWriter] = CreateYtNativeState(FederatedQuerySetup->YtGateway, userName, SessionId, &FederatedQuerySetup->YtGatewayConfig, TypesCtx);

ytState->KikimrProviderExecution = true;
ytState->PassiveExecution = true;
ytState->Gateway->OpenSession(
IYtGateway::TOpenSessionOptions(SessionId)
.UserName(userName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TYtDataSinkFinalizingTransformer: public TAsyncCallbackTransformer<TYtData
Y_UNUSED(ctx);
output = input;

if (State_->KikimrProviderExecution) {
if (State_->PassiveExecution) {
return SyncStatus(IGraphTransformer::TStatus::Ok);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class TYtDataSource : public TDataProviderBase {
bool buildLeft = TCoLeft::Match(node.Get());
bool buildReadTableScheme = NYql::HasSetting(read.Arg(4).Ref(), EYtSettingType::Scheme);

if (buildLeft && (buildReadTableScheme || !State_->KikimrProviderExecution)) {
if (buildLeft && (buildReadTableScheme || !State_->PassiveExecution)) {
return read.World().Ptr();
}

Expand Down
24 changes: 12 additions & 12 deletions ydb/library/yql/providers/yt/provider/yql_yt_physical_optimize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {

template<bool IsTop>
TMaybeNode<TExprBase> Sort(TExprBase node, TExprContext& ctx) const {
if (State_->Types->EvaluationInProgress || State_->KikimrProviderExecution) {
if (State_->Types->EvaluationInProgress || State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -1728,7 +1728,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> PartitionByKey(TExprBase node, TExprContext& ctx) const {
if (State_->Types->EvaluationInProgress || State_->KikimrProviderExecution) {
if (State_->Types->EvaluationInProgress || State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -2599,7 +2599,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> FlatMap(TExprBase node, TExprContext& ctx, const TGetParents& getParents) const {
if (State_->Types->EvaluationInProgress || State_->KikimrProviderExecution) {
if (State_->Types->EvaluationInProgress || State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -2684,7 +2684,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> CombineByKey(TExprBase node, TExprContext& ctx) const {
if (State_->Types->EvaluationInProgress || State_->KikimrProviderExecution) {
if (State_->Types->EvaluationInProgress || State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -2872,7 +2872,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> DqWrite(TExprBase node, TExprContext& ctx, IOptimizationContext& optCtx, const TGetParents& getParents) const {
if (State_->KikimrProviderExecution) {
if (State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -3362,7 +3362,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> Fill(TExprBase node, TExprContext& ctx) const {
if (State_->KikimrProviderExecution) {
if (State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -3516,7 +3516,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> Extend(TExprBase node, TExprContext& ctx) const {
if (State_->KikimrProviderExecution) {
if (State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -4345,7 +4345,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {

template <typename TLMapType>
TMaybeNode<TExprBase> LMap(TExprBase node, TExprContext& ctx) const {
if (State_->Types->EvaluationInProgress || State_->KikimrProviderExecution) {
if (State_->Types->EvaluationInProgress || State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -4878,7 +4878,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> AssumeSorted(TExprBase node, TExprContext& ctx, const TGetParents& getParents) const {
if (State_->Types->EvaluationInProgress || State_->KikimrProviderExecution) {
if (State_->Types->EvaluationInProgress || State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -5535,7 +5535,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> EquiJoin(TExprBase node, TExprContext& ctx, const TGetParents& getParents) const {
if (State_->Types->EvaluationInProgress || State_->KikimrProviderExecution) {
if (State_->Types->EvaluationInProgress || State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -6157,7 +6157,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> ReadWithSettings(TExprBase node, TExprContext& ctx) const {
if (State_->KikimrProviderExecution) {
if (State_->PassiveExecution) {
return node;
}

Expand Down Expand Up @@ -6237,7 +6237,7 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
}

TMaybeNode<TExprBase> ReplaceStatWriteTable(TExprBase node, TExprContext& ctx) const {
if (State_->KikimrProviderExecution) {
if (State_->PassiveExecution) {
return node;
}

Expand Down
2 changes: 1 addition & 1 deletion ydb/library/yql/providers/yt/provider/yql_yt_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ struct TYtState : public TThrRefBase {
THolder<IDqIntegration> DqIntegration_;
ui32 NextEpochId = 1;
bool OnlyNativeExecution = false;
bool KikimrProviderExecution = false;
bool PassiveExecution = false;
TDuration TimeSpentInHybrid;
NMonotonic::TMonotonic HybridStartTime;
std::unordered_set<ui32> HybridInFlightOprations;
Expand Down

0 comments on commit a4f69e4

Please sign in to comment.