You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2021/05/18 12:21:55 UTC

[GitHub] [ignite] ygerzhedovich commented on a change in pull request #9046: IGNITE-12991: Calcite integration. Query Cancellation

ygerzhedovich commented on a change in pull request #9046:
URL: https://github.com/apache/ignite/pull/9046#discussion_r634323532



##########
File path: modules/core/src/main/java/org/apache/ignite/internal/processors/query/QueryEngine.java
##########
@@ -36,4 +37,25 @@
      */
     List<FieldsQueryCursor<List<?>>> query(@Nullable QueryContext ctx, String schemaName, String qry, Object... params)
         throws IgniteSQLException;
+
+    /**
+     * Return SQL running queries.
+     *
+     * @return SQL running queries.
+     */
+    List<RunningQueryInfo> runningQueries();
+
+    /**
+     * Return running queries fragments.
+     *
+     * @return Running queries fragments.
+     */
+    List<RunningFragmentInfo> runningFragments();
+
+    /**
+     * Cancel specified query.
+     *
+     * @param qryId Queries ID to cancel.
+     */
+    void cancelQuery(UUID qryId);

Review comment:
       Seems the return type can be a Future, WDYT?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org