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
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,12 @@ class TDqExecTransformer: public TExecTransformerBase, TCounters
return filesRes;
}
FlushCounter("FreezeUsedFiles");

auto& qContext = State->TypeCtx->QContext;
if (qContext.CanWrite() && qContext.CaptureMode() == EQPlayerCaptureMode::Full && !files.empty()) {
YQL_CLOG(DEBUG, ProviderDq) << "DQ full capture has not been taken: file dump is unsupported";
State->IsFullCaptureReady = false;
}
// copy-paste }

TScopedAlloc alloc(__LOCATION__, NKikimr::TAlignedPagePoolCounters(), State->FunctionRegistry->SupportsSizedAllocators());
Expand Down Expand Up @@ -1347,6 +1353,12 @@ class TDqExecTransformer: public TExecTransformerBase, TCounters
return filesRes;
}
FlushCounter("FreezeUsedFiles");

auto& qContext = State->TypeCtx->QContext;
if (qContext.CanWrite() && qContext.CaptureMode() == EQPlayerCaptureMode::Full && !files.empty()) {
YQL_CLOG(DEBUG, ProviderDq) << "DQ full capture has not been taken: file dump is unsupported";
State->IsFullCaptureReady = false;
}
// copy-paste }

THashMap<TString, TString> secureParams;
Expand Down Expand Up @@ -1900,6 +1912,12 @@ class TDqExecTransformer: public TExecTransformerBase, TCounters
continue;
}
FlushCounter("FreezeUsedFiles");

auto& qContext = State->TypeCtx->QContext;
if (qContext.CanWrite() && qContext.CaptureMode() == EQPlayerCaptureMode::Full && !files.empty()) {
YQL_CLOG(DEBUG, ProviderDq) << "DQ full capture has not been taken: file dump is unsupported";
State->IsFullCaptureReady = false;
}
// copy-paste }

auto settings = std::make_shared<TDqSettings>(*commonSettings);
Expand Down
4 changes: 4 additions & 0 deletions ydb/library/yql/providers/dq/provider/yql_dq_datasink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ class TDqDataProviderSink: public TDataProviderBase {
}
}

bool IsFullCaptureReady() override {
return State->IsFullCaptureReady;
}

const TDqState::TPtr State;

TLazyInitHolder<IGraphTransformer> LogOptTransformer;
Expand Down
1 change: 1 addition & 0 deletions ydb/library/yql/providers/dq/provider/yql_dq_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ struct TDqState: public TThrRefBase {
const TString VanillaJobMd5;
TDqConfiguration::TPtr Settings = MakeIntrusive<TDqConfiguration>();
bool ExternalUser;
bool IsFullCaptureReady = true;

TMutex Mutex;
THashMap<ui32, TOperationStatistics> Statistics;
Expand Down
Loading