Skip to main content

Native Polars I/O plugin for Delta Lake, backed by delta-kernel-rs.

Project description

polars-deltalake

Native Polars I/O plugin for Delta Lake, backed by delta-kernel-rs.

import polars as pl
from polars_deltalake import scan_delta

lf = scan_delta("s3://bucket/path/to/table")
df = lf.filter(pl.col("region") == "eu").select("id", "value").collect()

The plugin pushes projection, slice (n_rows), and predicate filters into the kernel scan. Predicates that don't map to a kernel-supported shape fall back to Polars-side filtering after the scan.

scan_cdf streams a Delta table's Change Data Feed as a LazyFrame between two commit versions:

from polars_deltalake import scan_cdf

lf = scan_cdf("s3://bucket/path/to/table", start_version=10, end_version=20)
df = lf.filter(pl.col("_change_type") == "update_postimage").collect()

Output rows carry the table's columns plus _change_type, _commit_version, and _commit_timestamp. Requires delta.enableChangeDataFeed = true on the table.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

polars_deltalake-1.2.1-cp310-abi3-win_amd64.whl (22.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

polars_deltalake-1.2.1-cp310-abi3-musllinux_1_2_x86_64.whl (20.3 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

polars_deltalake-1.2.1-cp310-abi3-musllinux_1_2_aarch64.whl (19.0 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

polars_deltalake-1.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

polars_deltalake-1.2.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

polars_deltalake-1.2.1-cp310-abi3-macosx_11_0_arm64.whl (18.7 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

polars_deltalake-1.2.1-cp310-abi3-macosx_10_13_x86_64.whl (20.3 MB view details)

Uploaded CPython 3.10+macOS 10.13+ x86-64

File details

Details for the file polars_deltalake-1.2.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for polars_deltalake-1.2.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5d064a839f1ade1efba451b5d17ece837be13528bab7ae497145b5d8e8336a2d
MD5 f90fae53009197a6d0fc1874ec0c7e13
BLAKE2b-256 fbac2d0e54676a6500d98b814aa2636382599062b5a298769fa3c88ad94a7065

See more details on using hashes here.

File details

Details for the file polars_deltalake-1.2.1-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for polars_deltalake-1.2.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ab03e464bec11f232f8d36976c980c1d4afa5003596cc7021133d1a22137dbf1
MD5 167381768f6c4e67d439e16ec8f8e8fe
BLAKE2b-256 f8fd8c03d7ca126551f80a54c06a8597779c43cc3b057b273d881291055b6bec

See more details on using hashes here.

File details

Details for the file polars_deltalake-1.2.1-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for polars_deltalake-1.2.1-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 810f37a7dbaf507f0ccad0c065eba19eb506eefcee45eea36e3586bc6d18ffdb
MD5 502dac2d3b369e37eb9cdf451e08eef8
BLAKE2b-256 66831b0f697edba3b2aaac834e3b92467f80d921b6749c4bf60fdf670720bd42

See more details on using hashes here.

File details

Details for the file polars_deltalake-1.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for polars_deltalake-1.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e4278b534312ba57397833e6d93360204f632748634793aa403013571074c106
MD5 ff171cc64d4457501a1fb766bfd3cde1
BLAKE2b-256 57df65796d6f915c494b65f64d213051a1e8f6cb0c99d607ded1e2f3797e295d

See more details on using hashes here.

File details

Details for the file polars_deltalake-1.2.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for polars_deltalake-1.2.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c1f7b5e5ecd43aae4dccdc8e00954f556a4ff5678fe410a0406b7d8fd3913006
MD5 8c4ae27c0f28455334387ca00a66e1d2
BLAKE2b-256 86d064a6148e5e3d34be7cca8842478aa4fec01b53733c9a72f91b0248b92923

See more details on using hashes here.

File details

Details for the file polars_deltalake-1.2.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_deltalake-1.2.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af60c364c822176144f575db01fe66ca2975859d40924bf4e4424b179ad78115
MD5 e60d6e2461fb0625aaa5881c4539ac82
BLAKE2b-256 3bd8c583f132238f549d77a696638ac951f8ae49d1c52095330c9e26dba44610

See more details on using hashes here.

File details

Details for the file polars_deltalake-1.2.1-cp310-abi3-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for polars_deltalake-1.2.1-cp310-abi3-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 258a4b81996b130583df94b4c661d06d75c2d9c7bc2cd8f52f588e51e3973026
MD5 453ccf6e2320316d15fffb3253df3ee3
BLAKE2b-256 579cd5d9ad038342bf6e955be412374afe02f8267d907f7ceb10b78b9276b27e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page