LakeSail vs MotherDuck
Spark SQL and Python, on one machine or many.
spark = SparkSession.builder.getOrCreate() Side by side
How we stack up.
| LakeSail | MotherDuck | |
|---|---|---|
| Engine | Sail, open source and Rust-native | DuckDB, run as a managed service |
| Code it runs | Spark SQL and DataFrame code, over Spark Connect | DuckDB SQL, from Python, Java, Go and other clients |
| One job grows | A larger instance, or a driver and worker nodes | A larger instance size |
| Scheduled jobs | SQL, Python and notebook jobs on cron or an interval | Flights, single-file Python programs on a cron schedule |
| Where compute runs | Your cloud account or on-premises | MotherDuck’s cloud, or your cloud account |
| Tables | Delta Lake and Iceberg, read and written in your object storage | Its storage, DuckLake, Iceberg; no Delta writes yet |
Your code
The same code on your laptop and on LakeSail.
LakeSail runs Spark SQL and DataFrame code over Spark Connect. Develop on your laptop with pip install pysail, then run the same file on one node or a cluster.
spark = SparkSession.builder.getOrCreate()SPARK_REMOTE, so this line connects to Sail. SQL jobs. LakeSail opens and closes the session for you.Start on your laptop.
Sail, the engine in LakeSail, installs with pip and runs as a Spark Connect server. It is free and open source, with no account.
Run Sail locally (opens in a new tab)- On Spark today? Scan your code (opens in a new tab)
- DuckDB SQL moves to Rewritten in Spark SQL
- dbt-duckdb moves to Your dbt project, on the dbt-sail adapter
- Python with DuckDB moves to Rewritten as PySpark DataFrame code
Sail’s docs list the supported SQL statements(opens in a new tab) and functions(opens in a new tab).
Your tables
Open tables in your object storage.
LakeSail reads and writes Delta Lake and Iceberg tables in your object storage, through your catalog.
Engine
Your catalog
- Unity Catalog
- Iceberg REST
- AWS Glue
- Hive Metastore
Your object storage
- Delta Lake sales/orders/ _delta_log/part-00000.parquet
- Iceberg sales/daily/ metadata/data/
Scale
When a job outgrows one machine.
The same engine, Sail, runs on one node or across a cluster.
MotherDuck · A larger instance
LakeSail · Larger instances and more nodes
- Standard
- Jumbo
- Mega
- Giga
Each user gets one instance, and a query runs across its cores. You resize it for more.
LakeSail runs a job in standalone mode on one node, or in cluster mode on a driver and its worker nodes. Instance size, execution mode and max nodes are settings on the job’s compute profile, not lines in its code.
Questions
Questions about LakeSail and MotherDuck.
Is LakeSail an alternative to MotherDuck?
LakeSail is an alternative to MotherDuck for data engineering jobs in Spark SQL and DataFrame code. It runs them on one node or a cluster of workers, in your own cloud account or on-premises, and reads and writes Delta Lake and Iceberg tables in your object storage. It bills $0.01 per vCPU-hour and $0.002 per GiB-hour, plus your cloud bill.
Do I need to rewrite my code to run it on LakeSail?
Code written for DuckDB, in SQL or Python, is rewritten in Spark SQL or PySpark when it moves to LakeSail. Spark SQL and DataFrame jobs run on LakeSail over Spark Connect as they are, and the scanner shows what each job uses.
What happens when a job outgrows one machine?
You switch the job’s compute profile from standalone to cluster mode and set max nodes, and the code stays as it is. In cluster mode a driver runs the job’s Spark session across up to that many worker nodes, which LakeSail starts in your environment when the job runs. The next run of the job takes the new sizing.
Can I run the same code on my laptop?
Sail, the open-source engine inside LakeSail, installs with pip install pysail and runs on a laptop as a Spark Connect server. You develop a job against it in Spark SQL and DataFrame code, then run the same file on LakeSail, on one node or a cluster of workers.
How does LakeSail pricing compare with MotherDuck’s?
LakeSail charges $0.01 per vCPU-hour and $0.002 per GiB-hour for the machines a job uses, and your cloud provider bills those machines separately. MotherDuck lists an hourly rate per instance size, plus storage and, on its Business plan, a monthly fee.
Where does LakeSail run?
LakeSail runs in your environment, in your own cloud account or on-premises as a custom Enterprise deployment, so the compute and the data stay with you. For the cloud deployment, LakeSail hosts the console and API. Tables stay in open Delta Lake and Iceberg formats in your object storage, and the engine is open source. Enterprise and on-premises plans →
Bring the job that needs more than one machine.
On one node or many, in your environment, on your own tables.