Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vitstn committed Apr 26, 2024
1 parent 363d83f commit db4f171
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ydb/library/yql/tools/dqrun/dqrun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,6 @@ int RunMain(int argc, const char* argv[])
qStorage = MakeFileQStorage(qStorageDir);
qContext = TQContext(qStorage->MakeReader(opId));
} else if (res.Has("capture")) {
Y_ENSURE(opId);
qStorage = MakeFileQStorage(qStorageDir);
qContext = TQContext(qStorage->MakeWriter(opId));
}
Expand Down Expand Up @@ -997,7 +996,10 @@ int RunMain(int argc, const char* argv[])
program->SetQueryName(progFile);
}

program->SetQContext(qContext);
if (qStorage) {
program->SetQContext(qContext);
}

if (paramsFile) {
TString parameters = TFileInput(paramsFile).ReadAll();
program->SetParametersYson(parameters);
Expand Down

0 comments on commit db4f171

Please sign in to comment.