Skip to content

Commit c0ff915

Browse files
committed
Fixes
1 parent 04722c8 commit c0ff915

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -528,9 +528,6 @@ void TCommandExecuteQuery::PrintDataQueryResponse(NTable::TDataQueryResult& resu
528528
ast = stats->GetAst();
529529
statsStr = stats->ToString();
530530
Cout << Endl << "Statistics:" << Endl << statsStr;
531-
if (meta) {
532-
Cout << Endl << "Meta:" << Endl << NJson::PrettifyJson(*meta, true) << Endl;
533-
}
534531
PrintFlameGraph(plan);
535532
}
536533

@@ -553,6 +550,7 @@ void TCommandExecuteQuery::PrintDataQueryResponse(NTable::TDataQueryResult& resu
553550
if (meta) {
554551
NJson::TJsonValue metaJson;
555552
NJson::ReadJsonTree(*meta, &metaJson, true);
553+
metaJson.InsertValue("query_text", EscapeC(Query));
556554
diagnosticsJson.InsertValue("meta", metaJson);
557555
}
558556
file << NJson::PrettifyJson(NJson::WriteJson(diagnosticsJson, true), false);
@@ -818,10 +816,6 @@ bool TCommandExecuteQuery::PrintQueryResponse(TIterator& result) {
818816
queryPlanPrinter.Print(TString{*fullStats});
819817
}
820818

821-
if (meta) {
822-
Cout << Endl << "Meta:" << Endl << NJson::PrettifyJson(*meta, true) << Endl;;
823-
}
824-
825819
if (!DiagnosticsFile.empty()) {
826820
TFileOutput file(TStringBuilder() << DiagnosticsFile << ".json");
827821

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,6 @@ int TCommandSql::PrintResponse(NQuery::TExecuteQueryIterator& result) {
231231
Cout << Endl << "Statistics:" << Endl << *stats;
232232
}
233233

234-
if (meta) {
235-
Cout << Endl << "Meta:" << Endl << NJson::PrettifyJson(*meta, true) << Endl;;
236-
}
237-
238234
if (plan) {
239235
if (!ExplainMode && !ExplainAnalyzeMode
240236
&& (OutputFormat == EDataFormat::Default || OutputFormat == EDataFormat::Pretty)) {

0 commit comments

Comments
 (0)