Skip to content

Commit

Permalink
Merge bfa6e82 into 34ddb63
Browse files Browse the repository at this point in the history
  • Loading branch information
StekPerepolnen authored Apr 4, 2024
2 parents 34ddb63 + bfa6e82 commit 021ff54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ydb/core/viewer/json_query.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ class TJsonQuery : public TViewerPipeClient<TJsonQuery> {
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);
Expand Down Expand Up @@ -633,7 +636,7 @@ struct TJsonRequestParameters<TJsonQuery> {
{"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"}])___";
Expand Down

0 comments on commit 021ff54

Please sign in to comment.