Repository navigation
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
Conversation
…meter of the wrong kind gives
…ue of the wrong kind
…tracks the others (#602)
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
duration.betweenof two stored values of different kinds reads each as its own (drivine-cypher-spec#440), andepochMillisandepochSecondsbefore 1970 are counted as Neo4j counts them (drivine-cypher-spec#442).AND,OR,XOR,INor a property read can't take is refused for that call, where it compiled (RETURN $p AND truegiven 1). A number or a text read as a condition, by aWHERE, aCASE WHEN, a filter,NOTorXOR, fails as the statement runs, where it was null. A side ofANDorORknown only as the row is read is as before, in a condition too (drivine-cypher-spec#451).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
docs/04-statements.mdsays what each place gives a value of the wrong kind.dayOfWeek, as the year calls none since 0.54.0.Tests
minandmaxof 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.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
INleft 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.