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

Julian Hyde commented on CALCITE-520:
-------------------------------------

That sounds about right. Also add a test, of course.

Cancel is, by its nature, a multi-threaded operation (definitely on the client, 
possibly on the server) so be careful about thread-safety.

> 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