Skip to content

Commit

Permalink
Fixed plan checking
Browse files Browse the repository at this point in the history
  • Loading branch information
GrigoriyPA committed May 8, 2024
1 parent 6e53505 commit 96412bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ydb/tests/tools/kqprun/src/ydb_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ TRequestResult TYdbSetup::QueryRequest(const TString& query, NKikimrKqp::EQueryA
const auto& responseRecord = queryOperationResponse.GetResponse();

meta.Ast = responseRecord.GetQueryAst();
if (responseRecord.GetQueryPlan()) {
meta.Plan = responseRecord.GetQueryPlan();
if (const auto& plan = responseRecord.GetQueryPlan()) {
meta.Plan = plan;
}

return TRequestResult(queryOperationResponse.GetYdbStatus(), responseRecord.GetQueryIssues());
Expand Down Expand Up @@ -388,8 +388,8 @@ TRequestResult TYdbSetup::GetScriptExecutionOperationRequest(const TString& oper
meta.ExecutionStatus = static_cast<NYdb::NQuery::EExecStatus>(deserializedMeta.exec_status());
meta.ResultSetsCount = deserializedMeta.result_sets_meta_size();
meta.Ast = deserializedMeta.exec_stats().query_ast();
if (deserializedMeta.exec_stats().query_plan()) {
meta.Plan = deserializedMeta.exec_stats().query_plan();
if (const auto& plan = deserializedMeta.exec_stats().query_plan()) {
meta.Plan = plan;
}
}

Expand Down

0 comments on commit 96412bc

Please sign in to comment.