+1 for lifting this up to AvaticaResultSet
Would be good for Avatica clients to have the standard means to cancel a
query (not hoping the Avatica server would ever get into a case where
it's not responding in a reasonable amount of time).
Julian Hyde wrote:
I am developing a fix for
https://issues.apache.org/jira/browse/CALCITE-1227<https://issues.apache.org/jira/browse/CALCITE-1227>
in
https://github.com/julianhyde/calcite/tree/1227-streaming-csv-table<https://github.com/julianhyde/calcite/tree/1227-streaming-csv-table>,
building on Zhen Wang’s
https://github.com/apache/calcite/pull/239<https://github.com/apache/calcite/pull/239>. I
added a “cancelFlag” field to CalciteResultSet. Should this — and some mechanism for a running
statement to find out whether it has been canceled — make its way up to AvaticaResultSet?
Implementing cancel is a complicated issue, but this seems like a good start.
Julian