Repository navigation
fix(python): expose async affected-row counts - #432
Merged
aakash-saravanan-db merged 2 commits intoNov 11, 2026
Merged
Conversation
3 tasks done
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 03:48 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 03:48 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 03:48 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 03:48 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 03:48 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 03:48 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 03:48 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 03:48 — with
GitHub Actions
Inactive
aakash-saravanan-db
marked this pull request as ready for review
November 10, 2026 21:25
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 21:25 — with
GitHub Actions
Inactive
aakash-saravanan-db
force-pushed
the
aakash-saravanan-db/fix-python-async-rowcount
branch
from
November 10, 2026 22:12
fae57d9 to
b8dcb5c
Compare
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 10, 2026 22:12 — with
GitHub Actions
Inactive
There was a problem hiding this comment.
Verdict: 1 Low
Looks good. The change is small and contained. The new getters correctly check validity before and after reading the cached count, and they cover invalidation after a re-submit and after the owner is released. One low-severity gap: no mocked test checks a positive count.
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:00 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 00:03 — with
GitHub Actions
Inactive
vuanhphung
approved these changes
Nov 11, 2026
Expose the existing cached affected-row count on Python async statement and reader handles so connector result retrieval can report it without consuming rows. Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
Signed-off-by: Aakash Saravanan <aakash.saravanan@databricks.com>
aakash-saravanan-db
force-pushed
the
aakash-saravanan-db/fix-python-async-rowcount
branch
from
November 11, 2026 20:03
57ec9a6 to
426993a
Compare
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
aakash-saravanan-db
temporarily deployed
to
azure-prod
November 11, 2026 20:03 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python async statement and reader handles do not expose the affected-row count that Rust already caches. The connector therefore cannot populate
cursor.rowcountafter async DML completion.Expose
num_modified_rowsgetters on both Python handle types and delegate the Rust reader accessor to its existing statement count. Preserve positive, zero, and unavailable counts without adding polling or consuming result rows.Validation:
Companion Python connector PR: databricks/databricks-sql-python#1016. The connector requires a kernel release containing these getters.