Skip to content

Commit 0192d5e

Browse files
committed
Add Prepare stage
commit_hash:800d6cd5cb053472ea8c5aab0f2c68e6be75b0d0
1 parent f2d5d88 commit 0192d5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

yt/yql/providers/yt/gateway/native/yql_yt_native.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3624,6 +3624,7 @@ class TYtNativeGateway : public IYtGateway {
36243624
return execCtx->Session_->Queue_->Async([execCtx]() {
36253625
return execCtx->LookupQueryCacheAsync().Apply([execCtx] (const auto& f) {
36263626
YQL_LOG_CTX_ROOT_SESSION_SCOPE(execCtx->LogCtx_);
3627+
execCtx->SetNodeExecProgress("Preparing");
36273628
auto entry = execCtx->GetEntry();
36283629
bool cacheHit = f.GetValue();
36293630
TVector<TRichYPath> outYPaths = PrepareDestinations(execCtx->OutTables_, execCtx, entry, !cacheHit);
@@ -3690,6 +3691,7 @@ class TYtNativeGateway : public IYtGateway {
36903691
return execCtx->Session_->Queue_->Async([forceTransform, combineChunks, limit, inputQueryExpr, execCtx]() {
36913692
return execCtx->LookupQueryCacheAsync().Apply([forceTransform, combineChunks, limit, inputQueryExpr, execCtx] (const auto& f) {
36923693
YQL_LOG_CTX_ROOT_SESSION_SCOPE(execCtx->LogCtx_);
3694+
execCtx->SetNodeExecProgress("Preparing");
36933695
auto entry = execCtx->GetEntry();
36943696
bool cacheHit = f.GetValue();
36953697
TVector<TRichYPath> outYPaths = PrepareDestinations(execCtx->OutTables_, execCtx, entry, !cacheHit);
@@ -3762,6 +3764,7 @@ class TYtNativeGateway : public IYtGateway {
37623764
inputType, extraUsage, inputQueryExpr, execCtx, testRun] (const auto& f) mutable
37633765
{
37643766
YQL_LOG_CTX_ROOT_SESSION_SCOPE(execCtx->LogCtx_);
3767+
execCtx->SetNodeExecProgress("Preparing");
37653768
TTransactionCache::TEntry::TPtr entry;
37663769
TVector<TRichYPath> outYPaths;
37673770
if (testRun) {
@@ -3990,6 +3993,7 @@ class TYtNativeGateway : public IYtGateway {
39903993
(const auto& f) mutable
39913994
{
39923995
YQL_LOG_CTX_ROOT_SESSION_SCOPE(execCtx->LogCtx_);
3996+
execCtx->SetNodeExecProgress("Preparing");
39933997
TTransactionCache::TEntry::TPtr entry;
39943998
TVector<TRichYPath> outYPaths;
39953999
if (testRun) {
@@ -4208,6 +4212,7 @@ class TYtNativeGateway : public IYtGateway {
42084212
(const auto& f) mutable
42094213
{
42104214
YQL_LOG_CTX_ROOT_SESSION_SCOPE(execCtx->LogCtx_);
4215+
execCtx->SetNodeExecProgress("Preparing");
42114216
TTransactionCache::TEntry::TPtr entry;
42124217
TVector<TRichYPath> outYPaths;
42134218

@@ -4458,6 +4463,7 @@ class TYtNativeGateway : public IYtGateway {
44584463
(const auto& f) mutable
44594464
{
44604465
YQL_LOG_CTX_ROOT_SESSION_SCOPE(execCtx->LogCtx_);
4466+
execCtx->SetNodeExecProgress("Preparing");
44614467
TTransactionCache::TEntry::TPtr entry;
44624468
TVector<TRichYPath> outYPaths;
44634469
if (testRun) {
@@ -4791,6 +4797,7 @@ class TYtNativeGateway : public IYtGateway {
47914797
TFuture<bool> ret = testRun ? MakeFuture<bool>(false) : execCtx->LookupQueryCacheAsync();
47924798
return ret.Apply([lambda, extraUsage, tmpTable, execCtx, testRun] (const auto& f) mutable {
47934799
YQL_LOG_CTX_ROOT_SESSION_SCOPE(execCtx->LogCtx_);
4800+
execCtx->SetNodeExecProgress("Preparing");
47944801
TTransactionCache::TEntry::TPtr entry;
47954802
TVector<TRichYPath> outYPaths;
47964803
if (testRun) {
@@ -5417,6 +5424,7 @@ class TYtNativeGateway : public IYtGateway {
54175424

54185425
bool localRun = execCtx->Config_->HasExecuteUdfLocallyIfPossible() ? execCtx->Config_->GetExecuteUdfLocallyIfPossible() : false;
54195426
{
5427+
execCtx->SetNodeExecProgress("Preparing");
54205428
TUserJobSpec userJobSpec;
54215429
TScopedAlloc alloc(__LOCATION__, NKikimr::TAlignedPagePoolCounters(),
54225430
execCtx->FunctionRegistry_->SupportsSizedAllocators());

0 commit comments

Comments
 (0)