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

Pavol Vidlička commented on CALCITE-520:
----------------------------------------

Hi! I'd like to take a stab at this.

>From what I managed to grok, it requires to:

- add a `cancelStatement` method to the `Meta` interface and implement it for 
`JdbcMeta` and `RemoteMeta`
- implement a "CancelStatement" request (for JSON and protobuf)

Is there anything else I missed?

> 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)

Reply via email to