Skip to main content

PySpark reference execution plugin for ETLantic.

Project description

etlantic-pyspark

PySpark reference execution plugin and portable transform compiler for ETLantic 0.20.

pip install 'etlantic==0.27.0' 'etlantic-pyspark==0.27.0'
# or: pip install 'etlantic[pyspark]'
# optional Delta Lake support:
pip install 'etlantic-pyspark[delta]==0.27.0'

Native Spark plugin

from etlantic import Profile

Profile(name="spark-local", spark_engine="pyspark")

Register @Transformation.implementation("pyspark") handlers that take Spark DataFrames (or lists of contract models) and return Spark DataFrames.

Native capabilities

  • Lazy Spark region fusion with preserved logical identities
  • Local Spark provider (local[*]) — secrets resolved only at session acquire
  • Native-expression preference with UDF policy diagnostics
  • Contract ↔ Spark schema mapping (lossy/unknown never guessed)
  • Valid/invalid row separation
  • Delta-compatible write intents (append/overwrite/merge) when Delta is enabled
  • Structured Streaming foundation (experimental)

Portable transform compiler

Entry point: etlantic.transform_compilersetlantic_pyspark:create_transform_compiler.

Claims portable-relational-kernel/1 and portable-relational/1. Lowers dtcs.transform-plan/2 to native Spark DataFrame/Column expressions. Automatic Python/Pandas UDF fallback is forbidden on the portable path (native UDF policy stays separate). Default CI uses sparkless; set SPARKLESS_TEST_MODE=pyspark for real JVM Catalyst checks.

Not included: managed cloud providers (Databricks/EMR/Connect).

Project details


Download files

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

Source Distribution

etlantic_pyspark-0.27.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

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

etlantic_pyspark-0.27.0-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file etlantic_pyspark-0.27.0.tar.gz.

File metadata

  • Download URL: etlantic_pyspark-0.27.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for etlantic_pyspark-0.27.0.tar.gz
Algorithm Hash digest
SHA256 b9dc023196e188eb6fe50b6f30638dd3c424f33be806dffd9395d2e9c61bed17
MD5 0dd9bf541643df23c1042c7ab97e1a42
BLAKE2b-256 6eb84406cfb0e5d83d2d54b50b9ba28fef57057bd2c9b8e72b827e5c795b0bdd

See more details on using hashes here.

File details

Details for the file etlantic_pyspark-0.27.0-py3-none-any.whl.

File metadata

  • Download URL: etlantic_pyspark-0.27.0-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for etlantic_pyspark-0.27.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b3e06e6b8c05d4965e551f5408ad5072a39ae28dd5b7f159f0c3a47d974f16
MD5 93357b3eb939550c075863ecc0e73f13
BLAKE2b-256 86e8834f461a3d8c9fd4f9e05f164d7bfc0dcdbd8e53b9d688cc044801aa9adb

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