Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shnikd committed Dec 18, 2024
1 parent 6d7e7a5 commit 78040a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ydb/core/grpc_services/rpc_stream_execute_scan_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ class TStreamExecuteScanQueryRPC : public TActorBootstrapped<TStreamExecuteScanQ
&req->parameters(),
req->collect_stats(),
nullptr, // query_cache_policy
nullptr
nullptr,
NKqp::NPrivateEvents::TQueryRequestSettings().SetCollectFullDiagnostics(req->Getcollect_full_diagnostics())
);

ev->Record.MutableRequest()->SetCollectDiagnostics(req->Getcollect_full_diagnostics());
Expand Down
2 changes: 1 addition & 1 deletion ydb/core/kqp/common/events/query.h
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ struct TEvQueryRequest: public NActors::TEventLocal<TEvQueryRequest, TKqpEvents:
}

bool GetCollectDiagnostics() const {
return QuerySettings.CollectFullDiagnostics;
return RequestCtx ? QuerySettings.CollectFullDiagnostics : Record.MutableRequest()->GetCollectDiagnostics();
}

ui32 CalculateSerializedSize() const override {
Expand Down

0 comments on commit 78040a4

Please sign in to comment.