Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support async execution #402

Open
zhaorui2022 opened this issue Jun 26, 2024 · 4 comments
Open

[Feature Request] Support async execution #402

zhaorui2022 opened this issue Jun 26, 2024 · 4 comments

Comments

@zhaorui2022
Copy link

We are currently using

- **`query_cancel.py`** shows how to cancel a query assuming that you can access the `Cursor` executing that query from a different thread. This is necessary because `databricks-sql-connector` does not yet implement an asynchronous API; calling `.execute()` blocks the current thread until execution completes. Therefore, the connector can't cancel queries from the same thread where they began.
to fetch statement ID when executing queries using sqlalchemy. However, the UUID is not returned at the very end of the query execution. And if the query fails, it never returns the statement ID. Is it possible to support async execution so that we can get the statement ID asap.

@MeinAccount
Copy link

MeinAccount commented Aug 9, 2024

Is there a timeline for getting proper async support? We would love that to speed up our Databricks workflows! There was clearly some work going on by susodapop (wo seems to have left Databricks) in #322 , #325 and Branch peco-1263-staging -- all of which has stalled 7 months ago.

@bkyryliuk
Copy link
Contributor

+1 this affects databricks usability in the external systems as it is not possible to navigate to the query when it is running, failed or times out and makes debugging much more complex than it should be

@hayescode
Copy link

@rcypher-databricks @yunbodeng-db @andrefurlan-db @jackyhu-db @benc-db @kravets-levko

There is a community desire for async execution for various reasons. #82 and #176

My use case is OpenAI parallel tool calling which can generate multiple queries, but are executed sequentially due to lack of async support.

@gopalldb
Copy link

We are actively working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants