File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
ydb/public/lib/ydb_cli/commands Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -528,9 +528,6 @@ void TCommandExecuteQuery::PrintDataQueryResponse(NTable::TDataQueryResult& resu
528
528
ast = stats->GetAst ();
529
529
statsStr = stats->ToString ();
530
530
Cout << Endl << " Statistics:" << Endl << statsStr;
531
- if (meta) {
532
- Cout << Endl << " Meta:" << Endl << NJson::PrettifyJson (*meta, true ) << Endl;
533
- }
534
531
PrintFlameGraph (plan);
535
532
}
536
533
@@ -553,6 +550,7 @@ void TCommandExecuteQuery::PrintDataQueryResponse(NTable::TDataQueryResult& resu
553
550
if (meta) {
554
551
NJson::TJsonValue metaJson;
555
552
NJson::ReadJsonTree (*meta, &metaJson, true );
553
+ metaJson.InsertValue (" query_text" , EscapeC (Query));
556
554
diagnosticsJson.InsertValue (" meta" , metaJson);
557
555
}
558
556
file << NJson::PrettifyJson (NJson::WriteJson (diagnosticsJson, true ), false );
@@ -818,10 +816,6 @@ bool TCommandExecuteQuery::PrintQueryResponse(TIterator& result) {
818
816
queryPlanPrinter.Print (TString{*fullStats});
819
817
}
820
818
821
- if (meta) {
822
- Cout << Endl << " Meta:" << Endl << NJson::PrettifyJson (*meta, true ) << Endl;;
823
- }
824
-
825
819
if (!DiagnosticsFile.empty ()) {
826
820
TFileOutput file (TStringBuilder () << DiagnosticsFile << " .json" );
827
821
Original file line number Diff line number Diff line change @@ -231,10 +231,6 @@ int TCommandSql::PrintResponse(NQuery::TExecuteQueryIterator& result) {
231
231
Cout << Endl << " Statistics:" << Endl << *stats;
232
232
}
233
233
234
- if (meta) {
235
- Cout << Endl << " Meta:" << Endl << NJson::PrettifyJson (*meta, true ) << Endl;;
236
- }
237
-
238
234
if (plan) {
239
235
if (!ExplainMode && !ExplainAnalyzeMode
240
236
&& (OutputFormat == EDataFormat::Default || OutputFormat == EDataFormat::Pretty)) {
You can’t perform that action at this time.
0 commit comments