From bfa6e82cba4563bd6b0e3f9e716f46b98b4be381 Mon Sep 17 00:00:00 2001 From: StekPerepolnen Date: Thu, 4 Apr 2024 02:28:23 +0000 Subject: [PATCH] query-stats-full --- ydb/core/viewer/json_query.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ydb/core/viewer/json_query.h b/ydb/core/viewer/json_query.h index 70ee72849501..2ea779bd3f75 100644 --- a/ydb/core/viewer/json_query.h +++ b/ydb/core/viewer/json_query.h @@ -215,6 +215,9 @@ class TJsonQuery : public TViewerPipeClient { if (Stats == "profile") { request.SetStatsMode(NYql::NDqProto::DQ_STATS_MODE_PROFILE); request.SetCollectStats(Ydb::Table::QueryStatsCollection::STATS_COLLECTION_PROFILE); + } else if (Stats == "full") { + request.SetStatsMode(NYql::NDqProto::DQ_STATS_MODE_FULL); + request.SetCollectStats(Ydb::Table::QueryStatsCollection::STATS_COLLECTION_FULL); } if (Database) { request.SetDatabase(Database); @@ -633,7 +636,7 @@ struct TJsonRequestParameters { {"name":"syntax","in":"query","description":"query syntax (yql_v1, pg)","required":false,"type":"string"}, {"name":"database","in":"query","description":"database name","required":false,"type":"string"}, {"name":"schema","in":"query","description":"result format schema (classic, modern, ydb, multi)","required":false,"type":"string"}, - {"name":"stats","in":"query","description":"return stats (profile)","required":false,"type":"string"}, + {"name":"stats","in":"query","description":"return stats (profile, full)","required":false,"type":"string"}, {"name":"action","in":"query","description":"execute method (execute-scan, execute-script, execute-query, execute-data,explain-ast, explain-scan, explain-script, explain-query, explain-data)","required":false,"type":"string"}, {"name":"base64","in":"query","description":"return strings using base64 encoding","required":false,"type":"string"}, {"name":"timeout","in":"query","description":"timeout in ms","required":false,"type":"integer"}])___";