Summary
The engine, the WASM reader and writer, and maintenance reach tables and data files through two boundaries from lakekit: a common table view (Iceberg today) and a data file format (Parquet today). What makes Timelake a time-series engine stays here: the head, the last-value index, dedup on read, newest-first scans, rollups, and the SQL functions. Iceberg and Parquet stay the defaults; another format is a choice a table makes, Vortex first once Iceberg lists it.
Design
The two boundaries are lakekit's:
- Table formats: the common table view (lakekit spec 5).
- It holds a table's schema, properties and snapshots, and its live files with their statistics, partition values, and commit rank.
- It loads, creates, commits (append, replace, delete) and expires.
- Data file formats:
FileFormat(lakekit spec 6).- Writers return bytes, statistics and a footer.
- Readers take a footer and a selection inside the file, ask for byte ranges, and decode them.
What moves out of Timelake:
-
The engine's use of iceberg-rust:
- the adapter for iceberg-rust's file I/O in
storage.rs; - loading and creating tables;
- the metadata builder in
commit.rs; - snapshot expiry, branches and tags.
iceberg-rust stays only as the reference implementation in interop tests (#189).
- the adapter for iceberg-rust's file I/O in
-
timelake-format's Parquet code: the file writer (file.rs), footers (footer.rs), and statistics move tolakekit-parquet(#190).
What changes in what stays:
- The head (spec 7) stores each file's footer as opaque bytes with its format's name. This changes the head's format, so it needs a head version bump (spec 8).
- Scans (spec 21):
- The provider picks each file's scan by the format its manifest entry records.
- Parquet's page access plans and the long
IN-list selections (spec 24) become Parquet's own selection; another format brings its own pruning. - The scans come from lakekit's DataFusion providers (lakekit#11) once they exist, and from Timelake's provider until then.
- Dedup on read (spec 12) orders copies of a key by the view's commit rank. In Iceberg that is the data sequence number, as today.
- The block cache (spec 22) tells which files never change from the table's file list, not from the
.parquetextension. - The last-value index (spec 6) stays a Parquet file whatever the data format, so DuckDB and others can read it.
Settings (spec 9):
data-formatchooses the format of new files:parquet(the default), and latervortex.- Changing it doesn't rewrite anything at once; compaction rewrites older files as it would anyway.
- A table may hold files of several formats meanwhile.
- The Parquet settings keep their names and become Parquet's options:
compression,row-group-rows,float-encoding, anddata-page-rows. - A table's table format is fixed when the table is created: Iceberg, the only one for now.
Other engines. A table of Iceberg and Parquet files stays readable by DuckDB, Spark, Trino and every other Iceberg reader.
- Vortex: until Iceberg's spec lists it (apache/iceberg#15915,
apache/iceberg-rust#2835), only engines that know Vortex can
read Vortex files. So
vortexcomes off by default, with that said in the docs (#191). - Table formats other than Iceberg (Delta Lake, DuckLake) follow lakekit's specs for them; each gets a spec here before Timelake writes it.
Order:
- lakekit 0.1 is published and #186 is merged.
- loko#2 gives
Sendfutures, for the engine's multi-threaded executor. - Arrow moves to the newest DataFusion's major, as lakekit's D17 has it (#193). DataFusion 56 also brings a native
ASOF JOIN, after which Timelake's own (spec 28) can go. - The table view: lakekit#13, here #189.
- File formats: lakekit#14, here #190.
- Vortex: lakekit#15, here #191.
Decisions
| ID | Decision | Status |
|---|---|---|
| D26 | The engine, the WASM reader and writer, and maintenance reach tables and data files only through lakekit's common table view and FileFormat; iceberg-rust remains only as the reference in interop tests (supersedes D13 once built) | Accepted |
| D27 | Iceberg and Parquet stay the defaults, and the last-value index stays Parquet whatever the data format, so other engines keep reading every table that doesn't opt in (D1 holds) | Accepted |
| D28 | A table's data format is a setting (data-format) that applies to new files; existing files keep theirs until compaction rewrites them, so a table may hold files of several formats | Proposed |
Open questions and issues
- #189 Engine: tables through lakekit's common table view instead of iceberg-rust
- #190 Data files through a
FileFormattrait, Parquet first - #191 Vortex data files, once Iceberg lists the format
- #193 Follow the newest DataFusion's Arrow; on DataFusion 56, replace our ASOF JOIN with DataFusion's
History
- 2026-10-21: proposed, so that the engine assumes neither Iceberg nor Parquet, and the format code is shared with lakeglass through lakekit.