diff options
author | Igor Makunin <igor.makunin@gmail.com> | 2022-03-18 16:06:05 +0300 |
---|---|---|
committer | Igor Makunin <igor.makunin@gmail.com> | 2022-03-18 16:06:05 +0300 |
commit | fa10836d4d541d41db03f351ec1afcd1a15b1cd7 (patch) | |
tree | e2373730c32b7ab171141775df871cc45434769a | |
parent | 6613d6f377e03e440988cba1a75202e1c5408f14 (diff) | |
download | ydb-fa10836d4d541d41db03f351ec1afcd1a15b1cd7.tar.gz |
KIKIMR-0000: fix camptatible queries count
ref:a45f44ccf78a447559c524b545c416f8863c57e2
-rw-r--r-- | ydb/core/kqp/kqp_worker_actor.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ydb/core/kqp/kqp_worker_actor.cpp b/ydb/core/kqp/kqp_worker_actor.cpp index 43afc213c5..94a89532d0 100644 --- a/ydb/core/kqp/kqp_worker_actor.cpp +++ b/ydb/core/kqp/kqp_worker_actor.cpp @@ -1027,10 +1027,14 @@ private: bool newEngineCompatibleTx = !QueryState->OldEngineFallback && QueryState->ForceNewEngineState.ForceNewEnginePercent > 0; - if (QueryState->ForceNewEngineState.ForcedNewEngine.has_value() && + bool forcedOldEngine = false; + + if (newEngineCompatibleTx && + QueryState->ForceNewEngineState.ForcedNewEngine.has_value() && QueryState->ForceNewEngineState.ForcedNewEngine.value() == false) { - newEngineCompatibleTx = false; + // newEngineCompatibleTx = false; + forcedOldEngine = true; } QueryState->NewEngineCompatibleQuery = (bool) QueryState->QueryCompileResult->PreparedQueryNewEngine @@ -1102,7 +1106,7 @@ private: << ", commit: " << commit << ", text: " << queryRequest.GetQuery()); - if (newEngineCompatibleTx) { + if (newEngineCompatibleTx && !forcedOldEngine) { if (QueryState->NewEngineCompatibleQuery) { if (QueryState->ForceNewEngineState.ForcedNewEngine && *QueryState->ForceNewEngineState.ForcedNewEngine) { preparedQuery = QueryState->QueryCompileResult->PreparedQueryNewEngine; |