---
title: "Introducing Apache Arrow Support in mssql-python"
description: "mssql-python can now fetch SQL Server result sets directly into Apache Arrow buffers, filled by a C++ fetch loop, so no Python object is created per row."
url: "https://swe.quest/articles/introducing-apache-arrow-support-in-mssql-python-e10136b97e324bc3"
canonical: "https://devblogs.microsoft.com/python/introducing-apache-arrow-support-in-mssql-python/"
source: "Microsoft for Python Developers"
published: "2026-05-04"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 6
tags: ["python","analytics","performance","databases"]
---

# Introducing Apache Arrow Support in mssql-python

A post on [Microsoft for Python Developers](https://swe.quest/sources/ms-python.md), published 2026-05-04, 6 min read, Announcement. Original: [https://devblogs.microsoft.com/python/introducing-apache-arrow-support-in-mssql-python/](https://devblogs.microsoft.com/python/introducing-apache-arrow-support-in-mssql-python/)

## Summary

mssql-python can now fetch SQL Server result sets directly into Apache Arrow buffers, filled by a C++ fetch loop, so no Python object is created per row. Polars, Pandas (ArrowDtype) and DuckDB can then consume the data zero-copy through the Arrow C Data Interface. Three new cursor methods cover the main patterns: arrow\_batch returns one RecordBatch, arrow returns a full Table (watch peak memory), and arrow\_reader streams batches lazily, with batch\_size trading throughput against memory. Gains are largest for temporal types like DATETIMEOFFSET, but NVARCHAR is currently slower on Linux because of the UTF-16 to UTF-8 conversion path, and a fix is planned.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Python](https://swe.quest/tags/python.md) (Languages)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- Python DB-API cursors ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- DataFrame libraries

## Keywords

Apache Arrow, mssql-python, SQL Server, Polars, pyarrow, DuckDB, Arrow C Data Interface

## Related posts

- [ClickHouse and Power BI, columnar end to end: the Arrow Flight connector is in public preview](https://swe.quest/articles/clickhouse-and-power-bi-columnar-end-to-end-the-arrow-flight-connector-is-in-319079df226af9e9.md): ClickHouse · 2026-11-19 · Medium · 7 min read · Analytics & OLAP, Networking, Performance engineering
  ClickHouse's new Power BI connector, now in public preview, talks Arrow Flight SQL over TLS-encrypted gRPC.
- [Ducks in a Column](https://swe.quest/articles/ducks-in-a-column-ce42623eb848a791.md): DuckDB · 2026-11-10 · Medium · 12 min read · SQL, Analytics & OLAP, Query engines
  DuckDB stores data by column and processes it in vectors of 2,048 values, which drives its compression, projection pushdown and aggregation speed.
- [Introducing the SQL Console on Datasets](https://swe.quest/articles/introducing-the-sql-console-on-datasets-89aa5e3e1204ae2f.md): Hugging Face · 2024-09-17 · Medium · 5 min read · SQL, Analytics & OLAP, WebAssembly, Model training
  Hugging Face Hub datasets now have a one-click SQL Console that runs DuckDB WASM entirely in the browser against each dataset's Parquet files, with views created per split and config.
- [How we made querying Pandas DataFrames with chDB 87x faster](https://swe.quest/articles/how-we-made-querying-pandas-dataframes-with-chdb-87x-faster-1ee5b7d8017e769d.md): ClickHouse · 2024-08-29 · Medium · 8 min read · Python, Performance engineering, Query engines, Analytics & OLAP, C & C++
  chDB, the in-process embedded ClickHouse, sped up SQL queries over Pandas DataFrames 87x by replacing its original Parquet serialize/deserialize round-trip through file descriptors with a native Python table engine that reads Python objects directly.
- [One Driver, One Format, Every Language: ADBC](https://swe.quest/articles/one-driver-one-format-every-language-adbc-cd7930c89ffe6678.md): ClickHouse · 2026-07-10 · Medium · 12 min read · Analytics & OLAP, Databases, Ruby, Rust, Data pipelines
  ClickHouse released an official ADBC (Arrow Database Connectivity) driver, written in Rust, that returns query results as Apache Arrow end to end with no row-oriented conversion or staging step.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
