Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
38fd064
build(deps): pin spiral-sdk 0.16.78, which reads and writes table met…
eywalker Dec 1, 2026
eb19792
feat(spiraldb): add generation-table writer leases (ITL-1838)
eywalker Dec 1, 2026
60bf0af
test(spiraldb): type the fake client boundary
eywalker Dec 1, 2026
10ac3d0
feat(spiraldb): store table identity record and codec, provisional an…
eywalker Dec 1, 2026
76ac9fe
fix(spiraldb): type leases without the optional SDK
eywalker Dec 1, 2026
faa21c3
fix(spiraldb): reserve numbered lease generations consistently
eywalker Dec 1, 2026
2745f9a
fix(spiraldb): preserve tables with colliding lease names
eywalker Dec 1, 2026
cdfa2e6
fix(spiraldb): keep plain-field extension metadata; one store path do…
eywalker Dec 1, 2026
384426d
feat(spiraldb): internal store mode under ConnectorArrowDatabase (ITL…
eywalker Dec 1, 2026
5574a4c
Merge remote-tracking branch 'origin/eywalker/itl-1837-spiraldb-store…
eywalker Dec 1, 2026
36ba2a9
refactor(spiraldb): store mode uses the shared store path domain; sta…
eywalker Dec 1, 2026
216f198
docs(spiraldb): the store path rule is SpiralDB's component syntax; p…
eywalker Dec 1, 2026
2f10d99
Merge remote-tracking branch 'origin/eywalker/itl-1837-spiraldb-store…
eywalker Dec 1, 2026
c8e15d0
fix(spiraldb): store mode review round 1: order-free key check, name …
eywalker Dec 1, 2026
ba14378
fix(spiraldb): store mode review round 2: one identifier-preserving d…
eywalker Dec 1, 2026
d3ed38e
fix: recover writer lease claims and skip reserved names
eywalker Dec 1, 2026
1e2964c
fix(spiraldb): keep the flush key read until the lease; schema test s…
eywalker Dec 1, 2026
a02aeaa
fix: reconcile interrupted lease creation and align migration listings
eywalker Dec 1, 2026
215b9ce
Test lease name recognition parity
eywalker Dec 1, 2026
6fb1b6e
fix(spiraldb): open the table afresh at every write; run the schema c…
eywalker Dec 1, 2026
ed788d9
fix(spiraldb): refuse stored values the codec cannot restore; record …
eywalker Dec 1, 2026
1e35702
Merge remote-tracking branch 'origin/main' into eywalker/itl-1837-spi…
eywalker Dec 1, 2026
8334616
Merge remote-tracking branch 'origin/main' into eywalker/itl-1838-spi…
eywalker Dec 1, 2026
66aaa87
Merge remote-tracking branch 'origin/eywalker/itl-1837-spiraldb-store…
eywalker Dec 1, 2026
06eac39
Merge remote-tracking branch 'origin/eywalker/itl-1838-spiraldb-store…
eywalker Dec 1, 2026
acc6007
feat(spiraldb): public store keyword; job runs hold the dataset's wri…
eywalker Dec 1, 2026
ad9a91c
docs(spiraldb): the SpiralDB store page, changelog fragment and end-t…
eywalker Dec 1, 2026
fb61329
fix(spiraldb): store mode review round 3: per-operation judgments, ad…
eywalker Dec 1, 2026
406c806
fix(pipeline): issue the run-completion warnings from run() and run_a…
eywalker Dec 1, 2026
537d66f
build(deps): pin spiral-sdk 0.16.80; ignore its keyed-table deprecati…
eywalker Dec 1, 2026
4a8947a
Merge branch 'eywalker/itl-1837-spiraldb-store-stage-a-on-current-mai…
eywalker Dec 1, 2026
57f1b66
fix(spiraldb): open and create every store table through the connecto…
eywalker Dec 1, 2026
1e9b900
fix(spiraldb): keep the keyed-table deprecation filter first; route t…
eywalker Dec 2, 2026
bba26c1
Merge #691 head 1e9b9009a into stage B (ITL-1840)
eywalker Dec 2, 2026
363bf0c
Merge #692's head bba26c12f into stage D (ITL-1844)
eywalker Dec 2, 2026
b761f72
Merge origin/main (#691 squashed as ea0138de7) into stage B (ITL-1840)
eywalker Dec 2, 2026
123d900
Merge origin/main into the stage C lease branch
eywalker Dec 2, 2026
7cf03b1
fix(spiraldb): the evaluation script lists its tables per job name an…
eywalker Dec 2, 2026
06020f7
Merge remote-tracking branch 'origin/main' into eywalker/itl-1844-spi…
eywalker Dec 2, 2026
d263e6e
Merge commit 'b761f7227' into eywalker/itl-1844-spiraldb-store-stage-…
eywalker Dec 2, 2026
b15af75
Merge #690's head 123d9009a into stage D; one set of connector helper…
eywalker Dec 2, 2026
19e49f3
fix(spiraldb): list a table of another store format as a marked path,…
eywalker Dec 2, 2026
8c10bd5
fix(spiraldb_lease): keep acquisition errors and wrap failed reopens
eywalker Dec 2, 2026
29abfe8
fix(databases): a stored table a lookup cannot read fails the run; li…
eywalker Dec 2, 2026
33afff0
fix(spiraldb): review round 1 for the store switch-on (ITL-1844)
eywalker Dec 2, 2026
2bbaa67
Merge commit '8c10bd571' into eywalker/itl-1844-spiraldb-store-stage-…
eywalker Dec 2, 2026
b0484ab
Merge commit '29abfe869' into eywalker/itl-1844-spiraldb-store-stage-…
eywalker Dec 2, 2026
26a0faa
test(spiraldb): stage B's read-failure test lets the job take its lea…
eywalker Dec 2, 2026
291798d
perf(spiraldb): a run walks for store leases only when a store connec…
eywalker Dec 2, 2026
edc3071
fix(spiraldb): finding a stored table is a read; a changed identity r…
eywalker Dec 2, 2026
dc4accf
fix(spiraldb_lease): clear only the newest generation; dry run refuse…
eywalker Dec 2, 2026
0a71291
fix(spiraldb): review of 291798da3 for the store switch-on (ITL-1844)
eywalker Dec 2, 2026
8a4bab6
Merge commit 'edc30710d' into eywalker/itl-1844-spiraldb-store-stage-…
eywalker Dec 2, 2026
686421e
Merge commit 'dc4accfe8' into eywalker/itl-1844-spiraldb-store-stage-…
eywalker Dec 2, 2026
9bdd523
docs(spiraldb): clear() names the project and dataset of the lease (I…
eywalker Dec 2, 2026
f8399f7
docs(changelog): limit the ITL-1838 known limitation to tables with a…
eywalker Dec 2, 2026
e1581af
fix(spiraldb): a shared copy has its own store tables; a let-go is co…
eywalker Dec 2, 2026
c232f82
Merge commit 'f8399f75b' into eywalker/itl-1844-spiraldb-store-stage-…
eywalker Dec 2, 2026
c688296
test(spiraldb): a shared copy holds the test's lease on its own store…
eywalker Dec 2, 2026
fcf67d5
fix(spiraldb_lease): guard token verification; name both clear prereq…
eywalker Dec 2, 2026
d3c64b4
Merge commit 'fcf67d5ee' into eywalker/itl-1844-spiraldb-store-stage-…
eywalker Dec 2, 2026
5514407
fix(spiraldb_lease): reconcile every exit of a claim before it is ret…
eywalker Dec 2, 2026
2919e62
Merge commit '551440700' into eywalker/itl-1844-spiraldb-store-stage-…
eywalker Dec 2, 2026
c318d2c
Merge origin/main (store stage B, #692; #694) into the stage C lease …
eywalker Dec 2, 2026
387156f
docs(spiraldb_lease): say which acquire errors propagate; name both c…
eywalker Dec 2, 2026
36b62a2
fix(spiraldb): a lease attached before an interruption is let go of; …
eywalker Dec 2, 2026
e76958c
Merge remote-tracking branch 'origin/main' into eywalker/itl-1844-spi…
eywalker Dec 2, 2026
84ce60a
Merge commit '387156f50' into eywalker/itl-1844-spiraldb-store-stage-…
eywalker Dec 2, 2026
6febee7
fix(spiraldb): a lease claim is recorded inside its acquisition; one …
eywalker Dec 2, 2026
6ff94d7
test(spiraldb_lease): check that acquire released the claim before a …
eywalker Dec 2, 2026
c788f9c
Merge remote-tracking branch 'origin/main' into eywalker/itl-1844-spi…
eywalker Dec 2, 2026
de39bbc
refactor(spiraldb)!: rename the SpiralDB store to the writable Spiral…
eywalker Dec 2, 2026
047dbe2
fix(spiraldb): review of de39bbc4c: lease refusal keeps the save stat…
eywalker Dec 2, 2026
637fc85
fix(spiraldb): delta review of 047dbe290: earlier key is another form…
eywalker Dec 2, 2026
55f7c71
fix(spiraldb): delta review 2 of 637fc8551: non-bool writable message…
eywalker Dec 2, 2026
90ae28d
Merge remote-tracking branch 'origin/main' into eywalker/itl-1844-spi…
eywalker Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion changelog.d/ITL-1186.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Breaking changes and migration

- SpiralDB is read through `spiral-sdk` (the `spiraldb` extra pins `spiral-sdk==0.16.74`), and `pyspiral` is gone. Both packages provide a module named `spiral`: install into an environment without `pyspiral`.
- Orcapod only reads SpiralDB for now. Every write of `SpiralDBConnector` (`create_table_if_not_exists`, `upsert_records`, `delete_table`) and every job whose database is on one raises `SpiralDBWriteNotSupportedError`, before anything is buffered or run. Writing is a follow-up of ITL-1186.
- A plain `SpiralDBConnector` only reads. Every write of a plain connector (`create_table_if_not_exists`, `upsert_records`, `delete_table`) and every job whose database is on one raises `SpiralDBWriteNotSupportedError`, before anything is buffered or run. A job keeps its tables in SpiralDB through a writable SpiralDB database, `SpiralDBConnector(..., writable=True)` (ITL-1844).
- A table's non-nullable columns and Arrow metadata are read from its dataset's schema table, `__orcapod_schemas__`, not from the table's metadata. Datasets written by an earlier release must be migrated once with `scripts/migrate_spiral_schemas.py` (`RELEASING.md`); then schemas, hashes and source ids are as before. Until then their tables read with every column nullable, with `UnrecordedTableSchemaWarning`, and their hashes differ.
- `read_nullability_record` and `write_nullability_record` are removed, and `NullabilityRecordError` is replaced by `TableSchemaError`.
- Row counts are counted from the keys: `row_count_estimate` is exact and reads every key, the `max_rows` check reads at most `max_rows + 1` keys, and a preview of more than 100,000 rows shows no total.
Expand Down
2 changes: 1 addition & 1 deletion changelog.d/ITL-1540.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Fixed

- Status and logging observers now raise `SpiralDBObserverNotSupportedError` at setup when
given a SpiralDB store, including scoped views and extension-aware wrappers (ITL-1540).
given a SpiralDB database, including scoped views and extension-aware wrappers (ITL-1540).

### Known limitations

Expand Down
12 changes: 5 additions & 7 deletions changelog.d/ITL-1837.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
and writes a SpiralDB table's own metadata. spiral-sdk 0.16.79 and later mark the keyed
tables Orcapod reads as deprecated and warn on every open; Orcapod ignores that one
warning for its own opens only, so a direct call to spiral-sdk still warns. The move to
spiral-sdk's newer table format is ITL-1846. Orcapod still only reads SpiralDB.
(ITL-1837)
spiral-sdk's newer table format is ITL-1846. (ITL-1837)

### Known limitations

- Orcapod cannot yet use SpiralDB as a job's database: `SpiralDBConnector` still refuses
every write. The groundwork for it (the encoding of a stored table's columns and the
identity record kept in a table's metadata) is internal and its format is provisional:
outside the 0.4.0 freeze, it may change before the store is offered, and tables written
in it may then need to be written again. (ITL-1837)
- The writable SpiralDB database's table format (the encoding of a stored table's columns and the
identity record kept in a table's metadata) is provisional: outside the 0.4.0 freeze, it
may change in a later version, and tables written in it may then need to be written
again. (ITL-1837)
9 changes: 4 additions & 5 deletions changelog.d/ITL-1840.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
### Known limitations

- Orcapod still cannot use SpiralDB as a job's database: a `SpiralDBConnector` refuses
every write. An internal store mode now writes and reads every stored table kind
through `ConnectorArrowDatabase` (one table per path, its identity and manifest in the
table's metadata), but nothing opens it publicly, it is not saved with a job, and its
format stays provisional, outside the 0.4.0 freeze. (ITL-1840)
- A writable SpiralDB database (`SpiralDBConnector(..., writable=True)`, ITL-1844) keeps every stored
table kind through `ConnectorArrowDatabase`: one table per path, its identity and
manifest in the table's metadata. Its format is provisional, outside the 0.4.0 freeze.
(ITL-1840)
31 changes: 31 additions & 0 deletions changelog.d/ITL-1844.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
### Added

- A SpiralDB dataset can be a job's database: a writable SpiralDB database,
`SpiralDBConnector(project_id, dataset, writable=True)` under `ConnectorArrowDatabase`, stores every table a job writes (function results and
pipeline records, operator caches, cached sources, side-effect logs), also as a separate
result database. Provisional in 0.4.0: the database's table format and its writer lease may
change in a later version, which may not read tables written now. Nothing of the
database enters a hash. See "SpiralDB as a Job's Database" in the concepts.
- One writer per writable SpiralDB database: `job.run()`, `job.run_async()` and a job node's `run()`
take the dataset's writer lease before checking a source or writing anything, and release
it when they end, also when they fail. A second writer is refused then with
`LeaseBusyError`, before anything of its run happens. A stale lease is cleared by its
project, dataset and table id with
`spiraldb_lease.clear(client, project_id, dataset, table_id, confirm_writer_stopped=True)`.
- A job saved on a writable SpiralDB database records `writable: true` and no credential; `PipelineJob.load`
takes the connector again and refuses a SpiralDB connector of the other kind.

### Known limitations

- Only a job run writes a writable SpiralDB database, through the writable connectors it
holds the lease with: a write through any other writable connector (a cached source read outside a run, a
`ConnectorArrowDatabase` over a connector of its own flushed directly) raises
`SpiralDBLeaseRequiredError`, also while a run holds the lease. A write through a
running job's own databases from outside the run is not told apart from the run's own.
A way to hold the lease outside a run is later work (ITL-1849).
- The writer lease is refuse-only: no waiting, no takeover, no expiry. Each run leaves one
small lease table in the dataset, which is kept.
- A writable SpiralDB database reads a table's whole key column to tell which rows it holds, and whole tables
to read stored rows, so a run's cost grows with the tables' history.
- The database does not take over tables it did not write, and status and logging observers
still refuse a SpiralDB database.
4 changes: 3 additions & 1 deletion docs/api/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ code. See site/README.md.
-->

Database backends store pipeline results. The SQLite and PostgreSQL connectors support
reads and writes through `ConnectorArrowDatabase`. The SpiralDB connector is read-only.
reads and writes through `ConnectorArrowDatabase`. The SpiralDB connector reads, and writes
only when opened writable (`writable=True`, provisional; see
[SpiralDB as a Job's Database](../concepts/spiraldb-database.md)).

**Provisional.** `ExtensionAwareDatabase` is expected to be integrated more closely with
the underlying database classes (ITL-1539), so its public form may change.
Expand Down
2 changes: 2 additions & 0 deletions docs/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ These exceptions and warnings report storage, schema, and connector problems.

::: orcapod.errors.SpiralDBObserverNotSupportedError

::: orcapod.errors.SpiralDBLeaseRequiredError

::: orcapod.errors.SpiralDBSignInError

## Feature availability and stability
Expand Down
10 changes: 6 additions & 4 deletions docs/concepts/pipeline-job.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Among `job.run()`'s optional arguments, the tutorial
`SyncPipelineOrchestrator(error_policy="fail_fast")` to stop at the first failing row; the
default policy skips failed rows and continues) and `observer=` (`StatusObserver`,
`LoggingObserver`) to record what happened during the run. Both observers raise
`SpiralDBObserverNotSupportedError` at setup if given a SpiralDB store, so give them
`SpiralDBObserverNotSupportedError` at setup if given a SpiralDB database, so give them
another database such as Delta (ITL-1540). If a built-in observer cannot encode or write
an event, the failure is logged, the run continues, the summary counts the lost events
per observer kind in `lost_observer_events`, and one `ObserverEventsLostWarning` is
Expand Down Expand Up @@ -277,8 +277,9 @@ refused. PostgreSQL also refuses column names and explicit table identifiers lon
63 bytes, which it would truncate (`UnstorableTableNameError` for a table).
SQLite and PostgreSQL stores generate table names within 63 bytes from the node's
path, using a readable hint and a digest of the full path. A database on
`SpiralDBConnector` refuses every write for now (`SpiralDBWriteNotSupportedError`): Orcapod
reads SpiralDB only. The full list,
`SpiralDBConnector` refuses every write (`SpiralDBWriteNotSupportedError`) unless it is opened
writable, `SpiralDBConnector(..., writable=True)`: see
[SpiralDB as a Job's Database](spiraldb-database.md). The full list,
type by type, is [Data types per database](../reference/database-types.md).

Orcapod's own stored tables hold such columns. A function node's result table holds
Expand All @@ -292,7 +293,8 @@ is attached to them, before anything runs:
- every side-effect node, on SQLite;
- every operator node with caching on (`CacheMode.LOG` or `REPLAY`), on SQLite: the SQLite
connector has no column type for a timestamp (adding one is ITL-1482);
- every node that stores anything, on SpiralDB.
- every node that stores anything, on a plain SpiralDB connector (a writable SpiralDB database
keeps them all).

An operator cache or cached source on a SQL connector is also refused when it is written, before
anything is stored, if one of its own columns has a type or name the connector does not store. On
Expand Down
7 changes: 4 additions & 3 deletions docs/concepts/sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,10 @@ again only when the version moved. A changed environment or saved login, or a cl
whose calls failed, gives the next new source a new client. Closing a source affects no other;
the client goes with the last source that uses it, and a forked process starts with none.

Orcapod only reads SpiralDB for now. Writing a SpiralDB table (`SpiralDBConnector`, or a job
whose database is on one) raises `SpiralDBWriteNotSupportedError`; store a job's results in
another database, such as `DeltaTableDatabase`.
A plain `SpiralDBConnector` only reads: a write through it (or a job whose database is on
one) raises `SpiralDBWriteNotSupportedError`. A job can keep its tables in SpiralDB through
a writable SpiralDB database, `SpiralDBConnector(..., writable=True)`: see
[SpiralDB as a Job's Database](spiraldb-database.md).

To find the tables of a project and their key columns:

Expand Down
147 changes: 147 additions & 0 deletions docs/concepts/spiraldb-database.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# SpiralDB as a Job's Database

A job can keep everything it stores in a SpiralDB dataset: function results, pipeline
records, operator caches, cached sources and side-effect logs. Open the dataset as a
**writable SpiralDB database** and give it to the job as any other database.

!!! warning "Provisional in 0.4.0"
The writable SpiralDB database is provisional. The format of its tables (how a table is named,
what its metadata records, how values are encoded) and its writer lease may change in
a later version, and a later version may not read tables written now. Nothing of the
database enters a hash: a job's hashes, ids and stored paths are the same on SpiralDB as
on Delta.

## Opening the SpiralDB database

`SpiralDBConnector(project_id, dataset, writable=True)` opens one dataset as a writable
SpiralDB database. Wrap it in `ConnectorArrowDatabase` and use it as the job's database, its separate result
database, or a cached source's database:

<!-- docs-test: skip -->
```python
from orcapod import PipelineJob
from orcapod.databases import ConnectorArrowDatabase, SpiralDBConnector

database = ConnectorArrowDatabase(
SpiralDBConnector("my-project-123456", "pipeline_results", writable=True)
)
job = PipelineJob(name="experiment", database=database)
```

Signing in is spiral-sdk's: the `SPIRAL_*` environment variables, or a saved
`spiral login`. Without `writable=True`, a `SpiralDBConnector` reads existing keyed tables
(a `SpiralDBTableSource`) and writes nothing.

Each stored table is one keyed table of the dataset, named from its path (a readable
part of the path and a digest of all of it). Its metadata records the full path, the
layout, the data context and the columns, so a table under that name that another
writer made for something else is refused, never written over. The database reads
and writes only the tables it made: it does not take over a table it did not write.

## One writer at a time

The SpiralDB database has one writer at a time. Every run of a job (`job.run()`, `job.run_async()`,
a job node's `run()`, and a load-only run that reads a cached source) takes the
dataset's **writer lease** before it checks a source, computes or writes anything, and
releases it when it ends, also when it fails. A run whose database and result database
are on one dataset takes one lease.

While one run holds the lease, a second writer, in this process or another, is refused
when its run starts, with `LeaseBusyError`. Nothing of its run has happened then: no
source was checked, nothing computed, no data table made. (A run that writes
several datasets takes their leases one after another, so a dataset whose lease it took
before the refusal may hold a new lease table, released.) The error names the lease's table
id and who holds it. The lease is refuse-only: the second writer does not wait and never
takes the lease over, and a lease does not expire.

<!-- docs-test: skip -->
```python
from orcapod.databases.spiraldb_lease import LeaseBusyError

try:
job.run()
except LeaseBusyError as refused:
print(refused)
# SpiralDB dataset 'pipeline_results' has a conflicting writer lease (owner ..., table ID ...). ...
```

Only a job run writes the SpiralDB database, through the writable connectors it holds the
lease with (those of its databases and of the cached sources it reads). A write through
any other writable connector (a cached source read outside a run, a `ConnectorArrowDatabase` over a
connector of its own or over a `share_client()` copy, flushed directly) raises `SpiralDBLeaseRequiredError` before
anything is written, also while a run holds the dataset's lease. A write through a
running job's own databases from outside the run (another thread, an observer) is not
told apart from the run's own: do not write through them while the job runs. A
load-only run of a job writes no node's table, so it takes a lease only for a cached
source it reads. A run takes one lease per dataset of one service: writable connectors
whose client reaches the same service share it, whether their address was left to the
default or given (`overrides={"server.url": ...}`).

### A lease left behind

A process that stops in the middle of a run (killed, or a lost connection) leaves its
lease held, and every later run is refused. Once you are sure that writer has stopped,
and every write it sent has settled, clear the lease by the project, dataset and table
id the refusal named (its message spells out the call):

<!-- docs-test: skip -->
```python
import spiral

from orcapod.databases import spiraldb_lease

spiraldb_lease.clear(
spiral.Client(),
"<project>",
"<dataset>",
"<table id from the refusal>",
confirm_writer_stopped=True,
)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
```

`spiral.Client()` connects to the default service. When the job's connector was made
for another service address (`SpiralDBConnector(..., overrides={"server.url": ...})`),
make the client for that same address, with a sign-in allowed to update the dataset:
a client of another service does not find the table id. Only the dataset's newest lease
table can be cleared: any other table id is refused and nothing is written.

Clearing the lease of a writer that is still running lets a second writer in while the
first is still writing. Each lease is a small keyed table of the dataset; keep every
one, also released ones: removing one by hand can let two writers in.

## Saving and loading a job

A job saved on the SpiralDB database records the connector (`connector_type`, project,
dataset, the service address and `writable: true`), never a credential. A connector is not rebuilt from
a saved file: give it again when loading, as for every connector database:

<!-- docs-test: skip -->
```python
loaded = PipelineJob.load(
"experiment.json",
database=ConnectorArrowDatabase(
SpiralDBConnector("my-project-123456", "pipeline_results", writable=True)
),
)
```

A job saved on the SpiralDB database is loaded with a writable connector, and one saved
on a plain
`SpiralDBConnector` with a plain one: the load refuses the other kind, since the two
read different tables.

## Limits

- Each check of which rows a table holds reads the table's whole key column, and each
read of stored rows reads the whole table, so the cost of a run grows with the
table's history.
- Only a job run writes the SpiralDB database: a cached source over it is read within a
run. A
way to hold the lease outside a run is planned (ITL-1849).
- Status and logging observers do not write to SpiralDB: they raise
`SpiralDBObserverNotSupportedError` at setup; give them another database such as
Delta.
- The database does not take over tables it did not write.
- A column the database cannot keep (a null struct, a duration, a nested logical type) is
refused before anything of its table is written, naming the column. The other databases are compared type by type in
[Data types per database](../reference/database-types.md).
Loading
Loading