long2ice / asynch

An asyncio ClickHouse Python Driver with native (TCP) interface support.
https://github.com/long2ice/asynch
Apache License 2.0
186 stars 43 forks source link

Support for Query Cancellation #104

Open ahmad-axds opened 5 months ago

ahmad-axds commented 5 months ago

Does the library support query cancellation? We often run slow queries that need to be altered during execution, and ideally, we'd like to be able to cancel an ongoing query and start a new one.

For reference, the [clickhouse-driver](https://clickhouse-driver.readthedocs.io/en/latest/quickstart.html#:~:text=is%20not%20supported.-,Selecting%20data%20with%20progress%20statistics,%3D%20progress.get_result()%0A...%20%20%20%20%20print(rv)%0A...,-Streaming%20results) supports this feature via client.cancel().

If this is not currently supported, I'm interested in contributing to implement this feature and would appreciate some guidance.

long2ice commented 5 months ago

Currently not, welcome to contribute.