You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Surfaced by the multi-language coverage fan-out while conformance-testing these SPEC-IDs against databricks/databricks-sql-python.
Each is committed as an expected-failure (xfail) test in the coverage PR — the test asserts the CORRECT behavior and stays red until this driver is fixed.
STATEMENT-023: cursor.rowcount returns the -1 unknown/NA sentinel for DDL (CREATE TABLE) and SELECT instead of normalizing to 0; it is initialised to -1 and only overwritten when the server reports numModifiedRows, which is None for those statements
Activity
cathleeny commentedon Dec 3, 2026
This one isn't a bug. Per PEP 249, a
rowcountof-1means the row count is unknown or doesn't apply to the statement: https://peps.python.org/pep-0249/#rowcountSince 4.4.0 the connector reports the affected-row count for DML statements (INSERT/UPDATE/DELETE/MERGE) and
-1for SELECT and DDL.