Skip to content

CHORE: Update mssql-python-rs dependency to 0.5.0 - #896

Merged
ttk (Theekshna) merged 1 commit into
mainfrom
dev/theekshna/update-mssql-python-rs-0.5.0
Nov 13, 2026
Merged

ttk (Theekshna) merged 1 commit into
mainfrom
dev/theekshna/update-mssql-python-rs-0.5.0

Conversation

@Theekshna

@Theekshna ttk (Theekshna) commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Work Item / Issue Reference

AB#N/A

GitHub Issue: #895


Summary

Update released mssql-python-rs dependency pin to version 0.5.0 (published to PyPI by mssql-rs release build 191738).

  • eng/versions/mssql-python-rs.version: 0.4.0 -> 0.5.0
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 13, 2026 04:35
@github-actions github-actions Bot added the pr-size: small Minimal code update label Nov 13, 2026
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

PR Performance Report

✅ No regression detected

No consistent slowdowns detected across all 2 environments.

0 IMPROVEMENTS 0 SLOWDOWNS 2/2 ENVIRONMENTS

Coverage: 2 of 2 environments completed. Advisory result; does not block merging.

Performance diagnostics

Phase times are inclusive diagnostics and must not be added together. They identify where measured time changed, not why it changed.

No affected phases or call-count changes were recorded.

All database tasks and timings

Unix / SQL Server 2022

Database task Before After Paired change Result
Connection opening 10.237 ms 10.185 ms -0.5% no signal
SELECT queries 0.990 ms 1.003 ms +0.2% no signal
Row insertion 30.426 ms 30.363 ms -0.1% no signal
Executemany inserts 159.571 ms 159.820 ms +0.2% no signal
Fetch-all queries 119.123 ms 120.597 ms +0.8% no signal
Row-by-row fetching 4.981 ms 4.944 ms -1.6% no signal
Batched row fetching 118.077 ms 117.071 ms -0.2% no signal
Transaction commit and rollback 104.144 ms 104.952 ms +1.6% no signal
Arrow row fetching 88.290 ms 89.884 ms +1.8% no signal
100,000-row insertion 351.320 ms 347.547 ms -1.1% no signal
Row fetching in batches of 100 121.394 ms 124.038 ms +2.0% no signal
Row fetching in batches of 10,000 128.575 ms 128.857 ms +0.2% no signal
Repeated positional queries 31.664 ms 31.952 ms +0.8% no signal
Repeated named-parameter queries 32.730 ms 31.890 ms -1.4% no signal
Legacy 100,000-row insertion 262.199 ms 273.554 ms +4.3% no signal
Insertion with explicit input sizes 397.913 ms 391.505 ms -0.3% no signal
Joined aggregation queries 178.406 ms 185.550 ms -0.4% no signal
Large joined-result fetching 192.347 ms 192.920 ms +0.3% no signal
1.2-million-row fetching 3495.736 ms 3486.628 ms -0.5% no signal
Common table expression queries 5.363 ms 5.294 ms -0.6% no signal
256 KiB VARCHAR(MAX) / fetchall() 1.575 ms 1.327 ms -17.6% no signal
10,000 scalar values / fetchval() (debug disabled) 17.146 ms 16.832 ms -1.9% no signal
10,000 output-converted rows / fetchall() 19.888 ms 19.310 ms -1.8% no signal
10,000 output-converted rows / fetchmany(1000) 24.621 ms 23.286 ms -5.4% no signal
10,000 rows x 32 columns / dict(row._mapping) (warm) 32.431 ms 31.566 ms +0.5% no signal

Unix / SQL Server 2025

Database task Before After Paired change Result
Connection opening 80.869 ms 81.384 ms +0.8% no signal
SELECT queries 0.995 ms 1.004 ms +0.7% no signal
Row insertion 30.216 ms 30.151 ms -0.4% no signal
Executemany inserts 153.765 ms 152.160 ms -0.6% no signal
Fetch-all queries 120.026 ms 120.266 ms +0.0% no signal
Row-by-row fetching 5.004 ms 5.013 ms -0.7% no signal
Batched row fetching 116.263 ms 118.668 ms +0.8% no signal
Transaction commit and rollback 106.355 ms 105.471 ms -1.5% no signal
Arrow row fetching 89.670 ms 90.142 ms +0.7% no signal
100,000-row insertion 360.869 ms 345.852 ms +0.0% no signal
Row fetching in batches of 100 122.176 ms 121.343 ms -0.4% no signal
Row fetching in batches of 10,000 141.333 ms 134.242 ms -10.3% no signal
Repeated positional queries 31.566 ms 31.152 ms -0.7% no signal
Repeated named-parameter queries 31.844 ms 31.549 ms -1.0% no signal
Legacy 100,000-row insertion 264.187 ms 257.950 ms -1.1% no signal
Insertion with explicit input sizes 404.803 ms 389.412 ms -0.1% no signal
Joined aggregation queries 168.181 ms 165.482 ms -1.6% no signal
Large joined-result fetching 191.176 ms 184.637 ms -3.1% no signal
1.2-million-row fetching 3486.539 ms 3491.716 ms +0.2% no signal
Common table expression queries 5.070 ms 5.162 ms +1.1% no signal
256 KiB VARCHAR(MAX) / fetchall() 1.439 ms 1.395 ms -3.1% no signal
10,000 scalar values / fetchval() (debug disabled) 17.098 ms 16.930 ms -0.4% no signal
10,000 output-converted rows / fetchall() 19.300 ms 19.272 ms -0.4% no signal
10,000 output-converted rows / fetchmany(1000) 23.031 ms 23.105 ms +0.6% no signal
10,000 rows x 32 columns / dict(row._mapping) (warm) 31.809 ms 31.609 ms -0.7% no signal
Build and measurement details

