01 · Your code
Spark Connect made the engine replaceable. Sail is the replacement.
Spark pipelines are written in Spark SQL and DataFrame code, and that code is the costly part to replace.
Sail speaks Spark Connect, the open protocol Spark 3.4 introduced to separate your code from its engine. Sail is the engine inside LakeSail.
Spark code runs as it is. A free scanner checks it before you move anything.
df = spark.table("orders")
by_day = df.groupBy("day").sum("amount")
by_day.write.saveAsTable("daily_revenue")
spark.sql("SELECT * FROM daily_revenue")- UnchangedYour code and Spark Connect
- Your choiceThe engine
- UnchangedYour tables and your storage
Example files from cogdogblog (CC0), NASA, the Library of Congress and Unitree (Apache 2.0).
02 · The engine
LakeSail runs a Rust-native engine.
No JVM, no garbage collector, far less memory. Spark’s engine was built on the JVM in 2009. Sail, the engine inside LakeSail, is built for the CPUs and data of today.
On the JVM, memory is garbage collected, so work pauses while the collector runs and each executor needs a heap sized by hand. Its operators process rows, and Python functions run in separate worker processes, serialized on the way out and back.
In Sail, built in Rust, memory is freed as it goes, so there are no collection pauses and no JVM heap to size. Its operators process data in columnar batches, many values at a time, and Python runs inside the engine.
The new engine
- UnchangedYour code, Spark Connect, your tables and your storage
- Set asideJVM Spark
Example files from cogdogblog (CC0), NASA, the Library of Congress and Unitree (Apache 2.0).
03 · Beyond accelerators
An accelerator speeds up operators. Sail replaces the whole engine.
Accelerators plug native operators into Spark, and they help. But the JVM stays, and so do its limits.
The JVM still runs the job. Spark plans on it, its garbage collector still runs, and heap and off-heap memory are tuned apart.
Every gap falls back. Any step the accelerator cannot run goes back to Spark, with data converted to rows and back.
Sail replaces all of it. One native engine runs from plan to shuffle, with no handoffs. On ClickBench, on the same machine, the closest accelerated Spark took 6.9x Sail’s time.
Spark with an accelerator
- Spark still plans on the JVM
- Garbage collection still runs
- Heap and off-heap to tune
- Unsupported steps fall back
Sail
- Native from plan to shuffle
- No garbage collector
- No JVM heap to size
- No handoffs between engines
Example files from cogdogblog (CC0), NASA, the Library of Congress and Unitree (Apache 2.0).
04 · Performance
10x faster than Spark. A third of the memory. Nothing spilled to disk.
Less time on fewer machines is what shrinks a compute bill.
On one machine, Sail ran derived TPC-H 10x faster than Spark and peaked at 26 GiB of memory. Spark peaked at 72 and spilled 115 GiB to disk.
At 3 TB, it ran derived TPC-DS in about 21 minutes on 256 vCPUs. Published runs of Spark, and of Spark with Gluten and Velox, took about 61 and 37 minutes on 576 vCPUs.
DERIVED TPC-H · 100 GB · ONE 16 vCPU, 128 GiB MACHINE
- TOTAL TIME
- Spark 534.78 sSail 52.81 s
- PEAK MEMORY
- Spark 72 GiBSail 26 GiB
- SPILLED TO DISK
- Spark 115 GiBSail 0
Derived from TPC-H at scale factor 100, one 16 vCPU machine. Not officially audited. Details
DERIVED TPC-DS · 3 TB · TOTAL TIME, LOWER IS BETTER
Spark and Spark with Gluten and Velox times published by AWS. Different hardware and methods, not a controlled head-to-head comparison. Derived from TPC-DS, not officially audited. LakeSail · AWS
CLICKBENCH · ONE c6a.4xlarge · RELATIVE TIME, SAIL = 1x
ClickBench combined metric on one c6a.4xlarge, relative to Sail. ClickBench
Example files from cogdogblog (CC0), NASA, the Library of Congress and Unitree (Apache 2.0).
05 · Python and AI
On LakeSail, Python runs inside the engine.
Pipelines now carry images, documents, audio and model calls next to their SQL.
Same data, same job. Python works on the same data as your SQL. An embedding step or a model call is part of the job, with no second system beside it.
- InExample files, a photo, a video frame, a scanned page and a robot camera frame
- OutTable rows with an embedding column
Example files from cogdogblog (CC0), NASA, the Library of Congress and Unitree (Apache 2.0).
06 · Multimodal and physical AI
Your AI pipelines run on the same engine as your Spark jobs.
Process images, video, audio and documents with Python libraries, in the same DataFrame and SQL code.
Multimodal, in SQL and Python. Run models on Arrow batches inside the engine, store embeddings as a column, and write results to Parquet or Delta Lake.
Physical AI. Turn humanoid robot episodes into training splits. Align camera frames with state and action records, and check each episode before it becomes training data.






