Skip to content

v1.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 14:45
· 9 commits to main since this release

Release notes

Highlights

  • Neo4j and APOC write procedures work with no shim — the four calls
    graph tooling leans on (db.create.setNodeVectorProperty,
    db.create.setRelationshipVectorProperty, apoc.create.addLabels,
    apoc.merge.relationship) now run with no opt-in and no client change, so
    neo4j-graphrag's knowledge-graph writer runs against relate serve
    unmodified (#888). Example:

    CREATE (n:Chunk) WITH n
    CALL db.create.setNodeVectorProperty(n, 'embedding', [0.1, 0.2])
    RETURN n.embedding AS e
    
  • Statements run under a wall-clock budget — the new statement timeout
    defaults to 30 seconds on the network surfaces and is overridable per
    request (Bolt tx_timeout, HTTP maxExecutionTime, MCP
    timeout_seconds); the CLI gains --timeout and the .timeout dot
    command, and the embedded library, the C API and the language clients
    (Python's Connection.statement_timeout and its siblings) opt in per
    connection. A timeout inside a batched subquery rolls back only the
    in-flight batch, keeps the committed ones, and is never swallowed by
    ON ERROR CONTINUE. Heads-up: serve used to run queries unbounded, so a
    statement that legitimately needs longer should set its own budget or
    start the server with --query-timeout-secs 0 (#856). Example:

    relate serve --database ./friends --bolt 7687 --http 7474 --mcp 7475 --query-timeout-secs 30 --query-timeout-max-secs 600
    
  • Huge results stream instead of buffering — a multi-million-row answer
    no longer has to fit the server's memory:

    • HTTP: an auto-commit answer past the stream threshold is encoded batch
      by batch into the chunked body, with an error after the head reported
      in-band (#798).
    • Bolt: PULL {n} is answered from bounded batches the statement
      produces on demand, DISCARD finishes without encoding the rest, and
      --max-result-bytes bounds each streamed batch; explicit transactions
      still buffer (#827).
  • Same answers, less waiting — a batch of query shapes got faster with
    identical results:

    • Vector SEARCH reads the indexed vectors from a packed matrix cached
      per index: a 10,000-node × 384-dimension index drops from 19–61 ms to
      ~2–5 ms per search, and the speed holds across writes (#914).
    • A directed two-hop count tallies once per middle node instead of once
      per path: a 58M-path count on a 100k-node, 2.4M-edge graph drops from
      7.0 s to 0.29 s (#858).
    • ORDER BY … LIMIT over a node scan builds rows only for survivors:
      an ORDER BY id(n) page over 100,000 nodes drops from about 52 ms to
      about 1.5 ms (#905).
    • A shortest path between two label-only endpoints sweeps from both
      ends: the same 58,113 paths in about 0.4 s of CPU instead of about
      1.8 s on a 3,100-node network graph (#829).
    • Cached plans survive commits that don't touch them — a hot read after
      an unrelated write keeps its plan, and the planCache metadata now
      reports replan with one of four causes (#873, #884).

Changes by area

Performance & memory

  • Per-label and per-type count subqueries (CALL (label) { MATCH (n:$(label)) RETURN count(n) }) answer from the maintained counts
    instead of scanning the store once per label or type (#830).
  • A grouped count whose keys are one node's properties counts per key node
    and collapses equal keys at the end — a 2.4M-edge in-degree top-3 runs
    in about half the time (#859).
  • A result value that is small in memory but exponential once expanded is
    refused with the expression-memory-limit error instead of hanging, and a
    table or markdown cell longer than 4096 characters is cut with a
    trailing … (#834).

Cypher language & conformance

  • EXPLAIN and PROFILE of CALL { … } IN TRANSACTIONS render the
    body's operators as plan children, and PROFILE reports the batch
    facts — batches run, committed, rolled back under ON ERROR, and the
    per-batch peaks (#787).
  • A pattern comprehension ([(n)-[:R]->(m) WHERE … | f]) evaluates as the
    collect { MATCH … } subquery that is its meaning; one spelling changes
    verdict — a var-length relationship slot rebinding an outer
    single-relationship binding is now the plan-time GroupVariableReuse
    error instead of a null reconciliation (#836).
  • ON CREATE SET labels(n) = … keeps the merge pattern's own labels on
    the node it created, so re-running the same MERGE matches instead of
    creating a second node (#864).
  • LIMIT n without ORDER BY over a variable-length or quantified
    pattern returns min(n, total) rows — counts and writes behind such a
    LIMIT were wrong (#788).
  • count(*), grouped counts and count(DISTINCT …) honor a relationship
    variable pinned by an earlier clause instead of counting every
    relationship of the pattern's type (#789).
  • A WITH's trailing WHERE — plain or aggregating — filters the page
    the projection produced, as Neo4j does; a write fed by it no longer
    receives rows the page cut (#790, #892).
  • A POINT-index distance seek at or beyond a quarter circumference
    (~10,018 km) no longer drops points in the far hemisphere (#791).
  • toString() and toStringOrNull() render list values in display form —
    RETURN toString([1, 2]) answers '[1, 2]' — instead of failing the
    statement (#825).
  • The write-before-batched-subquery rule is now precise: LOAD CSV … CALL (row) { … } IN TRANSACTIONS runs, while a write anywhere before the
    batched call — a write clause or an earlier writing part of the same
    chain — is refused at compile time, with nothing written (#828, #910).
  • CALL { … } IN TRANSACTIONS OF $batchSize ROWS rejects a FLOAT batch
    size (and a FLOAT concurrency) instead of silently truncating it (#826).

Bindings & clients

  • Go client: temporal, point and vector parameters bind as their Cypher
    kinds, so a value read from a result round-trips as a parameter; a zoned
    DateTime binds by its zone, and entity values now refuse as
    parameters — pass their properties explicitly (#901).

Storage & durability

  • An experimental Vortex columnar property store ships default-off: opt in
    with the vortex-store build feature plus RELATE_PREVIEW=vortex-store
    (embedders use the open option; the CLI takes --vortex-store on query
    and serve) — answers, the Cypher dialect and the checkpoint format are
    unchanged (#893).

Packaging & compliance

  • The Linux installer refuses a system below the documented glibc 2.35
    floor before downloading anything, naming the distro floors (Debian 12+,
    Ubuntu 22.04+, Fedora 36+) and the build-from-source and Python-wheel
    alternatives (#786).

Internal

  • Plus this release's internal maintenance pull requests — no user-facing
    change; the complete list is in the full changelog below.

What's Changed

  • fix(distribution): the Chocolatey nuspec declares licenseUrl, not license by @oskarhane in #805
  • fix(distribution): the Chocolatey install script imports the Utility module for Get-FileHash by @oskarhane in #806
  • fix(distribution): the Chocolatey install hashes through .NET, not Get-FileHash by @oskarhane in #807
  • fix(release): the release-notes prompt names the two guard patterns the model kept quoting by @oskarhane in #808
  • fix(release): the release-notes prompt forbids fetch verbs in unfenced prose by @oskarhane in #810
  • fix(release): the release-notes prompt separates command words from registry domains by @oskarhane in #811
  • feat(http): stream result rows from the engine batch by batch (REL8-2066, ADR-0682) by @jexp in #798
  • fix(installer): install.sh refuses a Linux below the glibc floor, with the alternatives (REL8-1841) by @jexp in #786
  • refactor(front): preview gate sites get GraphTypeMembership and GatedElsewhere, gate loop moves to preview_gate (REL8-2082) by @jexp in #819
  • feat(bolt): stream result rows from the engine on PULL (REL8-2066, ADR-0682) by @jexp in #827
  • docs(executor): bulk.rs rename-projection header matches its declines (REL8-2053) by @jexp in #815
  • refactor(executor,ir): one own-scope read fold and one seed column selection (REL8-2070, REL8-2131) by @jexp in #821
  • refactor(executor): unify fulltext query refusal bases and test helper use (REL8-2078) by @jexp in #818
  • fix(executor): keep combining kana sound marks with their base character in the fulltext tokenizer (REL8-2073) by @jexp in #816
  • ci(baselines): drop the Dockerfile.baseline toolchain default; the builder derives it once (REL8-2097, REL8-2071) by @jexp in #812
  • refactor: dedup nits in fingerprint env discovery and two test files (REL8-2071) by @jexp in #817
  • fix(executor): FLOAT modifier values in IN TRANSACTIONS are rejected, not truncated (REL8-2179) by @oskarhane in #826
  • fix(cypher): toString() renders every list value (REL8-2177, ADR-0688) by @oskarhane in #825
  • fix(planner): refuse CALL IN TRANSACTIONS in a NEXT part after a writing part (REL8-2180) by @oskarhane in #828
  • test(scripts): gate-suite cleanups for the ISA and glibc gates (REL8-2152) by @jexp in #813
  • refactor(executor): a pre-bound SEARCH row gets its own row source; fulltext twin cosmetics (REL8-2128) by @jexp in #823
  • fix(executor): refuse a result cell whose expanded size exceeds the expression cap (REL8-641, ADR-0691) by @jexp in #834
  • refactor(executor): heap fuzzy keys as tuples and share a MemoLedger between both memos (REL8-2144) by @jexp in #820
  • refactor(http,model,load): tidy REL8-2033 deferred test and doc lows (REL8-2072) by @jexp in #824
  • fix(executor): a WITH's trailing WHERE filters the page, not its input (REL8-2076) by @jexp in #790
  • refactor(core): MemberShape enum and table-derived member rows in ElementType (REL8-2105, REL8-2106) by @jexp in #814
  • refactor(executor): resolve the hub-star landing once per run and drop chain nits (REL8-2054) by @jexp in #822
  • feat(core): far-year zoned datetimes carry a boxed civil representation (REL8-2136, ADR-0683) by @jexp in #804
  • refactor(executor): typed position view for the NFA chain walks (REL8-2071) by @jexp in #833
  • perf(executor): one-word equality-pair buckets and a presized build (ADR-0686) by @jexp in #831
  • fix(executor): a WGS-84 distance seek past a quarter circumference keeps the far hemisphere (REL8-2076) by @jexp in #791
  • chore(deps): batch the open Dependabot bumps (#837-#846) by @jexp in #847
  • refactor(planner): composed_command reads the one single-part predicate (REL8-2068) by @jexp in #849
  • refactor(ontology): resolve names off the property, type the element kind (REL8-2125) by @jexp in #850
  • fix(executor): add_labels accounts labels from the applied set (REL8-2068) by @jexp in #851
  • test(relate): reopened_node_count helper and typed rollback refusal assert (REL8-2068) by @jexp in #852
  • refactor(storage): coalesce planning and unit writer polish (REL8-2068) by @jexp in #854
  • refactor(relate): settle_statement takes InFlight; gate classification helpers; split ontology txn test (REL8-2125) by @jexp in #857
  • refactor(executor): one compose helper for ontology get/apply; derive the delta at its one reader (REL8-2125) by @jexp in #853
  • refactor(load,bolt,datasets): stellar round-10 boundary polish (REL8-2068) by @jexp in #855
  • feat(engine): a statement timeout, defaulted on the network surfaces and overridable per request (REL8-2162, ADR-0692) by @jexp in #856
  • perf(executor): a directed same-way two-hop count tallies per middle node instead of per path (REL8-2214, ADR-0693) by @jexp in #858
  • fix(cypher): the dynamic all/default type quantifier over a literal list warns 01N61 (REL8-2137) by @jexp in #848
  • perf(executor): the path fold counts a one-node-keyed plain count per node and collapses by key value (REL8-2215) by @jexp in #859
  • test(executor): pin the SET labels(n) = / += / -= write surface (REL8-2238) by @oskarhane in #861
  • perf(executor): a shortest fan lists its scan-territory far side (REL8-334, ADR-0690) by @jexp in #829
  • perf(executor): seeded count-only CALL bodies answer from the counts (REL8-331, ADR-0689) by @jexp in #830
  • fix(cypher): coll.zip type-checks every argument before null propagates (REL8-2138) by @jexp in #865
  • chore(packaging): guard the wasm npm manifest and prove the standalone Go consumer recipe (REL8-1234) by @jexp in #835
  • refactor(front): front-end scope fold nits from PR #660 (REL8-1974) by @jexp in #867
  • test(bolt): route namespace ROUTE through send_route, name run_and_pull's RUN shape (REL8-1991) by @jexp in #869
  • refactor(executor): fold concat path flag into a guard arm, name render_scalar's declined set (REL8-1972, REL8-2196) by @jexp in #871
  • docs(adr): accept ADR-0689, a seeded count resolves dynamic names by @jexp in #876
  • perf(planner): unpriced predicates narrow their endpoint through one default selectivity table (REL8-2217, ADR-0694) by @jexp in #863
  • fix(executor): a capped LIMIT returns min(n, paths) rows, not one per pair (REL8-2076) by @jexp in #788
  • refactor(executor): maps_each_row reads the canonical subclause-aggregation helper (REL8-1907) by @jexp in #875
  • test: one integration-test binary per crate for relate and relate-cli (REL8-2187) by @jexp in #832
  • docs(adr): accept ADR-0690, a shortest fan lists its scan far side by @jexp in #877
  • refactor(load): push scope walk uses add_node/add_rel and retain for dangling count (REL8-1979) by @jexp in #868
  • test(http): tighten plan test assertions, share the range-index fixture (REL8-1968) by @jexp in #870
  • refactor(executor): codec decode_section/section_len seam, one live predicate on Ver (REL8-1975) by @jexp in #872
  • fix(cypher): an origin failing the end pattern's inline predicate is not a same-node pair (REL8-2139) by @jexp in #878
  • fix(executor): the path count fold declines a row-bound relationship variable (REL8-2076) by @jexp in #789
  • perf(executor): readiness checks and row lookups stop allocating and hashing per candidate (REL8-841) by @jexp in #879
  • feat(executor): per-key value statistics, built lazily per label, with provenance (ADR-0696) by @jexp in #866
  • feat(relate): a cached plan that read the per-key statistics replans when they change (ADR-0700) by @jexp in #884
  • feat(executor): serve the key statistics through GRAPH COUNTS and presize the pair from the distinct count (ADR-0696) by @jexp in #891
  • feat(executor): IN TRANSACTIONS renders its body as plan children and PROFILE reports the batch facts (REL8-2047, ADR-0681) by @jexp in #787
  • perf(planner): ORDER BY id(n) over a bare node scan drops the sort (REL8-2266) by @jexp in #886
  • perf(executor): db.labels and db.relationshipTypes read the maintained counts (REL8-2265) by @jexp in #887
  • perf(executor): a pattern comprehension lowers to its collect subquery (REL8-1372) by @jexp in #836
  • perf(executor): the hub join pays only when its one enumeration is no dearer than the nested loop (REL8-2253, ADR-0701) by @jexp in #885
  • perf(relate): a cached plan survives commits outside its token footprint (REL8-1362, ADR-0687) by @jexp in #873
  • fix(tests): the end-predicate integration file uses the merged helper path, not crate:: (REL8-2271) by @jexp in #889
  • docs(adr): ADR-0698 the element id's entity segment sorts in id order (REL8-2270) by @jexp in #882
  • refactor(core): one zoned view carries the temporal relations, one group-key bucket, one Bolt zoned packer (REL8-2176) by @jexp in #883
  • refactor(executor): name the kana sound-mark attachment rule once (REL8-2201) by @jexp in #895
  • refactor(executor): fulltext query parser judges leading forms in one place (REL8-2203) by @jexp in #896
  • refactor(executor): scope-residue nits (REL8-2014, REL8-1986) by @jexp in #897
  • refactor(executor): memo ledger settle, test-only defaults, stale docs (REL8-2012, REL8-2205, REL8-2202) by @jexp in #900
  • refactor(core): clock pins are one both-or-neither value (REL8-2012) by @jexp in #894
  • feat(front): compat callables re-implement foreign procedures as Cypher bodies (ADR-0699) by @jexp in #888
  • feat(core): the quarter date form parses and a comma is the decimal separator (REL8-2289) by @jexp in #902
  • fix(go): typed values bind through the typed putters, not as reflected maps (REL8-929) by @jexp in #901
  • ci(scripts): the repo-signing fixture refresh arm, and the lane that catches a stale one by @jexp in #904
  • chore(distribution): re-sign the repository signing fixture by @jexp in #907
  • ci(distribution): the fixture refresh's gh pr create names its head by @jexp in #908
  • fix(executor): the wide-row UNWIND charge test runs on the big-stack harness (REL8-2276) by @jexp in #909
  • fix(executor): an aggregating WITH's trailing WHERE filters the page, not the groups (REL8-2135) by @jexp in #892
  • perf(executor): the untyped var-length walk descends in place and stops cloning per hop (REL8-2242) by @jexp in #890
  • perf(relate-query-latency): handoff_bench isolates the per-statement worker-handoff term (REL8-1424) by @jexp in #906
  • refactor(executor): fulltext corpus ceiling, split memo test, one fuzzy weight (REL8-2205) by @jexp in #898
  • feat(front): reduce() unifies its accumulator and body types, keys() rejects wrong-kind literals (REL8-2289) by @jexp in #911
  • ci(release): the Java client publishes with every release (ADR-0704) by @jexp in #903
  • feat(storage): experimental Vortex columnar property store behind the PropStore seam (REL8-1982) by @jexp in #779
  • perf(executor): an ordered window keys a candidate before it builds its row, and an id-ordered scan stops when full (REL8-2264) by @jexp in #905
  • fix(planner): LOAD CSV may precede CALL IN TRANSACTIONS (REL8-1224) by @jexp in #910
  • perf(executor): serve vector SEARCH from a packed f32 matrix (REL8-2302, ADR-0705) by @oskarhane in #914
  • refactor(core): one named peak-hold family const set (REL8-1907) by @jexp in #899
  • feat(relate): the vortex-store experimental opt-in — ADR-0703's gate on every surface by @jexp in #893
  • fix(executor): ON CREATE SET labels(n) = keeps the merge pattern's own labels (ADR-0695) by @oskarhane in #864
  • test(vortex): A/B stress harness — sandbox differential and read-only loadtests (REL8-1982) by @jexp in #794

Full Changelog: v1.3.0...v1.4.0