Release Notes
What changed in each release, what it means for you, and what to watch
out for when upgrading. The developer-level ledger behind this page —
the same changes with their reasoning and commit ranges — is the
project’s CHANGELOG.md.
Version 0.6.3 — 28 November 2026
Changed: text search indexes a default list of predicates
The optional full-text index no longer holds every string literal. When
{config-dir}/text.toml sets no predicates key, it indexes a built-in
list of common text predicates: rdfs:label, rdfs:comment, the SKOS label
and definition predicates, dcterms:title, dcterms:description,
dcterms:abstract, dcterms:subject, the Schema.org name, alternateName,
description, text, headline, and keywords predicates, dcat:keyword,
and the FOAF name predicates. Identifiers, URLs, dates, and other
machine-oriented values stay out, so a search for a common word does not
pull in an unrelated vocabulary. The setting behaves as follows:
-
predicatesabsent: the built-in list applies. -
predicates = []: every string-literal predicate is indexed, as in earlier releases. -
A populated list: exactly those predicates are indexed. It replaces the built-in list; it does not extend it.
The indexed predicates define what text search answers from:
-
text:queryfinds literals only under indexed predicates. Naming a predicate outside the list in the subject form is a query error, not an empty result. -
STRSTARTS,STRENDS, and anchoredREGEXuse the index only when every value of the searched variable comes from an indexed predicate. Otherwise they run as ordinary filters: the same answers, without the shortcut.
The Text Search page and the
text.toml reference carry the full rules.
waratah text status now lists the predicates that the current
configuration indexes, beside the stored index settings.
Faster: subject-form text search runs one index search
The subject form of text:query finds the subjects whose property text
matches:
SELECT ?species WHERE {
?species a ex:TaxonomicNode .
?species ex:hasRank ex:Species .
FILTER(text:query(?species, ex:hasName, "bellendena"))
}
It used to add one scan per named predicate, fetch the matching literals, and join the two in the query engine. It now runs a single index search for the whole set of named predicates and resolves the subjects in the object partition, where the index lives, so the engine no longer reads every value of those predicates. Searches with many matches are also kept for the whole query instead of being resolved again whenever the query needs them: the previous cache turned away any search with more than 262,144 matches, and the new one holds up to about 16.7 million matching subjects. Answers are unchanged.
Changed: geometry that cannot be indexed is rejected
A stored geometry that Waratah could not index used to be kept as an
ordinary typed literal. Indexed spatial filters could then omit it, while
the same predicate written as a direct BIND still evaluated it. Waratah
now tolerates only two narrow classes of defect:
-
Very small contact between polygon members of the same
MULTIPOLYGON: cumulative overlap at or below 0.00000001 square degrees, or cumulative shared edge at or below 0.00000001 degrees. -
An exactly retraced, zero-area spike in a polygon ring, a common clip-edge artifact. The stored coordinates and the
STR()output keep the original geometry; the spatial functions evaluate the reduced, valid region. Each accepted literal logs a warning naming its subject, and thewaratah importsummary reports how many literals were reduced.
Every other geometry error, such as a real self-intersection, polygon members that overlap by real area, an unsupported coordinate reference system or shape, or text that does not parse, now fails the insert or import with an HTTP 400 error that identifies the problem. A geo index rebuild follows the same rule: it stops and leaves the index untrusted rather than marking an index that skipped a geometry as ready. The validity rules are on the Geospatial Data page.
Faster: indexed filters inside faceted queries
A text:query, spatial (geof:*), or temporal filter that Waratah answers
from an index used to be copied into every branch of a UNION and into both
sides of a join that mention its variable. Each copy ran its own lookup
over the whole candidate set. In one faceted benchmark query, nine copies
of a single text filter each scanned the full set of values of three
predicates. Each such filter is now evaluated once per query. Measured warm
on the project’s 44.9-million-triple benchmark store with the text index
enabled: a faceted text query went from 22.1 s to 2.9 s, a count query from
6.5 s to 4.3 s, and a paged query from 6.6 s to 4.3 s, with identical
results.
Faster: inline value lists reach the patterns that use them
A VALUES list written at the top of a query used to stay beside whatever
pattern happened to sit next to it, even when the patterns that read its
values sat inside a UNION further down. Those branch scans then read each
predicate’s full set of values. The planner now places each list beside the
patterns that read it. Measured warm on the same store: a faceted query
driven by two such lists went from 100.4 s to 32.4 s, with its storage
round trips falling from 722 to 121 and an identical 348-row answer.
Faster: grouped counts over a UNION
A faceted count query has one UNION branch per facet dimension, grouped
and counted. It no longer builds the combined UNION result before
grouping: each branch folds into the groups as soon as it completes. A
join that only needs to know whether a value exists on the other side now
checks for the value instead of building the join, and a
COUNT(DISTINCT …) over a branch that cannot repeat a value skips the
per-group duplicate check. On the project’s benchmark suite the faceted
queries together went from 296 s to 222 s; three query families improved
by 64%, 84%, and 65%. Answers are identical.
Faster: join order, BIND, and UNION execution
-
A chain of joins is assembled starting from the input the planner expects to be smallest, instead of from the first pattern in the query. With
--seat-by-total-costthe order is additionally ranked by total cost, and a second candidate order is priced and compared. On the 10m-triple benchmark corpus, a query with twoOPTIONALarms went from 329 ms to 270 ms and from 21 storage round trips to 11. -
BINDof a constant value used to rebuild its whole input table to add one column. It now adds the column in place; on one faceted benchmark query the time inside the query engine fell from 0.63 s to 0.30 s. -
The branches of a
UNIONrun concurrently for the whole query and merge as each completes, instead of in waves with a recopy of the accumulated rows after each wave. No branch’s full result is held back for the others, so a wideUNIONneeds less peak memory, and the part of the merged result held in memory is bounded by the query memory budget. -
OFFSETover a largeUNIONno longer recopies the rows collected so far for every page. A 2.49-million-rowUNIONwith anOFFSETand noLIMITpreviously copied about 311 million rows to produce a 30 MB result.
Fixed: ORDER BY on a variable outside the SELECT list
A query could return its rows in no particular order when the ORDER BY
variable was not in the SELECT list:
SELECT ?s WHERE { ?s <http://ex/p> ?o } ORDER BY ?o
The planner treated the sort variable as unused, because nothing projected it, and could drop its values before the sort ran. The sort key is now kept and the rows come back ordered.
Fixed: a distinct row count over a UNION could come out too low
When two branches of a UNION bind the same variables in a different
order and the query carries a LIMIT, COUNT(DISTINCT *) could treat
distinct rows as the same row and return a count that was too low:
SELECT (COUNT(DISTINCT *) AS ?c) WHERE {
{ ?s <http://ex/p> ?x }
UNION
{ ?x <http://ex/p> ?s }
} LIMIT 1
Rows are now compared by variable name, so the count is correct.
Fixed: text:query on a single bound value
FILTER(text:query(?s, …)) failed with an unsupported-form error when ?s
was bound to a single value by a one-row VALUES or by BIND of a
constant. It now answers: the subject form checks that one subject against
the index, and the literal form becomes a direct membership test.
Watch out when upgrading
Rebuild the text index before starting a server that has text search
enabled. An index built by 0.6.1 or earlier has a different internal
layout: the server refuses to start, and waratah import refuses to run,
until the index is rebuilt. Nothing is rebuilt automatically. Stop the
cluster and run:
waratah text rebuild-index --data-dir /path/to/data-dir
Decide what the rebuilt index should hold before you run the command. With
no predicates key in text.toml the index holds only the built-in list,
and literals under other predicates stop appearing in text:query
results. Set predicates = [] to keep indexing everything, as earlier
releases did. The rebuilt index also no longer accumulates duplicate
entries across import chunks and restarts: it keeps one entry per
(predicate, literal) pair.
Rebuild the geo index before serving spatial queries. An index built by an earlier release may omit a geometry that this release accepts:
waratah geo rebuild-index --data-dir /path/to/data-dir
The rebuild stops, and leaves the index untrusted, if it meets a stored geometry that it cannot index. A geometry with a zero-area spike that an earlier release had already stored and indexed must be re-ingested before the rebuild can accept it. If a bulk import stops on invalid geometry, earlier chunks remain loaded: fix the source geometry, re-ingest the corrected file, then run the rebuild command above on a stopped store.
Also in this release:
-
Geometry that an earlier release accepted may now be rejected at insert or import time, because it cannot be indexed. The error names the problem; fix the source geometry and load it again.
-
Rows of a
UNIONwithoutORDER BYnow follow the order in which its branches complete, and aUNIONwith a failing branch now fails as soon as that branch fails instead of after the others finish. SPARQL leaves this order unspecified and the result set is the same.GROUP BYresults now come in a stable order for the same data, where the order previously varied between runs. -
EXPLAINoutput changes: a join that runs as an existence check shows as(semi ?key). With--debug, aplan-tree:line shows the final plan that the engine runs. -
Query plans can differ from 0.6.1: join order, the placement of inline value lists, and which joins run as existence checks are decided anew. Answers are identical; the estimates only choose between equivalent plans.
-
Building from source: the bundled RocksDB binding is no longer a member of the Cargo workspace, so
cargo test --workspaceandcargo clippy --workspaceno longer cover it.cargo build --workspaceis unaffected. The command for its integration test is in the upgrade notes of the project’sCHANGELOG.md.
Version 0.6.1 — 23 November 2026
Fixed: a slow join path for a small lookup
One query shape ran slowly from 0.5.0 onward: a join that looks up a single page of values in a very large pattern, where the planner cannot estimate how many rows the lookup matches. The engine could choose to read the whole pattern and join it in bulk instead of looking up each value. On the project’s 44.9-million-triple benchmark store, a lookup of 16 values against a 44.8-million-triple pattern took 13.3 s instead of about 8 ms. The cost model now keeps the per-value lookup for that case. Answers were not affected; only the time.
Version 0.6.0 — 22 November 2026
Faster: counting queries no longer build the join
A plain COUNT over joined patterns used to materialize every matching
row pair and count the result. The engine can now answer such a count
from per-key row counts that storage already maintains, combined by the
exact multiplication identity for a join — the join itself is never
built. On the project’s 100m-triple benchmark corpus, the heaviest
query of this shape went from 29.3 s to about 0.4 s, and the rewritten
plan reads 59 compact count records instead of scanning 2.8 million
rows. Per-subject tallies (GROUP BY ?subject with a count) can take
the same storage-side road when the query fixes the predicate. Answers
are identical.
New: filter comparisons are checked inside storage
A filter that compares one variable against a constant — for example
FILTER(?v >= 1967 && ?v <= 1971) — now travels with the scan that
produces the variable, and storage drops rows that fail the comparison
before they leave the storage process. The full filter still runs on
arrival, so answers never change. Comparisons with exact value
semantics — the numeric types, decimal, float, double, dates, and
date-times — can be decided entirely during the scan and skip the
second check, and more filters of these kinds run without extra text
lookups (ABS(?v) > 0, YEAR(?d) = 2010). Start the server with
--no-eager-scan-filter to restore the previous behavior.
Faster: large lookup lists keep their filtered reads
When a join step knows the values a variable can take, storage returns only the rows matching those values. A list too large for one request used to be abandoned in favor of reading the whole table — mostly rows that are then discarded — and a list past the wire format’s message size could fail the query outright on a clustered deployment. Large lists are now delivered as a series of threshold-sized chunks, each keeping its filtered read, so both shapes answer correctly without the wasted reading. Where a value list already reaches nearly every row of the table, the engine deliberately takes the plain full read instead. Answers are unchanged.
Faster: fewer round trips for paged queries
-
A query whose
LIMITlands exactly on the end of the data no longer sends a final request just to confirm that nothing follows. -
LIMIT-bound queries fetch larger pages per request — up to 24,576 rows instead of 10,000 — so bounded queries need fewer round trips.
Fixed: distinct-subject and per-subject count queries
SELECT DISTINCT ?s WHERE { ?s :p ?o } and the per-subject tally
SELECT ?s (COUNT(*) AS ?n) … GROUP BY ?s failed with an error ("does
not serve permutation") instead of running. Both query shapes now run.
Faster: string lookups run in parallel by default
Translating the engine’s internal string identifiers back to text — the step every result row passes before it is returned — now runs across several workers by default, following the storage worker pool’s width (at most 8). On a 44.9m-triple store, one query’s cold first run went from 6.76 s to 3.74 s. The environment variable that controls this is in the upgrade notes below.
Behavior note: equality on long string literals
= over string literals longer than 15 UTF-8 bytes is decided on the
stored 128-bit content hash of the text — the storage model’s own term
identity — rather than by re-reading the text. Two different texts
producing the same hash is astronomically unlikely (about 2^-128), and
the storage model itself could not tell such a pair apart. Literals of
15 bytes or fewer compare textually, as before. The semantics are on
the SPARQL deviations page.
Watch out when upgrading
-
WARATAH_REGISTRY_WALKSleft unset now runs the parallel string lookup described above; set it to0or1in the server environment to restore the serial walk. An explicit value of 2 or more is used as given. -
Queries that read an entire relation end to end now fetch it once into a buffer that spills to disk when it outgrows RAM, where the rows previously arrived page by page. Result sets are identical; give
--spill-dirreal disk (the default under a data dir is{data_dir}/spill). -
Query plans can differ from 0.5.1: join arrangement is re-priced after the new counting and filter rewrites. Answers are identical — the estimates only choose between equivalent plans.
-
EXPLAINoutput changes: counting plans show the per-key count steps, and subject-keyed tallies name their storage access. -
A single scan response may now carry up to about 29,000 rows (the wire format’s maximum, previously a fixed 10,000). Nothing needs changing unless your deployment pins its own gRPC message size below the default.
Version 0.5.1 — 18 November 2026
Fixed: spatial queries missing records near the edges of large shapes
A spatial filter such as geof:sfWithin over a large polygon could
silently omit records sitting well inside the shape — tens of
kilometers from the boundary — while the same predicate written as a
BIND expression returned them. The cause sat in the spatial index:
it models shape edges as curved lines on the sphere, while geometry
text treats them as straight lines in longitude/latitude
coordinates. On shapes the size of a continent the two readings of
the same coordinates differ by up to about 1°, and records that only
the straight-line reading includes never reached the precise
geometry check that would have returned them.
Long edges are now subdivided before the index sees the shape, on both the data-loading side and the query side, so the two readings can no longer disagree about which records to examine. Indexed spatial queries, expression forms, and other planar engines (JTS, shapely) now agree; workloads that had compensated for the missing records will see result sets grow — the larger answers are the correct ones.
New: edge densification setting
--geo-densify-step sets the subdivision step in degrees (default
0.1, roughly 11 km segments). 0 or false restores the previous
behavior. Values below 0.0001 are rejected — finer steps buy no
accuracy beyond the index’s own resolution, only indexing time.
Changing the step, like the other geo index settings, requires an
index rebuild. The Geospatial Data page has
the full setting table.
Fixed: three query failures involving geometry values
-
STR()over a stored geometry (SELECT (STR(?w) AS ?text)) failed the whole query with an HTTP 400 error. Projections, filters, and aggregate arguments now retrieve stored geometry text through one shared mechanism. The rendered text is the canonical spelling of the stored CRS84 form; the authored spacing is not reconstructible from the stored binary value. -
A geometry written directly in the query — a multi-row
VALUESon the predicate’s variable, or a geometry inside anEXISTS— failed with an internal error about a value missing from the blob store. Query-authored geometry now resolves from the query’s own value cache instead of looking for a stored copy that was never written. -
A geometry the engine cannot index natively — an unsupported coordinate reference system, a geometry collection above the index’s cell limit, an oversized value — silently dropped its row from a multi-row
VALUESresult. Such rows now resolve correctly, and a geometry value that resolves nowhere fails the query with an explicit error instead of silently skipping the row.
Watch out when upgrading
Rebuild the geo index before serving geo queries. Existing index entries were built without densification and carry no marker of which version built them, so the engine cannot detect the mismatch itself:
waratah geo rebuild-index --data-dir /path/to/data-dir
Indexed spatial query answers grow on data with large shapes — the records near long straight edges come back. The selectivity estimates the planner uses for geo queries shift accordingly; they are advisory, and answers never depend on them.
Version 0.5.0 — 17 November 2026
Faster: joins fetch their rows from storage in parallel
When a join step already knows the values a variable can take, it can ask storage to return only the rows matching those values. Those asks used to go out one small batch of intermediate results at a time, one after another. The engine now gathers the lookup values across a whole run of batches, removes duplicates, and fetches the matching rows in parallel waves — on the heaviest join query of the project’s benchmark suite, the concurrent fetch stage ran 2.16–2.47× faster than the sequential path.
Two related narrowings landed with it:
-
A join step whose value list had grown beyond the size where filtered lookups are worthwhile used to abandon the filter and read the entire table — one benchmark query read 541,505 rows to keep 62,431 matches. Large lists are now split into chunks, and every chunk keeps its filtered lookup, fetched in parallel.
-
A new guard estimates how much of a table a value list can actually match. When most rows would match anyway, a plain full read is cheaper than a very large set of targeted lookups, and the engine takes the full read deliberately.
Answers are unchanged; only the fetching strategy differs.
Leaner scan traffic
Scans no longer send back every term byte: values the query already
fixed — the predicate in ?s :p ?o, a bound object, a value handed
down by an earlier join step — are left out of the response and
rebuilt on arrival. A value is omitted only when the receiving side
can reconstruct exactly the term that would have been sent, so results
are identical. Measured across the benchmark corpus, 36% of the term
bytes scans produce never leave the storage process; the saving grows
with the share of each pattern the query fixes.
Fixed: queries that failed on constant terms in expressions
A query could fail outright when an expression used a constant in the
wrong position: BIND(<iri> AS ?x) after a pattern, constants inside
COALESCE and IF, constants as aggregate arguments such as
SELECT (MIN(<iri>) AS ?m), and geometry literals in any of those
positions. The failure was an internal lookup of a string that was
never registered; over HTTP it surfaced as a connection closed with no
response. Constants now travel with the query plan and resolve without
that lookup, and geometry constants render their authored spelling
byte-for-byte instead of a re-canonicalized form.
Faster: under the hood of large queries
-
The per-query term dictionary — the table that assigns compact identifiers to terms while a query runs — moved to a denser layout with fused lookups. On the 100m-triple benchmark corpus, queries ran 5.5–6.8% faster with 108–206 MiB less memory, and a plan that over-estimates its term population now costs microseconds instead of milliseconds (a 250,000-slot reservation went from about 0.4 ms of writing to about 8 µs).
-
Property paths (
:partOf*-style traversals) keep their working state in a compact interned form roughly ten times smaller than before; deep traversals of wide hierarchies benefit most. -
String functions (
STR,STRLEN,LANG,LANGMATCHES) resolve values from the query’s own caches before asking the string registry, so repeated lookups over cached constants and result terms disappear. -
The distinct-value enumerations behind
VALUES-drivenSELECT DISTINCTqueries walk storage keys without decoding terms row by row. -
When a whole-table read that the planner estimated as small turns out much larger, the executor stops trusting the estimate for the rest of the query and switches back to the incremental path — the mispriced read is paid once, not once per batch.
-
Release binaries are built with thin LTO: about 2% faster overall on the benchmark suite, with byte-identical results.
Changed: parallel fetch width is configurable
How many join fetches a query runs concurrently — 3 by default — can
now be set with WARATAH_QUERY_FETCH_CONCURRENCY in the server
environment. Values 0 and 1 disable parallel fetching (the previous
sequential behavior); larger values are clamped to 64. The default
preserves the effective width of 0.4.2 exactly: the old internal
setting of 4 funded only 3 concurrent workers through an off-by-one,
and the corrected default of 3 funds the same three.
Watch out when upgrading
-
Query plans may differ from 0.4.2. The cost model that decides how each join fetches its rows was recalibrated against measured timings, so the same query can choose a different join shape. Answers are identical — the estimates only choose between equivalent plans.
-
EXPLAINoutput changes: a multi-step join spine now renders as a single(concurrent-star ?key arms=N)line instead of one line per step. -
ORDER BYover an expression of a stored string (ORDER BY STRLEN(?name)) can order differently by result size: small results keep input order when the sort key needs a string lookup, while results large enough to spill to disk re-sort by the resolved value. The spilled ordering is closer to what SPARQL specifies, but the two paths can disagree with each other until a unifying fix lands. -
Very large property-path traversals (for example a
+step out of a popular node) no longer stop with a "too many pairs" error at the old size limit: the limit is now eight times higher, so queries over deep hierarchies that failed in 0.4.2 can return results. Such walks now use more memory before giving up instead of failing early.
Version 0.4.2 — 11 November 2026
Fixed: grouped join queries that slowed down as the data grew
Analytical queries — a GROUP BY over several joined patterns — could
scale badly: one benchmark query of that shape ran in half a second at
the 10m-triple tier but took about 31 seconds at the 100m-triple tier,
slower than engines Waratah normally beats, because the executor kept
re-partitioning a join table it had already built and cached. The
cached table is now reused the way the other join shapes always used
it. On the project’s benchmark suite:
-
the affected query dropped from 30.7 s to 3.6 s (hot) at the 100m-triple tier, and roughly halved at the 10m tier;
-
overall suite timing improved by 9–14% at both tiers.
Query answers are unchanged in content. One observable difference: in
results without ORDER BY — where SPARQL leaves the row order
unspecified — the order produced by the affected query shapes may
differ from earlier releases.
Changed: joins use less peak memory
The hash tables joins build now store their row lists in one flat array instead of one small allocation per key. Peak memory during query execution — the number that decides whether a server fits its RAM budget — was measured lower on every benchmark corpus: 3–10% lower on average, and up to 40% lower on the queries with the largest joins. Timing is unchanged to moderately faster, with the biggest joins gaining the most.
The previous layout remains selectable for diagnostics: set
WARATAH_JOIN_TABLE=map in the server environment. An unset or
unrecognized value selects the new layout (the default).
Version 0.4.1 — 10 November 2026
New: text search (opt-in)
Full-text search over string literals, switched off by default. Turn it
on with waratah start --with-text or the [text] section of
{config-dir}/text.toml. When enabled:
-
Jena-style
FILTER text:query(?lit, "pattern")finds matching literals through a full-text index instead of scanning. -
STRSTARTS,STRENDS, and anchoredREGEXfilters can use the same index to hand the planner a small candidate set — a selective prefix-join benchmark query went from 5.2 s to 28 ms at the 10m tier.
The index covers every string literal, which is why it is opt-in: it
changes write latency and disk use. Deleted rows are not removed from
the index; run waratah text rebuild-index after bulk deletes. Start
with the Text Search page and the
best-practice guide.
Faster: counting queries
COUNT(*)-shaped queries and rdf:type tallies now split their work
across the storage workers. On the 13.4M-row benchmark store: a
count-all went from 2297 ms to 293 ms, and a type-count tally from
367 ms to 44 ms. WARATAH_COUNT_WALKS tunes the slice count (0
restores the serial walk).
Changed: serving threads are unpinned by default
WARATAH_SERVE_CORES (introduced default-on in 0.4.0) now defaults to
off everywhere. Measurement on the benchmark machine showed static
pinning strictly harmful for query latency tails under the new worker
pool. This changes thread placement only — answers are unaffected.
Fixed: two read-path slowdowns introduced in 0.4.0
RocksDB statistics collection had been attached to every database the process opens, adding a flat per-read tax: two benchmark queries ran 21% and 34% slower than their 0.3.2 baselines. Statistics now collect only when the SST prefix-filter feature is armed; both queries returned to baseline.
Version 0.4.0 — 9 November 2026
New: saved query library
A curated, read-only query library for tools and dashboards: put
*.rq files under {queries-dir}/{repository} (or use the samples
bundled with --load-demo) and clients can list them at
GET /waratah/repositories/{id}/queries. The console’s Query library
reads the same feed. The HTTP contract is on the
query library API page.
New: large literals move to a blob store
Oversized values — very long strings, large binary literals, geometry
WKB — now live in a content-addressed blob store instead of being
carried through the string registry, keeping registries and index
scans smaller on data with large literals. waratah blob verify
checks the store’s integrity against the registry.
Faster: storage engine and parallel spill joins
-
The bundled storage engine moved from RocksDB 11.8.1 to 11.12, and the on-disk key format moved to v8 with shared-prefix compression — smaller SST files on data with repetitive keys.
-
Joins that spill to disk run their bucket loops across workers in parallel, and — fixing an oversight — queries arriving over HTTP now take that parallel path too.
-
Small scans whose size is known from statistics run on the calling thread instead of waking a worker, removing a fixed ~600 µs scheduling stall from every small lookup.
New (opt-in): per-SST prefix bloom filters
WARATAH_SST_FILTER=1 arms prefix bloom filters over the SST files,
skipping files that cannot contain a sought key. On wide
VALUES-driven scans of a 76 GB store it measured 15–27% faster;
cold starts and memory grow, so the default stays off. A correctness
bug found in the armed path (distinct rdf:type head scans truncating
their results on one large store) was fixed before release.
Changed: domain-scan modes simplified
The WARATAH_DOMAIN_SEEK_UNION mode was removed — batteries measured
it indistinguishable from the remaining modes, so setting it now warns
once and is ignored. Constraints are visited in key order on every
mode, which also fixes a paging bug where constraints sorting before a
resume cursor could be dropped. VALUES-bound SELECT DISTINCT
queries now take the domain-scan path instead of streaming every row
through dedup.
Fixed: SPARQL parsing correctness
The SPARQL front-end upgraded to sparopt 0.3.9, pulling in upstream
parser fixes for queries that previously returned wrong results, plus
recalibrated cardinality estimates. Separately, writes binding an
invalid term to the object of rdf:type are now rejected at the write
funnel instead of being stored.
New: AI services (opt-in)
Waratah can now act as a gateway between AI clients and your data. The feature is off by default; turn it on with:
waratah start --with-ai
(or enabled = true in the [ai] section of your configuration). When
enabled you get:
-
GET /waratah/ai— discovery of the available AI endpoints and upstream models. -
An LLM egress proxy at
/waratah/ai/upstreams/{id}/…— requests are forwarded only to upstreams you have allowlisted, and API keys stay with the client unless you configure one for an upstream. -
GET /waratah/repositories/{id}/ai-context— a schema summary of a repository, sized for AI clients that need to understand your data before writing queries.
With the feature off, these endpoints answer with a structured "not implemented" response — nothing else about the server changes. The full HTTP contract is in the AI services HTTP contract page.
New: documentation site and container image
If you are reading this page, you have found the first one: the project
documentation is now a versioned, searchable site built with Antora,
with dark mode included. Release builds also assemble the rustdoc API
documentation alongside it. A container image build
(scripts/build_container_image.sh) ships with a healthcheck and a
reproducible Python interpreter, so waratah can run in containers
without a host toolchain.
Changed: the command line
The waratah dev … commands are gone — the cluster commands are now
top-level, and starting a cluster daemonizes by default:
waratah start --load-demo # starts the cluster, returns once it is up
waratah stop # ends the background cluster
waratah standalone --load-demo # one process, stays attached
waratah start keeps the cluster running in the background and writes
logs to {data_dir}/logs/; use --foreground if you want it attached
to your terminal (service units and CI should use --foreground or
--debug). The full command surface is in the
Command Line page. If you have scripts that called
waratah dev …, they need updating — that is the one breaking change
in this release.
Watch out: query results that changed (correctly)
Three narrow corrections to how terms compare. You only notice them if your data contains the relevant values, and in every case the new answer is the correct one:
-
COUNT(DISTINCT …)over NaN float/double values no longer counts one value twice. -
Distinct lexical forms stay distinct terms:
+0.0and-0.0, and NaN values, keep separate identities insameTerm-style comparisons. PlainFILTER =is unchanged —+0.0 = -0.0is still true andNaN = NaNis still false, exactly as SPARQL specifies. -
Two timestamp literals for the same instant written with different UTC offsets are no longer whole-term equal — they are different lexical terms.
The reasoning and the full semantics are documented in the SPARQL deviations page.
Faster: geo queries
Plan costing now matches what the engine actually executes, and geo
queries reorder accordingly — same answers, far less work. On the
project’s benchmark corpus: transects across the 100m-triple tier went
from 412 ms to about 14 ms (hot), and distributions-intersect from
397 ms to about 27 ms. If you diff explain output between versions,
expect different join orientations on geo queries; results are
identical.
Operator notes
-
waratah geo rebuild-indexis dramatically faster — minutes at the 10m-triple tier instead of hours, scaling linearly instead of quadratically. If a rebuild was ever interrupted on an older version, run it once more: interrupted rebuilds now mark the index untrusted instead of silently serving a partial one. -
New:
waratah geo censusreports the geo index’s posting counts per level, useful for watching index size and estimator behavior. -
The RocksDB binding is now built from an in-tree fork; building from source needs a C toolchain (clang or g).
Version 0.3.1 — 25 October 2026
New: large joins spill to disk instead of running out of memory
Joins whose build side does not fit in memory now partition to the
spill root and merge back in order — the Grace hash join. Memory stays
bounded no matter how large the join grows, and joins that turn out to
be selective stay in RAM. Spill files go to --spill-dir (defaulting
to {data_dir}/spill when a data dir is set); without a data dir the
system temp directory is used, which is RAM-backed on many systems —
Waratah logs a warning at startup if so, and a --spill-dir on real
disk is the fix.
The spill path was hardened through several review rounds: serial and parallel execution produce identical row order, selective outputs return in-RAM, and spilled data is schema-checked.