- ReadFILES
- EmbedPYTHON
- WriteDELTA
- SearchSQL
| FILE | EMBEDDING | Status |
|---|---|---|
![]() sku_1041.jpg | ✓ | |
![]() sku_1042.jpg | ✓ | |
![]() sku_1043.jpg | ✓ | |
![]() sku_1044.jpg | ✓ |






- ReadFILES
- EmbedPYTHON
- WriteDELTA
- Find scenesSQL
| SCENE | START | EMBEDDING | Status |
|---|---|---|---|
![]() drive.mp4 · 1 | 0:00 | ✓ | |
![]() drive.mp4 · 2 | 0:28 | ✓ | |
![]() drive.mp4 · 3 | 0:44 | ✓ | |
![]() drive.mp4 · 4 | 1:12 | ✓ |
call_0412.wavcall_0413.wavcall_0414.wavcall_0415.wav- ReadFILES
- TranscribePYTHON
- WriteDELTA
- CheckSQL
| FILE | TRANSCRIPT | Status |
|---|---|---|
call_0412.wav | “Hi, I’d like to change my delivery address.” | ✓ |
call_0413.wav | “My order arrived without the charger.” | ✓ |
call_0414.wav | “Can I move my appointment to Friday?” | ✓ |
call_0415.wav | “Thanks, that fixed it.” | ✓ |
- ReadFILES
- OCRPYTHON
- WriteDELTA
- CheckSQL
| FILE | TEXT | STATUS |
|---|---|---|
invoice_0412.pdf | Invoice 0412. Bill to … | ok |
agreement.pdf | This agreement is made … | ok |
scan_0088.pdf | blank | |
notes.docx | Not a PDF | error |
- ReadFILES
- AlignSQL
- CheckSQL
- WriteDELTA
| EPISODE | CAMERAS | ALIGNED | SPLIT |
|---|---|---|---|
episode_0279 | 4 | ✓ | train |
episode_0280 | 4 | ✓ | train |
episode_0281 | 4 | ✓ | validation |
episode_0282 | 4 | ✓ | train |
Example files from cogdogblog (CC0), NASA, the Library of Congress and Unitree (Apache 2.0).
07 · In production
Adyen runs Sail in production, without a rewrite.
Adyen processes more than a trillion euros in payments a year, and its data platform runs more than ten thousand Spark jobs a day, across more than fifty teams and more than a million lines of Spark code.
No rewrite. Each job it moved first ran alongside its Spark version, with schema and data checked for equality, then went into production.
A CI test suite went from 1,335 seconds to 78. In production, the median runtime across Airflow job runs went from about 57 minutes to about 8.5, on fewer cores and less memory.
CI TEST SUITE · TIMED ON BOTH ENGINES
AIRFLOW JOB RUNS · MEDIAN RUNTIME
HOW EACH JOB MOVED
- Ran beside SparkSame job, both engines
- Output checkedHad to match exactly
- Into productionNo rewrite
Example files from cogdogblog (CC0), NASA, the Library of Congress and Unitree (Apache 2.0).
08 · The LakeSail platform
LakeSail runs your jobs in your environment, next to your data.
Jobs, tables, schedules and notebooks, on a platform LakeSail manages for you.
- Batch jobs. Python and SQL jobs on Delta Lake and Iceberg tables in your object storage.
- Schedules and reruns. Retries and alerts, reruns with parameters, and catch-up for missed runs.
- Your orchestrator. Airflow, Dagster and Prefect can start and watch jobs through the LakeSail API.
- Notebooks and SQL. Console notebooks, or any Spark client over Spark Connect.
0 2 * * *daily, 02:00 UTCdate=2026-11-02Runspark.sql("SELECT * FROM orders")sc://…Example files from cogdogblog (CC0), NASA, the Library of Congress and Unitree (Apache 2.0).
09 · Agents
Bring your own agent, on the model you choose.
LakeSail is agent-native. Your agent can build, run and watch pipelines through the same API the console uses.
Open to any model, by design. Bring the agent and the model you already trust. Nothing ties you to one AI vendor.
Use the console when you want to, or let your agent do the work. It never gets more than your access, and you can revoke it at any time.
Example files from cogdogblog (CC0), NASA, the Library of Congress and Unitree (Apache 2.0).
