From 84e0f53836f2a039380b002a9d05ae83aba39fae Mon Sep 17 00:00:00 2001 From: lipeh1 <2489034901@qq.com> Date: Mon, 30 Nov 2026 21:18:12 +0900 Subject: [PATCH] feat(python): register live LanceDB tables with DataFusion (#5203) Python DataFusion queries over a provider registered from `table.to_lance()` read a fixed Lance snapshot. An append from another connection doesn't show up in later queries unless the application registers a new provider. Register a LanceDB Embedded `Table` or `AsyncTable` directly with DataFusion 55.x using `ctx.register_table("items", table)`. The provider shares the LanceDB table handle, so each new scan follows its read consistency interval and checked-out version. The provider supports SQL reads. Re-register after a schema change. The binding checks the DataFusion FFI major before reading the consumer's capsule and keeps scan planning and execution on the LanceDB Tokio runtime. DataFusion remains an optional Python dependency. Closes #2707. Validation on Windows x64 with CPython 3.12 and DataFusion 55.0.0: - Rebuilt the Python extension with the repository's `ci` profile. - `pytest python/tests/docs/test_guide_tables.py -q`: 6 passed, 2 skipped. The regression covers a second connection writing into a registered table, both manual and automatic refresh, version pinning, async table registration, and incompatible DataFusion versions. - A separate smoke test confirmed refresh with a positive read consistency interval. - Cargo formatting, Python Ruff, and Pyright (Linux target) passed. Co-authored-by: lipeih --- Cargo.lock | 139 ++++++++++++++++++ Cargo.toml | 1 + docs/src/python/python.md | 21 +++ python/Cargo.toml | 2 + python/pyproject.toml | 2 +- python/python/lancedb/_lancedb.pyi | 1 + python/python/lancedb/table.py | 6 + python/python/tests/docs/test_guide_tables.py | 63 +++++--- python/src/table.rs | 9 ++ python/src/table/datafusion.rs | 129 ++++++++++++++++ python/uv.lock | 26 ++-- 11 files changed, 366 insertions(+), 33 deletions(-) create mode 100644 python/src/table/datafusion.rs diff --git a/Cargo.lock b/Cargo.lock index a2a8bd2de..14e91e276 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -524,6 +524,12 @@ dependencies = [ "async-trait", ] +[[package]] +name = "async-ffi" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cd9de47399986d5b216c6bef9434dfff1689ab61ba8d1e2720dc5fe5c84083" + [[package]] name = "async-lock" version = "3.4.2" @@ -2591,6 +2597,7 @@ dependencies = [ "datafusion-physical-expr-adapter", "datafusion-physical-expr-common", "datafusion-physical-plan", + "datafusion-proto-models", "datafusion-session", "futures", "glob", @@ -2620,6 +2627,7 @@ dependencies = [ "datafusion-expr", "datafusion-physical-expr-common", "datafusion-physical-plan", + "datafusion-proto-models", "datafusion-session", "futures", "itertools 0.15.0", @@ -2643,6 +2651,7 @@ dependencies = [ "datafusion-expr", "datafusion-physical-expr-common", "datafusion-physical-plan", + "datafusion-proto-models", "datafusion-session", "futures", "object_store 0.13.2", @@ -2666,6 +2675,7 @@ dependencies = [ "datafusion-expr", "datafusion-physical-expr-common", "datafusion-physical-plan", + "datafusion-proto-models", "datafusion-session", "futures", "object_store 0.13.2", @@ -2721,6 +2731,8 @@ dependencies = [ "datafusion-functions-aggregate-common", "datafusion-functions-window-common", "datafusion-physical-expr-common", + "datafusion-proto-common", + "datafusion-proto-models", "indexmap 2.14.0", "itertools 0.15.0", "serde", @@ -2740,6 +2752,39 @@ dependencies = [ "itertools 0.15.0", ] +[[package]] +name = "datafusion-ffi" +version = "55.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58a2da6b361eae9452cf8e2cafadb05b44501a4d965b26760327cb18e0d26c4f" +dependencies = [ + "arrow", + "arrow-schema", + "async-ffi", + "async-trait", + "chrono", + "datafusion-catalog", + "datafusion-common", + "datafusion-datasource", + "datafusion-execution", + "datafusion-expr", + "datafusion-functions-aggregate-common", + "datafusion-physical-expr", + "datafusion-physical-expr-common", + "datafusion-physical-optimizer", + "datafusion-physical-plan", + "datafusion-proto", + "datafusion-proto-common", + "datafusion-session", + "futures", + "libloading", + "log", + "prost", + "semver", + "stabby", + "tokio", +] + [[package]] name = "datafusion-functions" version = "55.2.0" @@ -2916,6 +2961,7 @@ dependencies = [ "datafusion-expr-common", "datafusion-functions-aggregate-common", "datafusion-physical-expr-common", + "datafusion-proto-models", "half", "hashbrown 0.17.1", "indexmap 2.14.0", @@ -2950,6 +2996,7 @@ dependencies = [ "chrono", "datafusion-common", "datafusion-expr-common", + "datafusion-proto-models", "hashbrown 0.17.1", "indexmap 2.14.0", "itertools 0.15.0", @@ -2998,6 +3045,8 @@ dependencies = [ "datafusion-functions-window-common", "datafusion-physical-expr", "datafusion-physical-expr-common", + "datafusion-proto-common", + "datafusion-proto-models", "futures", "half", "hashbrown 0.17.1", @@ -3012,6 +3061,54 @@ dependencies = [ "tokio", ] +[[package]] +name = "datafusion-proto" +version = "55.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "481881a3422072554c8c26a177a4f0a67f4d8c0e2a394a79e551e6bd9a5cec4b" +dependencies = [ + "arrow", + "datafusion-catalog", + "datafusion-catalog-listing", + "datafusion-common", + "datafusion-datasource", + "datafusion-datasource-arrow", + "datafusion-datasource-csv", + "datafusion-datasource-json", + "datafusion-execution", + "datafusion-expr", + "datafusion-functions-table", + "datafusion-physical-expr", + "datafusion-physical-expr-common", + "datafusion-physical-plan", + "datafusion-proto-common", + "datafusion-proto-models", + "object_store 0.13.2", + "prost", +] + +[[package]] +name = "datafusion-proto-common" +version = "55.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a95763d5fa64a88b658ba4ec7314d9c538e2aea749dc88d5ce2afaafbb4c69b8" +dependencies = [ + "arrow", + "datafusion-common", + "prost", +] + +[[package]] +name = "datafusion-proto-models" +version = "55.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c4982d05dee1e0b90b7f3b39845dca7eee5635c550db09158d385b8181bdc6a" +dependencies = [ + "datafusion-common", + "datafusion-proto-common", + "prost", +] + [[package]] name = "datafusion-pruning" version = "55.2.0" @@ -6216,7 +6313,9 @@ dependencies = [ "async-trait", "bytes", "chrono", + "datafusion", "datafusion-common", + "datafusion-ffi", "env_logger", "futures", "lance-arrow", @@ -10429,6 +10528,12 @@ dependencies = [ "digest 0.11.3", ] +[[package]] +name = "sha2-const-stable" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f179d4e11094a893b82fff208f74d448a7512f99f5a0acbd5c679b705f83ed9" + [[package]] name = "sharded-slab" version = "0.1.7" @@ -10730,6 +10835,40 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "stabby" +version = "72.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d53d2428934c46277fafd2d41e39357595aa1e47954c75db2b14ed90632f3cc" +dependencies = [ + "rustversion", + "stabby-abi", +] + +[[package]] +name = "stabby-abi" +version = "72.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f375eae680bb54203ee5e47d4cd2ae7b79c0a79ed90919279f38f500ad53f190" +dependencies = [ + "rustc_version", + "rustversion", + "sha2-const-stable", + "stabby-macros", +] + +[[package]] +name = "stabby-macros" +version = "72.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea664671a576c5f7e32fee291ac123d82af5e92b0689beb3555347c00c76eef1" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "stable_deref_trait" version = "1.2.1" diff --git a/Cargo.toml b/Cargo.toml index e0876b8fe..61dfb0e89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,6 +57,7 @@ datafusion-catalog = "55.0.0" datafusion-common = { version = "55.0.0", default-features = false } datafusion-execution = "55.0.0" datafusion-expr = "55.0.0" +datafusion-ffi = { version = "55.0.0", default-features = false } datafusion-functions = "55.0.0" datafusion-physical-plan = "55.0.0" datafusion-physical-expr = "55.0.0" diff --git a/docs/src/python/python.md b/docs/src/python/python.md index 39e599184..769e23bed 100644 --- a/docs/src/python/python.md +++ b/docs/src/python/python.md @@ -453,6 +453,27 @@ code that used the former LanceDB Enterprise-only argument order. ::: lancedb.RTEWriteSpec +### Registering a table with DataFusion + +With DataFusion Python 55.x installed, register a LanceDB Embedded `Table` or +`AsyncTable` directly with a DataFusion `SessionContext` for SQL reads. +Each new query follows the LanceDB handle's version and +`read_consistency_interval`. The registration uses the table's schema when +registered. Deregister and re-register it after changing its schema. + +```python +from datetime import timedelta + +import lancedb +from datafusion import SessionContext + +db = lancedb.connect("./data", read_consistency_interval=timedelta(0)) +table = db.open_table("items") +ctx = SessionContext() +ctx.register_table("items", table) +rows = ctx.sql("SELECT * FROM items").to_arrow_table() +``` + ## Functions and Jobs Use `progress=True` when waiting for Function registration in a notebook or diff --git a/python/Cargo.toml b/python/Cargo.toml index dfa849299..627d273d4 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -20,7 +20,9 @@ arrow = { workspace = true, features = ["pyarrow"] } async-trait.workspace = true bytes.workspace = true lancedb.workspace = true +datafusion.workspace = true datafusion-common.workspace = true +datafusion-ffi.workspace = true lance-core.workspace = true lance-arrow.workspace = true lance-namespace.workspace = true diff --git a/python/pyproject.toml b/python/pyproject.toml index e05e2c705..b7667b933 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -66,7 +66,7 @@ tests = [ "pyarrow-stubs>=16.0", "pylance==16.0.0b5", "requests>=2.31.0", - "datafusion>=54,<55", + "datafusion>=55,<56", "opentelemetry-sdk>=1.30.0", ] dev = [ diff --git a/python/python/lancedb/_lancedb.pyi b/python/python/lancedb/_lancedb.pyi index 6317f809b..be19b1210 100644 --- a/python/python/lancedb/_lancedb.pyi +++ b/python/python/lancedb/_lancedb.pyi @@ -640,6 +640,7 @@ class QueryDescription: def expires_at(self) -> Optional[datetime]: ... class Table: + def __datafusion_table_provider__(self, session: object) -> object: ... def name(self) -> str: ... def __repr__(self) -> str: ... def is_open(self) -> bool: ... diff --git a/python/python/lancedb/table.py b/python/python/lancedb/table.py index 39af8cebd..5a0cbb6f1 100644 --- a/python/python/lancedb/table.py +++ b/python/python/lancedb/table.py @@ -4807,6 +4807,9 @@ class LanceTable(Table): ds = ds.checkout_version((branch, self.version)) return ds + def __datafusion_table_provider__(self, session: object) -> object: + return self._inner.__datafusion_table_provider__(session) + @property def schema(self) -> pa.Schema: """Return the schema of the table. @@ -7882,6 +7885,9 @@ class AsyncTable: """ return AsyncQuery(self._inner.query(), self) + def __datafusion_table_provider__(self, session: object) -> object: + return self._inner.__datafusion_table_provider__(session) + async def to_lance(self, **kwargs) -> lance.LanceDataset: """Return the Lance dataset backing a LanceDB Embedded table. diff --git a/python/python/tests/docs/test_guide_tables.py b/python/python/tests/docs/test_guide_tables.py index dab8d43e9..b9eb2a991 100644 --- a/python/python/tests/docs/test_guide_tables.py +++ b/python/python/tests/docs/test_guide_tables.py @@ -37,10 +37,6 @@ from datetime import timedelta from lancedb.embeddings import get_registry # --8<-- [end:import-embeddings] -# --8<-- [start:import-ffi-dataset] -from lance import FFILanceTableProvider - -# --8<-- [end:import-ffi-dataset] # --8<-- [start:import-pydantic-basemodel] from pydantic import BaseModel @@ -349,25 +345,54 @@ def test_table_with_embedding(): # --8<-- [end:create_table_with_embedding] -def test_sql_query(): - db = lancedb.connect("data/sample-lancedb") - data = [ - {"vector": [1.1, 1.2], "lat": 45.5, "long": -122.7}, - {"vector": [0.2, 1.8], "lat": 40.1, "long": -74.1}, - ] - table = db.create_table("lance_table", data) +@pytest.mark.parametrize( + ("interval", "ids_after_write"), [(None, [1]), (timedelta(0), [1, 2])] +) +def test_sql_query(tmp_path, interval, ids_after_write): + writer = lancedb.connect(tmp_path).create_table("items", [{"id": 1}]) + reader = lancedb.connect(tmp_path, read_consistency_interval=interval) + table = reader.open_table("items") - # --8<-- [start:lance_sql_basic] ctx = SessionContext() - ffi_lance_table = FFILanceTableProvider( - table.to_lance(), with_row_id=False, with_row_addr=False - ) + ctx.register_table("items", table) - ctx.register_table_provider("ffi_lance_table", ffi_lance_table) - ctx.table("ffi_lance_table") + def query_ids(): + return ( + ctx.sql("SELECT id FROM items WHERE id >= 1 ORDER BY id") + .to_arrow_table()["id"] + .to_pylist() + ) - ctx.sql("SELECT vector FROM ffi_lance_table") - # --8<-- [end:lance_sql_basic] + assert query_ids() == [1] + writer.add([{"id": 2}]) + assert query_ids() == ids_after_write + + table.checkout_latest() + assert query_ids() == [1, 2] + + table.checkout(1) + assert query_ids() == [1] + + +@pytest.mark.asyncio +async def test_register_async_table(tmp_path): + db = await lancedb.connect_async(tmp_path) + table = await db.create_table("items", [{"id": 1}]) + ctx = SessionContext() + ctx.register_table("items", table) + + await table.add([{"id": 2}]) + rows = ctx.sql("SELECT id FROM items ORDER BY id").to_arrow_table() + assert rows["id"].to_pylist() == [1, 2] + + +def test_datafusion_version_guard(tmp_path, monkeypatch): + import datafusion + + table = lancedb.connect(tmp_path).create_table("items", [{"id": 1}]) + monkeypatch.setattr(datafusion, "__version__", "54.0.0") + with pytest.raises(ImportError, match="requires DataFusion"): + table.__datafusion_table_provider__(SessionContext()) @pytest.mark.skip diff --git a/python/src/table.rs b/python/src/table.rs index 8690acb83..816594af3 100644 --- a/python/src/table.rs +++ b/python/src/table.rs @@ -44,6 +44,7 @@ use pyo3::{ }, }; +mod datafusion; mod scannable; /// Keyword arguments shared by `refresh_column` and `refresh_column_async`. @@ -1576,6 +1577,14 @@ impl Table { Python::attach(|py| schema.to_pyarrow(py).map(|obj| obj.unbind())) } + fn __datafusion_table_provider__<'py>( + &self, + py: Python<'py>, + session: Bound<'py, PyAny>, + ) -> PyResult> { + datafusion::table_provider(py, self.inner_ref()?, session) + } + #[pyo3(signature = (data, mode, progress=None, write_parallelism=None, allow_external_blob_outside_bases=false, retries=None))] pub fn add<'a>( self_: PyRef<'a, Self>, diff --git a/python/src/table/datafusion.rs b/python/src/table/datafusion.rs new file mode 100644 index 000000000..1ac50825f --- /dev/null +++ b/python/src/table/datafusion.rs @@ -0,0 +1,129 @@ +// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright The LanceDB Authors + +use std::{future::poll_fn, pin::pin, sync::Arc}; + +use async_trait::async_trait; +use datafusion::{ + arrow::datatypes::SchemaRef, + catalog::{Session, TableProvider}, + logical_expr::{Expr, TableProviderFilterPushDown, TableType}, + physical_plan::ExecutionPlan, +}; +use datafusion_common::Result as DataFusionResult; +use datafusion_ffi::{ + proto::logical_extension_codec::FFI_LogicalExtensionCodec, table_provider::FFI_TableProvider, +}; +use lancedb::{Table, table::datafusion::BaseTableAdapter}; +use pyo3::{ + Bound, PyAny, PyResult, Python, + exceptions::{PyImportError, PyNotImplementedError}, + types::{PyAnyMethods, PyCapsule, PyCapsuleMethods}, +}; +use tokio::runtime::Handle; + +use crate::{error::PythonErrorExt, runtime::block_on_interruptible}; + +/// Runs scan planning with LanceDB's Tokio handle and exposes reads to DataFusion. +#[derive(Debug)] +struct DataFusionTable { + adapter: BaseTableAdapter, + runtime: Handle, +} + +#[async_trait] +impl TableProvider for DataFusionTable { + fn schema(&self) -> SchemaRef { + self.adapter.schema() + } + + fn table_type(&self) -> TableType { + self.adapter.table_type() + } + + fn supports_filters_pushdown( + &self, + filters: &[&Expr], + ) -> DataFusionResult> { + self.adapter.supports_filters_pushdown(filters) + } + + async fn scan( + &self, + state: &dyn Session, + projection: Option<&Vec>, + filters: &[Expr], + limit: Option, + ) -> DataFusionResult> { + let mut scan = pin!(self.adapter.scan(state, projection, filters, limit)); + // DataFusion's extension polls this future on its own threads. The FFI + // handles the runtime for execution, but scan planning needs it too. + poll_fn(|cx| { + let _runtime = self.runtime.enter(); + scan.as_mut().poll(cx) + }) + .await + } +} + +pub(super) fn table_provider<'py>( + py: Python<'py>, + table: &Table, + session: Bound<'py, PyAny>, +) -> PyResult> { + if table.as_native().is_none() { + return Err(PyNotImplementedError::new_err( + "DataFusion table registration is only supported for LanceDB Embedded tables", + )); + } + + // Check the Python consumer's major version before reading its FFI struct. + let major = datafusion_ffi::version(); + let version: String = py.import("datafusion")?.getattr("__version__")?.extract()?; + if version.split('.').next().and_then(|v| v.parse().ok()) != Some(major) { + return Err(PyImportError::new_err(format!( + "LanceDB table registration requires DataFusion {major}.x, found {version}" + ))); + } + + // SessionContext supplies a session; Schema registration supplies the codec + // capsule directly. Both are part of DataFusion's table provider protocol. + let capsule = if session.hasattr("__datafusion_logical_extension_codec__")? { + session.call_method0("__datafusion_logical_extension_codec__")? + } else { + session + }; + let capsule = capsule.cast::()?; + let codec_ptr = capsule + .pointer_checked(Some(c"datafusion_logical_extension_codec"))? + .cast::(); + // SAFETY: The named capsule comes from the DataFusion table provider + // protocol above, and the Python consumer uses the same FFI major version. + let codec = unsafe { codec_ptr.as_ref() }; + let codec_major = unsafe { (codec.version)() }; + if codec_major != major { + return Err(PyImportError::new_err(format!( + "LanceDB requires DataFusion codec ABI {major}, found {codec_major}" + ))); + } + // Retain the codec after the source capsule goes out of scope. + let codec = codec.clone(); + + let table = Arc::clone(table.base_table()); + let (adapter, runtime) = py.detach(|| { + block_on_interruptible(async move { + let adapter = BaseTableAdapter::try_new(table).await.infer_error()?; + Ok((adapter, Handle::current())) + }) + })?; + let provider = FFI_TableProvider::new_with_ffi_codec( + Arc::new(DataFusionTable { + adapter, + runtime: runtime.clone(), + }), + true, + Some(runtime), + codec, + ); + PyCapsule::new_with_value(py, provider, c"datafusion_table_provider") +} diff --git a/python/uv.lock b/python/uv.lock index 86a1611b6..ff17033fb 100644 --- a/python/uv.lock +++ b/python/uv.lock @@ -897,25 +897,25 @@ nvtx = [ [[package]] name = "datafusion" -version = "54.0.0" +version = "55.0.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cloudpickle" }, { name = "pyarrow" }, { name = "typing-extensions", marker = "python_full_version < '3.13'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/60/90/886f7e9cf827f07ebd60bd293e54e0a028a50dd49bbaef0ee42aae1981ea/datafusion-54.0.0.tar.gz", hash = "sha256:cfe7e8dfc026efc05824f49b53ad6a72caf5c2d6820759b6212a09e245a427ed", size = 276448, upload-time = "2026-06-29T11:19:34.816Z" } +sdist = { url = "https://files.pythonhosted.org/packages/54/00/ffa23f15be4c8fba69ec361d69c2db80967660336dbdb080e665b4a70fdd/datafusion-55.0.0.tar.gz", hash = "sha256:12ac1a7666cd61533f610d38173347aa42189b7a1a78c78bb166052b680ffb6d", size = 318430, upload-time = "2026-10-12T16:20:44.776Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/46/58/4c5b981e3d9ade32a906c15a4941eef50c9b862781cdc14bf4dff48d026a/datafusion-54.0.0-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:946f55e48b8d523d7b4ac106bdf588b4493c2c66f81877d6952aafeaf7c3ec73", size = 39810553, upload-time = "2026-06-29T11:19:02.1Z" }, - { url = "https://files.pythonhosted.org/packages/66/e5/5e4dbd42ce9a2affb3be90d9ab17cebde1a6f28b0d9fb4b83d612d5c8e42/datafusion-54.0.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:2a3bf43185c7e43e25242e5fb17b6a11b86bf976434c0bc493fdedbd9a080969", size = 37145255, upload-time = "2026-06-29T11:19:05.491Z" }, - { url = "https://files.pythonhosted.org/packages/c6/5e/dbb9e6e3e5006d34f295d7ac73f1302c8f2df140666402a06e6c55028edb/datafusion-54.0.0-cp310-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:9432bf162381e9282cbc74915b8b773895de18be836f7e3f6d0de4d981f24630", size = 38853856, upload-time = "2026-06-29T11:19:08.732Z" }, - { url = "https://files.pythonhosted.org/packages/a8/81/e69008e3479f4d0134875bc4ae39503bedcd55ca2597e71392c963c651b4/datafusion-54.0.0-cp310-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:3bcd4d213fa74710e75e6e182cc468c2bdbc5ffc74a08c8155d414fbbfa1b3f6", size = 41050149, upload-time = "2026-06-29T11:19:12.108Z" }, - { url = "https://files.pythonhosted.org/packages/61/d4/8ba6e3fe3291c9ccc94b5ca3ec3c1fbcbfbe5ece5ffb965e4550844e2c56/datafusion-54.0.0-cp310-abi3-win_amd64.whl", hash = "sha256:b934e097e1bdca7d5768a81ac1bc4a1812cb459269f8b1a5d892a5d930f18376", size = 43444869, upload-time = "2026-06-29T11:19:15.963Z" }, - { url = "https://files.pythonhosted.org/packages/9d/41/5608323226f21a0fa180823c531dbc0ed270e9b694f299b7647505cb6a06/datafusion-54.0.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:c4e79048da82ad89b768bd0be7df39254cd2a0afe2b719d1f129e8a7229af683", size = 39796248, upload-time = "2026-06-29T11:19:19.208Z" }, - { url = "https://files.pythonhosted.org/packages/18/81/392ee323104ab14ca689384723b69e137064a828233c165574f97a74c0e9/datafusion-54.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:fe57038003b18e28b90752c1e32b44af74ec4f552a1904aee725e1129a00c447", size = 37153577, upload-time = "2026-06-29T11:19:22.397Z" }, - { url = "https://files.pythonhosted.org/packages/40/c4/ebd5ef5349ecbea7f5f9da76c213581c13e7bbe1b5735c9925b279eeb4eb/datafusion-54.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:574f642832a106456cfc4f32aa82484c504fc32f4be2b510202bcb579de8e6d1", size = 38849839, upload-time = "2026-06-29T11:19:25.783Z" }, - { url = "https://files.pythonhosted.org/packages/5a/b9/2383d30d317bb913cab97dbf2e6e1d5f37f594860d5c5bc176e025cf7d4a/datafusion-54.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:796fd5683927443c5bc61999d00b9007ef9b5ce107725ea8d241df718860985d", size = 41074623, upload-time = "2026-06-29T11:19:29.119Z" }, - { url = "https://files.pythonhosted.org/packages/35/5c/553fd1107dede0a56727fda7216a7198d41394f2d19697f4fb104cc695ea/datafusion-54.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:64973c63874ec31670dd97b32b18af7b07fad679cb20d58ed154038e3a5c204e", size = 43438801, upload-time = "2026-06-29T11:19:32.799Z" }, + { url = "https://files.pythonhosted.org/packages/ad/fd/de0aff300301b46ae5b334cca5945bed3a49bbdf07053eec325ba4f77118/datafusion-55.0.0-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:dbb4d001a4151a1751654ea599a7c475985b0abe7b24721ed4436ac9cb5c0a2e", size = 41483433, upload-time = "2026-10-12T16:20:09.878Z" }, + { url = "https://files.pythonhosted.org/packages/af/e0/859fd68a5db3a21e3f163060c347ec14f88b813b9f5dda5599f56ef2a91d/datafusion-55.0.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:8e2621e55aaa84928b0c37b8e9c18ca73d792f3de98e3955026f6de80ef43f2e", size = 39065766, upload-time = "2026-10-12T16:20:13.736Z" }, + { url = "https://files.pythonhosted.org/packages/c9/da/7eee5478bec915b22e3929122138a7550ae4208a6c012d0a994fcfbb005c/datafusion-55.0.0-cp310-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:69b3f064a9671478e89d62d945ef61371d0760f3db2b8b71729db991099d2fbe", size = 40735344, upload-time = "2026-10-12T16:20:17.723Z" }, + { url = "https://files.pythonhosted.org/packages/60/26/c1758148a1ff148fc4ce211bcf6a302a25aefbf44499c58c9f6d45f520f2/datafusion-55.0.0-cp310-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:4901c5ab4f77e6f808550e8effaa643f0a6b6b28f5dcacc883485f4825eff39d", size = 43013470, upload-time = "2026-10-12T16:20:21.076Z" }, + { url = "https://files.pythonhosted.org/packages/4a/77/647677c9c9f9fcdd351e3a7e5c856f22e6e91dc56a0dcc76246c82017e7b/datafusion-55.0.0-cp310-abi3-win_amd64.whl", hash = "sha256:725e7bc53f4c5afb97dbe46456d8323e215fb8defe4e3586d25ee33b98f29ec9", size = 45744014, upload-time = "2026-10-12T16:20:24.864Z" }, + { url = "https://files.pythonhosted.org/packages/d0/05/81cfb02a359ac3e7a7ebc525a2dba974079747955b4d8ebaf6c44351a66f/datafusion-55.0.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:48cb74fe28f41f1fb80e6962b48c02faaf47a23a1a1e089bfc0890e343f8ffd0", size = 41571185, upload-time = "2026-10-12T16:20:28.398Z" }, + { url = "https://files.pythonhosted.org/packages/19/63/035fe815bec9e04e0a00fafe098cd50e8247053ef023bb6fb80be276d34e/datafusion-55.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:449fec02dd8d5632218bf8c0d0ef94bbf4ca6543dc3fdc81560faf556505ffaf", size = 39030418, upload-time = "2026-10-12T16:20:31.921Z" }, + { url = "https://files.pythonhosted.org/packages/0f/8d/851333db3ce43472ca0e68a429a89255a29d277c891c28d8171ed4d5817e/datafusion-55.0.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:d2d1d9a9524d14f1a1e52c893763df863739f76e68e628bc3f2aec4b784e1a8f", size = 40743918, upload-time = "2026-10-12T16:20:35.206Z" }, + { url = "https://files.pythonhosted.org/packages/d5/62/abb5bf0cee449a8b663d09f8d63a6a74a61e933aba180e77e87a149f1e01/datafusion-55.0.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:b0775473f4ebb7bc77292ee9805e05ec1a58c453aab8640e673efc00eccc66f7", size = 43005693, upload-time = "2026-10-12T16:20:38.684Z" }, + { url = "https://files.pythonhosted.org/packages/4b/d0/bdc7ea7072c3925f3977e13e1e754e145fa42eb40bb5c1abff8028e0f791/datafusion-55.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b7191ff60defee8d9d9e5ff6aeefdd961bc200897cd60440b02d2a0f316902ef", size = 45733022, upload-time = "2026-10-12T16:20:42.607Z" }, ] [[package]] @@ -1877,7 +1877,7 @@ requires-dist = [ { name = "botocore", marker = "extra == 'embeddings'", specifier = ">=1.31.57" }, { name = "cohere", marker = "extra == 'embeddings'", specifier = ">=4.0" }, { name = "colpali-engine", marker = "extra == 'embeddings'", specifier = ">=0.3.10" }, - { name = "datafusion", marker = "extra == 'tests'", specifier = ">=54,<55" }, + { name = "datafusion", marker = "extra == 'tests'", specifier = ">=55,<56" }, { name = "deprecation", specifier = ">=2.1.0" }, { name = "duckdb", marker = "extra == 'tests'", specifier = ">=0.9.0" }, { name = "google-genai", marker = "extra == 'embeddings'", specifier = ">=1.0.0" },