Skip to content

Commit 7ea5f50

Browse files
committed
Fixes
1 parent 7685dbf commit 7ea5f50

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ydb/public/lib/ydb_cli/commands/ydb_service_table.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,10 @@ int TCommandExplain::Run(TConfig& config) {
946946
settings.Explain(true);
947947
}
948948

949+
if (CollectFullDiagnostics) {
950+
settings.CollectFullDiagnostics(true);
951+
}
952+
949953
auto result = client.StreamExecuteScanQuery(Query, settings).GetValueSync();
950954
NStatusHelpers::ThrowOnErrorOrPrintIssues(result);
951955

@@ -962,6 +966,13 @@ int TCommandExplain::Run(TConfig& config) {
962966
planJson = proto.query_plan();
963967
ast = proto.query_ast();
964968
}
969+
if (tablePart.HasDiagnostics()) {
970+
diagnostics = tablePart.ExtractDiagnostics();
971+
}
972+
}
973+
974+
if (CollectFullDiagnostics) {
975+
SaveDiagnosticsToFile(diagnostics);
965976
}
966977

967978
if (IsInterrupted()) {

0 commit comments

Comments
 (0)