Skip to content
المشاريع

حول

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

البيانات والتحليلات

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

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()

scan_delta returns a LazyFrame; read_delta(uri) is the eager shortcut for scan_delta(uri).collect().

Change Data Feed

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()

Streams the Change Data Feed between two commit versions. Each row carries the table's columns plus _change_type (insert / delete / update_preimage / update_postimage), _commit_version, and _commit_timestamp. Requires delta.enableChangeDataFeed = true on the table. read_cdf is the eager shortcut.

What it does

  • Reads Delta tables (local file://, S3, Azure, GCS, http(s)) entirely through polars-io + object_store — no pyarrow, no deltalake package required at runtime.
  • Honors projection, slice (n_rows), and predicate pushdown into the kernel scan; predicates that don't have a kernel-supported shape fall back to polars-side filtering.
  • Reads deletion vectors and column-mapped tables (modes id and name).
  • Streams the Change Data Feed between two versions via scan_cdf / read_cdf.

What it doesn't (yet)

  • No write path — scan_delta / scan_cdf / read_delta / read_cdf only.

Install

pip install polars-deltalake

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…