aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew-rykov <arykov@ydb.tech>2023-05-03 21:01:05 +0300
committerandrew-rykov <arykov@ydb.tech>2023-05-03 21:01:05 +0300
commit5a38c255b846d4bdaa221ca12c63d43f98033416 (patch)
treecd6cc202e10b8a2ac5517acd08bc920bb2104262
parent76c944bc91c97bc0dec94800cfc19fc1d9f5c734 (diff)
downloadydb-5a38c255b846d4bdaa221ca12c63d43f98033416.tar.gz
add execute and explain data actions
-rw-r--r--ydb/core/viewer/json_query.h6
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") {