You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Zhen Wang (Jira)" <ji...@apache.org> on 2020/12/14 09:53:00 UTC

[jira] [Commented] (CALCITE-520) Support cancel in remote JDBC driver

    [ https://issues.apache.org/jira/browse/CALCITE-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17248855#comment-17248855 ] 

Zhen Wang commented on CALCITE-520:
-----------------------------------

 I thought there is already a CancelFlag when implementing the streaming related func, what's the relation between the two

> Support cancel in remote JDBC driver
> ------------------------------------
>
>                 Key: CALCITE-520
>                 URL: https://issues.apache.org/jira/browse/CALCITE-520
>             Project: Calcite
>          Issue Type: Bug
>          Components: avatica
>            Reporter: Julian Hyde
>            Priority: Major
>
> Remote JDBC driver should support canceling running statements.
> I believe we have the ingredients already. The client knows the statement id of a statement before it executes it. And when cancel is received in the client JDBC driver, it can send a (new) CancelStatement request on a separate RPC call. The server can then set the cancel flag, and from that point, the mechanism is the same as local cancel.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)