Delta Funnel
Delta Lake to SQL Server. No Spark. No JDBC/ODBC bottleneck.
DataFusion SQL in.
Native TDS bulk load out.
Observed: 13.4M rows in ~14 minutes vs. a ~2 hour Spark/JDBC path.
Read the Delta Funnel documentation.
[!NOTE] Delta Funnel is early project code. The Rust crate is available on crates.io, and the Python package is available on PyPI.
When To Use It
Use Delta Funnel when:
- SQL Server writes are the bottleneck.
- Spark is too much machinery for a focused export.
- You want SQL transforms over Delta Lake without a cluster.
- You want Rust or Python orchestration with reports and tracing.
Install
For Rust, add the delta-funnel crate:
cargo add delta-funnel
For Python, add the deltafunnel package:
uv add deltafunnel
Python Quickstart
from deltafunnel import Session
ado_connection_string = (
"server=tcp:localhost,1433;"
"database=warehouse;"
"User ID=etl_user;"
"Password=REPLACE_ME;"
"encrypt=true;"
"TrustServerCertificate=yes"
)
session = Session(default_mssql_connection_string=ado_connection_string)
# Register the Delta table as "orders" so SQL can reference it.
orders = session.delta_lake("file:///path/to/orders-delta", name="orders")
# Build a lazy DataFusion SQL query. No rows are read yet.
daily_orders = session.table_from_sql("""
select customer_id, order_date, total_amount
from orders
where order_date >= date '2026-01-01'
""")
# Preview executes the DataFusion query with a limit; notebooks render it as a table.
daily_orders.preview(limit=20)
# Write executes the query and loads the result into SQL Server.
report = daily_orders.write_to_mssql(
schema="dbo",
table="daily_orders",
load_mode="create_and_load", # "replace" also supports a missing target
# dry_run=True, # validate the load plan without writing rows
)
For private S3 sources, SQL Server load modes, dry runs, and reports, see the
private S3 sources,
SQL Server guide, and
dry runs and reports.
Multi-output Writes
For workflows that write several related tables in one run, use
Table.to_mssql(...) to create output specs and Session.write_all(...) to
execute them together. Shared lazy SQL dependencies can be cached during the
workflow so common upstream work is not repeated for each output.
See the
multiple outputs and shared caching
guide for setup, dry runs, cache options, and failure behavior.
Rust Quickstart
use delta_funnel::{
DeltaFunnelRuntime, DeltaFunnelSession, DeltaSourceConfig, LoadMode,
MssqlConnectionConfig, MssqlOutputTarget, MssqlTargetConfig,
MssqlTargetTable, OutputWritePlan, RunMode, SessionOptions,
};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let ado_connection_string = concat!(
"server=tcp:localhost,1433;",
"database=warehouse;",
"User ID=etl_user;",
"Password=REPLACE_ME;",
"encrypt=true;",
"TrustServerCertificate=yes",
);
let default_connection = MssqlConnectionConfig::new(ado_connection_string)?
.with_display_label("warehouse");
let mut session = DeltaFunnelSession::new(
SessionOptions::new().with_default_mssql_connection(default_connection),
)?;
let runtime = DeltaFunnelRuntime::new()?;
// Register the Delta table as "orders" so SQL can reference it.
let _orders = session.delta_lake(DeltaSourceConfig::new(
"orders",
"file:///path/to/orders-delta",
))?;
// Build a lazy DataFusion SQL query. No rows are read yet.
let daily_orders = runtime.table_from_sql(
&mut session,
r#"
select customer_id, order_date, total_amount
from orders
where order_date >= date '2026-01-01'
"#,
)?;
// Preview executes the DataFusion query with a limit.
let preview = runtime.preview_table(&session, &daily_orders, 20)?;
println!("{}", preview.text());
// Write executes the query and loads the result into SQL Server.
let target = MssqlTargetConfig::new(MssqlTargetTable::new("dbo", "daily_orders")?)
.with_load_mode(LoadMode::CreateAndLoad);
let output = OutputWritePlan::new(
daily_orders,
MssqlOutputTarget::new("daily_orders", target, RunMode::Execute),
);
let report = runtime.write_to_mssql(&session, &output)?;
println!("wrote output {}", report.output_name());
Ok(())
}
For a guided version of this workflow, see the
Rust quickstart.
For the full Rust API, see
docs.rs/delta-funnel and the
query_load_dry_run example.
Development
For local builds and test setup, see the
local development guide.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deltafunnel-0.6.0-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: deltafunnel-0.6.0-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 44.7 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f1c910daab4b7859b7a31af610df971dfc6b4046049664a9cecf989cca46d7f
|
|
| MD5 |
b2deb64c4ba9314390ca5b78753ec2eb
|
|
| BLAKE2b-256 |
75c68ace1a751c745096162794e5727e704e038ecd41e5c1447f40623ed9d406
|
Provenance
The following attestation bundles were made for deltafunnel-0.6.0-cp310-abi3-win_amd64.whl:
Publisher:
pypi.yml on mag1cfrog/delta-funnel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deltafunnel-0.6.0-cp310-abi3-win_amd64.whl -
Subject digest:
7f1c910daab4b7859b7a31af610df971dfc6b4046049664a9cecf989cca46d7f - Sigstore transparency entry: 2690736947
- Sigstore integration time:
-
Permalink:
mag1cfrog/delta-funnel@afe31f132ec993e05a0cd87cec4aff8cc72cba2f -
Branch / Tag:
refs/tags/delta-funnel-v0.6.0 - Owner: https://github.com/mag1cfrog
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@afe31f132ec993e05a0cd87cec4aff8cc72cba2f -
Trigger Event:
release
-
Statement type:
File details
Details for the file deltafunnel-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: deltafunnel-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 53.3 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05418ef1ac482e8728e415331eb1a3e45054654131705cbceac760b052d29f66
|
|
| MD5 |
8ced45e806616394ea8e79d460f6c9c2
|
|
| BLAKE2b-256 |
cf14c490b8131fded30fdba7855dc348204ef46cdc2587495fc04b2130fd6370
|
Provenance
The following attestation bundles were made for deltafunnel-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl:
Publisher:
pypi.yml on mag1cfrog/delta-funnel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deltafunnel-0.6.0-cp310-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
05418ef1ac482e8728e415331eb1a3e45054654131705cbceac760b052d29f66 - Sigstore transparency entry: 2690737177
- Sigstore integration time:
-
Permalink:
mag1cfrog/delta-funnel@afe31f132ec993e05a0cd87cec4aff8cc72cba2f -
Branch / Tag:
refs/tags/delta-funnel-v0.6.0 - Owner: https://github.com/mag1cfrog
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@afe31f132ec993e05a0cd87cec4aff8cc72cba2f -
Trigger Event:
release
-
Statement type:
File details
Details for the file deltafunnel-0.6.0-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: deltafunnel-0.6.0-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 46.1 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0648e4e9054b10aec4ba5f9b6f035ba79a5d6eef0f5899851ccb40725ebddccf
|
|
| MD5 |
4c1473dce8f575040379f6ccbd0c3701
|
|
| BLAKE2b-256 |
9698708ae0a1a39ff828e73fd2a8007c50dc69d87ccb1996c2b5e13e3e757e16
|
Provenance
The following attestation bundles were made for deltafunnel-0.6.0-cp310-abi3-macosx_11_0_arm64.whl:
Publisher:
pypi.yml on mag1cfrog/delta-funnel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deltafunnel-0.6.0-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
0648e4e9054b10aec4ba5f9b6f035ba79a5d6eef0f5899851ccb40725ebddccf - Sigstore transparency entry: 2690736568
- Sigstore integration time:
-
Permalink:
mag1cfrog/delta-funnel@afe31f132ec993e05a0cd87cec4aff8cc72cba2f -
Branch / Tag:
refs/tags/delta-funnel-v0.6.0 - Owner: https://github.com/mag1cfrog
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@afe31f132ec993e05a0cd87cec4aff8cc72cba2f -
Trigger Event:
release
-
Statement type:
File details
Details for the file deltafunnel-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: deltafunnel-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 48.1 MB
- Tags: CPython 3.10+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b481b28a10804dc85a72a2256069c7db0b575908c21b1ad73161b641023ff0e
|
|
| MD5 |
9057f175cbdd877159090331ad6e13a9
|
|
| BLAKE2b-256 |
a64d98e04012d6044c7f16bdbe59f2b7d4d22610e3bd69bf591c8d5cebc5ec4c
|
Provenance
The following attestation bundles were made for deltafunnel-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl:
Publisher:
pypi.yml on mag1cfrog/delta-funnel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
deltafunnel-0.6.0-cp310-abi3-macosx_10_12_x86_64.whl -
Subject digest:
0b481b28a10804dc85a72a2256069c7db0b575908c21b1ad73161b641023ff0e - Sigstore transparency entry: 2690736721
- Sigstore integration time:
-
Permalink:
mag1cfrog/delta-funnel@afe31f132ec993e05a0cd87cec4aff8cc72cba2f -
Branch / Tag:
refs/tags/delta-funnel-v0.6.0 - Owner: https://github.com/mag1cfrog
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@afe31f132ec993e05a0cd87cec4aff8cc72cba2f -
Trigger Event:
release
-
Statement type: