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.2-cp310-abi3-win_amd64.whl (22.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

polars_deltalake-1.2.2-cp310-abi3-musllinux_1_2_x86_64.whl (20.4 MB view details)

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

polars_deltalake-1.2.2-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.2-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.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (18.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

polars_deltalake-1.2.2-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.2-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for polars_deltalake-1.2.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 84d3b95b3b374929534b999f397f0a30ef2103e5c64982b28e8bbbc247bbb54f
MD5 d7aa7f4923e5a018ffa3846e95fa78f6
BLAKE2b-256 858c405f87da66b63f7a53110f5a803190f1920e93374a04e0cf587d43361b2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deltalake-1.2.2-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 74d203e823b8f78b848c120055c64d4795fe357b3b821010a1cce0598aece272
MD5 76979c7b1d676cee7dcfce648a4ea1dc
BLAKE2b-256 83c8cdca2b80b3461312af7d24d26297be5d8b9c175a2e24f6e861eecbe3fb0d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deltalake-1.2.2-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 60ba0e61abcee99592702018557ac7c5ac980e660edcf947cf1b11cd177e5ad6
MD5 293db2f70577c03c4ff408f13859fea4
BLAKE2b-256 0d37c285517212b40192d9874dec644417ca8460ddd78d3aba2c894d5eab7277

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deltalake-1.2.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88a893e4de5edd8456de5a125f5155ed242e31e525385a630effb2765d1ef6cb
MD5 d4a1b38735935d8a509281f59be2e13e
BLAKE2b-256 2fab40018fa1a6282bed329967b57dd24bb2b4bd7f80447cc4070f925a30b331

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deltalake-1.2.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b4dc5f67c064393a69cd10b8903f1f69997dc1c838f522932016918b0a9914dc
MD5 794b777bbb904b24dbff1e69a806cf40
BLAKE2b-256 03d69dc40bafdb82c4f02b5856fe54c68ff9ca43dbe4505ea51f821431a81d12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deltalake-1.2.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a7061f2435f795ec91d7ee1ffcd8538234253848f2036dc2da25fffab958f542
MD5 af1b2ca64a3d6585ca9cb6216266bdf7
BLAKE2b-256 227f29600d18ea9f905d620c50eb030b516048adb41c49b9cbdf2a9afc0bc282

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deltalake-1.2.2-cp310-abi3-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 efdd86f7482b5a17a9ca492c61b933bd629d59c94e30125348674afc98697698
MD5 ddfc13acd304279751128bb5a3c167b4
BLAKE2b-256 5abc78648578c2fb08f5c4d7357a813a250c9e05d9a12e278c5aab096da2b39e

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