diff options
author | andrew-rykov <arykov@ydb.tech> | 2023-05-03 21:01:05 +0300 |
---|---|---|
committer | andrew-rykov <arykov@ydb.tech> | 2023-05-03 21:01:05 +0300 |
commit | 5a38c255b846d4bdaa221ca12c63d43f98033416 (patch) | |
tree | cd6cc202e10b8a2ac5517acd08bc920bb2104262 | |
parent | 76c944bc91c97bc0dec94800cfc19fc1d9f5c734 (diff) | |
download | ydb-5a38c255b846d4bdaa221ca12c63d43f98033416.tar.gz |
add execute and explain data actions
-rw-r--r-- | ydb/core/viewer/json_query.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ydb/core/viewer/json_query.h b/ydb/core/viewer/json_query.h index 91dc8a423f..92dedf5b35 100644 --- a/ydb/core/viewer/json_query.h +++ b/ydb/core/viewer/json_query.h @@ -110,7 +110,11 @@ public: request.SetAction(NKikimrKqp::QUERY_ACTION_EXECUTE); request.SetType(NKikimrKqp::QUERY_TYPE_SQL_SCAN); request.SetKeepSession(false); - } else if (Action == "explain" || Action == "explain-ast") { + } else if (Action == "execute-data") { + request.SetAction(NKikimrKqp::QUERY_ACTION_EXECUTE); + request.SetType(NKikimrKqp::QUERY_TYPE_SQL_DML); + request.SetKeepSession(false); + } else if (Action == "explain" || Action == "explain-ast" || Action == "explain-data") { request.SetAction(NKikimrKqp::QUERY_ACTION_EXPLAIN); request.SetType(NKikimrKqp::QUERY_TYPE_SQL_DML); } else if (Action == "explain-scan") { |