microsoft / microsoft/mssql-python

[QUESTION/FEATURE] How to cancel a query?

Open
#424 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: api-compliance enhancement
Dominant language
Python
Stars
473
Forks
60
Avg merge
2d 11h
Merged PRs (30d)
36

Description

Context: I'm creating an implementation of dbt-fabric that uses this driver.

How would I cancel a submitted query? Does the query cancel when the thread that is running cursor.execute gets killed?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files or tests; it only identifies cursor.execute and a dbt-fabric driver implementation. Start by tracing the query-submission and cursor execution entry points, then determine whether cancellation is supported or needs a new design. Done should clearly establish the supported cancellation behavior, including what happens when the executing thread is terminated.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.