ADO build 191774

PR head: f379987d7d33fcbe65aa5763b58970c9d3c8d3c4
Base: bd83897c14ad9bd5489001ab37e5d836ced76896
Measured merge: 35c571da70dcacdb1819e34b703dd06f008e45e6

  • Unix / SQL Server 2022: Python 3.12.3, x86_64, SQL 16.0.4325.4; 5 paired comparisons and 1 warmup.
  • Unix / SQL Server 2025: Python 3.12.3, x86_64, SQL 17.0.5065.9; 5 paired comparisons and 1 warmup.

A consistent change requires more than 20% median paired movement, at least 1 ms between the median runtimes, and at least 80% of pairs exceeding the relative threshold in the same direction. A slowdown without enough pair agreement is reported as inconsistent.

The displayed change is the median of paired before-and-after ratios. It is not recalculated from the two displayed median runtimes.

Both revisions use profiling-enabled builds on the same agent and database, with alternating order and discarded warmups. Results are diagnostic and do not represent production-wheel latency.

Raw samples and logs are attached to the ADO run as profiler-* artifacts.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the Rust runtime dependency pin update.

No open issues 🎉

What changed in this PR

Updates the released Rust runtime dependency used by mssql-python, addressing #895 through the version-pin mechanism established in #868.

Changes:

  • Bumps mssql-python-rs from 0.4.0 to 0.5.0.
  • Limits the change to the dependency pin; no driver code or pipeline logic changes.
File Description
eng/​versions/​mssql-python-rs.version Pins the released Rust runtime dependency to 0.5.0.

Review effort: Balanced

@Theekshna
ttk (Theekshna) marked this pull request as ready for review November 13, 2026 04:38
@Theekshna
ttk (Theekshna) enabled auto-merge (squash) November 13, 2026 04:43
@github-actions

Copy link
Copy Markdown

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

86%


📈 Total Lines Covered: 11549 out of 13366
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

No lines with coverage information in this diff.


📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
mssql_python.pybind.performance_counter.hpp: 0.7%
mssql_python.pybind.logger_bridge.cpp: 57.9%
mssql_python.pybind.ddbc_bindings.h: 65.5%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python._native_fetch.py: 77.2%
mssql_python.__init__.py: 80.8%
mssql_python.pybind.row_mapping_cache.hpp: 81.5%
mssql_python.pybind.ddbc_bindings.cpp: 82.4%
mssql_python.pybind.connection.connection_pool.cpp: 82.5%
mssql_python.logging.py: 86.1%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

@Theekshna
ttk (Theekshna) merged commit 0401492 into main Nov 13, 2026
37 of 38 checks passed
@Theekshna
ttk (Theekshna) deleted the dev/theekshna/update-mssql-python-rs-0.5.0 branch November 13, 2026 09:12
Jahnvi Thakkar (jahnvi480) added a commit that referenced this pull request Nov 18, 2026
[AB#50320](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/50320)

### Summary

Prepare mssql-python 1.18.0 using the approved customer-facing change
inventory since v1.17.0.

#### Enhancements

- Accept APP/Application Name across synchronous, async and bulk-copy
paths; note the async/bulk-copy default application-name change to
MSSQL-Python (#884).
- Reduce row-to-dictionary, single-row fetch, output-converter batch and
fetchmany(1) text-processing overhead (#847, #858, #852, #891).
- Cache single-pass pyformat conversion and retain compatible parameter
bindings for prepared-statement reuse (#888, #886).
- Include mssql-python-rs 0.5.0 improvements: Rust-backed execution,
macOS Strict TLS and table-valued parameters in the opt-in Rust ODBC
provider (#896).

#### Bug Fixes

- Avoid unsupported isolation reset when closing pooled Azure Synapse
connections (#889).
- Respect explicit positive connection timeouts during pooled checkout
(#897).
- Coordinate Arrow reader cross-thread shutdown/cancellation (#892).
- Preserve SQL literal, identifier, comment and escaped-percent behavior
during pyformat conversion (#888).
- Include Rust-backed timeout, prepared-statement lifetime/cancellation,
isolation-change, small-stack connection, streaming-order and
SQL_VARIANT decoding fixes (#896).

#### Version

- Bump mssql_python.__version__ and setup.py from 1.17.0 to 1.18.0.
- Replace the previous PyPI highlights with the approved 1.18.0
inventory.
- Change exactly three release files; no runtime implementation or
dependency-pin changes in this PR.

### Validation

- Passed: pinned full-directory Black check, staged Python formatting
hook, release-version/highlights/approved-PR inventory checks, and git
diff --check.
- Not run locally: native rebuild and full integration suite. The
isolated project environment lacks runtime/test dependencies and
DB_CONNECTION_STRING is unset. No integration-test success is claimed;
release qualification remains required.

### Release gates

- Keep this PR unmerged until the required PyPI and Conda
release/verification gates complete.
- Rust dependency verified: mssql-python-rs==0.5.0 was built
successfully by ADO build 191702 from stable commit 2f6ab0fa…. Release
run 191738 successfully verified/staged and published the wheels through
ESRP. All nine wheels are non-yanked on PyPI, and their advertised
SHA256 digests match the staging log. There is no wheel-build or
publication blocker. The overall release run failed on Guardian findings
and dependency-update automation; any required Guardian disposition
remains separate and unresolved.
- Rust release-source comparison: 0.4.0 at
0c3e3c1436b1234d4e838087ff11140ba68b43a5 to 0.5.0 at
2f6ab0faf2a3a4dbad7dc8f0c4cfe2980eabf41d, verified against version
declarations and ADO release sources.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jahnvi Thakkar <61936179+jahnvi480@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-size: small Minimal code update

3 participants