Skip to content

Build against the Cypher compiler 0.54.1: nanoseconds worked out on the SQL stores, and a value of the wrong kind refused or failed where it gave null - #601

Merged
jasperblues merged 7 commits into
mainfrom
compiler-0.54.1
Nov 29, 2026
Merged

jasperblues merged 7 commits into
mainfrom
compiler-0.54.1

Conversation

@jasperblues

@jasperblues jasperblues commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

drivine-python moves from compiler 0.53.0 to 0.54.1 (drivine-cypher-spec tag v0.54.1, d787a149): the four pins and the lock, and the spec's copy (scripts/sync_cypher_spec.py v0.54.1, byte for byte).

What it brings, on Postgres, Oracle and SQLite

  • Nanoseconds past the microsecond are worked out where a statement that moved a moment, or took the duration between two, was refused (drivine-cypher-spec#246, part of drivine4j#421).
  • duration.between of two stored values of different kinds reads each as its own (drivine-cypher-spec#440), and epochMillis and epochSeconds before 1970 are counted as Neo4j counts them (drivine-cypher-spec#442).
  • A value of the wrong kind is told in more places (drivine-cypher-spec#447, part of drivine4j#420). A parameter that AND, OR, XOR, IN or a property read can't take is refused for that call, where it compiled (RETURN $p AND true given 1). A number or a text read as a condition, by a WHERE, a CASE WHEN, a filter, NOT or XOR, fails as the statement runs, where it was null. A side of AND or OR known only as the row is read is as before, in a condition too (drivine-cypher-spec#451).
  • 0.54.0's slower reads of stored dates and moments are 0.54.1's again, with Postgres's moves by a duration the statement writes (drivine-cypher-spec#450).

Store layout, additive: the Postgres DDL is drivine:13, so a store made at 12 runs its DDL again on its next ensure. Only the bodies of the functions of temporal arithmetic change, and nothing is migrated. The golden doesn't move.

Here

Tests

  • The whole suite with Oracle, through the lock: 12,652 passed, 0 failed, 606 skipped, 16 xfailed, 4 xpassed. After it, tests and docs alone changed: the changed Oracle tests and the files of the xpasses were run again, 204 passed, 0 failed. The 4 were two tests, async and sync, of Oracle's parse of min and max of a list of moments, held at about 6 s for drivine-cypher-spec#244, which is fixed: their holds are taken out. One is nightly: on a runner, on 0.54.1, it has run once, in the gate (1.3 s, against a bound of 3.5). The files changed after that were run again: 156 passed, 6 xfailed, 0 failed.
  • "Values worked out beside values stored, compared whole" on Oracle without the era functions takes 61 s, and 112 s on 0.53.0.
  • Unit 3,230 passed; ruff, pyright, unasync and the spec check are clean.

Seen once, unexplained. The first CI run of this PR (74f3e5b, "Oracle, 3/4") failed test_managers_booting_at_once_on_a_fresh_graph_…[0]: in one round of eight managers making a new graph at once, one statement met ORA-04020, the round took 39.9 s, and every manager agreed on one identity. The gate's run of the same commit passed. The failing statement isn't known. Looked for on a faster arm64 machine with each contended failure recorded before its retry, 0.53.0 and 0.54.1 alternating: none in 72 rounds on 24 new containers each (half of them at half a CPU), nor in 220 rounds each on 4 containers; times alike. On runners, the test had not failed since it came on 2026-11-22. So it isn't shown to be new with 0.54.1, nor shown not to be.

Upgrading an Oracle graph in use. The first process to connect with this version makes that function again. A session of another process that is running a statement that calls it at that moment (arithmetic on two stored temporal values, such as n.at + n.d) fails that statement once, with ORA-04068. Run it again; in a transaction, let the error end the transaction, and run the whole of it again. Sessions idle then, and statements that don't call the function, were not affected. Any release that changes the function does this. Seen in drivine-python; Drivine for TypeScript and drivine4j make the same function and are expected to meet it, but weren't tested.

Review: 5 passes. 1 to 3 found: the hold missing and the docs passage stale; the held step never run and IN left out; the passage saying too much of other operators. 4: CLEAN. 5, of the last commit: no defect in it; it asked for a nightly run of the test whose hold went, which the gate gives, and for this description to follow it.

@jasperblues
jasperblues merged commit 4446391 into main Nov 29, 2026
46 checks passed
@jasperblues jasperblues mentioned this pull request Nov 29, 2026
@github-actions github-actions Bot mentioned this pull request Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant