File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
ydb/public/lib/ydb_cli/commands Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -946,6 +946,10 @@ int TCommandExplain::Run(TConfig& config) {
946
946
settings.Explain (true );
947
947
}
948
948
949
+ if (CollectFullDiagnostics) {
950
+ settings.CollectFullDiagnostics (true );
951
+ }
952
+
949
953
auto result = client.StreamExecuteScanQuery (Query, settings).GetValueSync ();
950
954
NStatusHelpers::ThrowOnErrorOrPrintIssues (result);
951
955
@@ -962,6 +966,13 @@ int TCommandExplain::Run(TConfig& config) {
962
966
planJson = proto.query_plan ();
963
967
ast = proto.query_ast ();
964
968
}
969
+ if (tablePart.HasDiagnostics ()) {
970
+ diagnostics = tablePart.ExtractDiagnostics ();
971
+ }
972
+ }
973
+
974
+ if (CollectFullDiagnostics) {
975
+ SaveDiagnosticsToFile (diagnostics);
965
976
}
966
977
967
978
if (IsInterrupted ()) {
You can’t perform that action at this time.
0 commit comments