Release 0.6.1 #720
StevenBtw
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
[0.6.1] - 2026-11-01
Correctness and speed release. Backups and restores survive a crash, stored procedure bodies run as their statements do, SPARQL follows SPARQL 1.1 in
OPTIONAL,MINUS,BINDandFILTER EXISTS, GQL quantified patterns repeat as ISO GQL defines them, the query timeout stops every query, and dates, times, bytes and NaN keep their type through every binding. Plus a CSV and an RDF file loader,schema()with value types, and faster SPARQL lookups, Cypher multi-hop patterns, degree counts and bulk updates by key.Changed
Queries and calls that ran in 0.6.0 and now fail or return another type (each fix is under Fixed). Results that change because a wrong answer was fixed are under Fixed only; every one in the differential test corpus is listed, with its reason, in
scripts/difftest/reviewed/0.6.1.txt.CASTof text that is no number fails with22018, to aDECIMAL(p, s)that is too small with22003, and a float outside the integer range, an infinity or NaN to an integer with22003; they gave null, the largest integer or 0.toIntegerandtoFloatof text that is no number still give null.{3,1},*3..1or a quantifier both inside and after an edge's brackets is a syntax error.rdf,rdfs,xsd,owlandfn, a variable or quoted triple inINSERT DATAorDELETE DATA, andBINDto a variable in scope are syntax errors; N-Triples,INSERT DATAandbatch_insert_rdfrefuse a literal subject or a predicate that is not an IRI.CREATE INDEXwith a name another index has fails (IF NOT EXISTSkeeps the existing one). A file with a named vector index cannot be opened by 0.6.0.SERIALIZABLEis refused withGRAFEO-Q004(it ran as snapshot isolation);START TRANSACTION,COMMITandROLLBACKthrough a transaction object'sexecutefail with25000; in C#,Rollback()after a commit throws.GRAFEO-S004(08000) and a restore without its manifest, cursor or full backup withGRAFEO-V001; an incremental backup into another directory, a snapshot whose catalog does not apply and a parameter nested over 128 levels are refused;hybrid_searchwithout an index it can read fails.TierOverride::ForceDiskfor a section that cannot move to disk is refused byConfig::validate.node["k"]andnode.get("k")return native values. In Go, C# and Dart a DATE, TIME, DURATION or ZONED DATETIME result is a typed value, and in Node.js its tag object ({ $time: '12:30:00+02:00' }); they were strings or maps. A C#DateTimeOffsetparameter is a ZONED DATETIME and a Gotime.Durationa DURATION.WASM: faster (and larger)
@grafeo-db/wasm-litegrows from about 940 KB to 1.1 MB gzipped and@grafeo-db/wasmfrom 1.6 to 1.7 MB.=~and SPARQLREGEXrun about as fast as in 0.6.0.Added
schema()describes the data's shape: each label and edge type with its properties and their value types, and each edge type with the labels it connects, in Rust and every binding.load_nodes_csvandload_edges_csv(Python, Rust, sessions) and thegrafeo.load_nodes_csvandgrafeo.load_edges_csvprocedures load a typed CSV file in one transaction, checking its keys, about 2.7 times as fast as batch inserts. Experimental.load_rdf(path)andload_rdf_text(text, format)in Python and Rust load Turtle or N-Triples into the default or a named graph as one bulk write, about three times as fast as a batch insert in 0.6.0.query_timeoutandexecute(..., timeout=)in Python,queryTimeoutin Node.js.GrafeoLockedErrorfor a database open elsewhere, Node.js errors carryerrorCode,gqlStatusandisRetryable, WASM errors their GQLSTATUS, and a Node.jsTransactionrolls back when disposed.WHERE, quantifiers,ANY SHORTESTandALL SHORTEST, path modes and path variables withPATH_LENGTH,NODESandEDGESinsideGRAPH_TABLE. A shortest path over more than one edge pattern is not supported yet.OPTIONAL, an alternative path or aUNIONon a bound subject or object finds its triples through the indexes, a group starts at its most selective pattern, and a property path from bound terms searches from them. LDBC IS1 on RDF runs about 7 times and IS4 about 24 times as fast, IC13 in under a millisecond (it took 6 s), and?s (v:KNOWS|^v:KNOWS) ?ffrom a bound?sin about 0.04 ms (it took 80 ms).INSERT DATAand a query: 1.4 ms, was 178 ms), and the RDF store's indexes are keyed by term ids, for 27 to 31% less memory (#659).LIMIT 10over two hops in under a millisecond and no memory, was 0.4 s and 440 MB), Cypher patterns over several relationships are 2 to 4 times as fast, degree counts read the adjacency (about 3.5 times as fast grouped, 2 to 2.8 times without grouping), property reads, filters and grouping 1.1 to 1.3 times, and a shortest path between two nodes stops sooner (LDBC IC13 about 0.25 ms per pair, was 6.3).Deriva
Changes for Deriva, which keeps its graph in an embedded Grafeo database through the Python binding.
update_nodes(labels, rows, key="id")updates existing nodes by key in one call (about 6 ms for 1,500 rows, where the same query took 500 ms; through an index on the key, 0.25 ms for 40 rows), andget_properties_batch(ids, keys)reads several properties of many nodes, also in Rust.grafeo[arrow]: the extra that installs pyarrow fornodes_to_arrow(),edges_to_arrow()andto_arrow().UNWIND $rows AS r MATCH (n:Method {id: r.id}) SET ...is about 60 times as fast, andMERGE(withupsert_nodes) of 1,500 rows takes about 20 ms (it took 5 s).labels(n)about 27 times as fast,count(*)of a label from the store's count, anORof labels reads only those labels (about 2.5 times), an edge check of one type stops at the first edge (about 200 times on busy nodes), an index lookup looks past label checks (about 45 times), and a lookup by an indexed key on two labels checks both in the lookup.EXISTSruns once over the rows it checks, also insideORandNOT(about 3 times as fast), and anOPTIONAL MATCHfrom bound nodes reads only their edges (LDBC IC13 under a millisecond, where it took over 30 s).get_nodes_by_label, was 1.8 times.Fixed
Every query result in the differential test corpus that differs from 0.6.0 is listed, with its reason, in
scripts/difftest/reviewed/0.6.1.txt.GRAFEO-S005.PROFILEof a count over a multi-hop pattern and of a SPARQLDELETE WHEREwithout variables, a SPARQL syntax error that looped until memory ran out, a parameter nested over 128 levels, thousands of conditions on a path or Gremlin branches (#668), a two-hop pattern through a node with over 65,536 paths, and values that wrapped around (the largest id, a WAL record over 4 GiB, an RDF ring over 2^32 terms).WHEREinside holds for each step, a segment of several edges repeats within its bounds, an unbounded walk is no longer cut at 100 hops,{,2}starts at 0, and(n:%)matches only labeled nodes.OPTIONAL MATCHandEXISTS: anOPTIONAL MATCHkeeps its rows when itsWHEREholds a subquery, and anEXISTSwith a condition no longer runs over nodes the query never asked about.OPTIONAL CALLkeeps the row with nulls; a stored procedure returns as many values as it declares, and aYIELDin another order picks by name; procedure columns follow the arguments; a body runs with the schema and constraint checks of its statements,USE GRAPHwith its grant checks, and a limit of 16 nested calls.LETvariables inside lists, maps andCASE(#539), severalLETdefinitions in order, negative list slices,IS TYPED LIST<NODE>,size()andtoList()of a vector (#585),all_differentandsameby value,Infinityin text, a float%by zero is NaN, and Cyphersum()of no values is 0.toInteger(' 42 ')is 42 andtoInteger('4.2')4, a float to an integer no longer wraps around, and decimalsumandavgno longer depend on the order of the rows, nor do products and remainders that fit fail (#669).GROUP BYwithoutORDER BYgives its groups in first-row order on every run and every database, also when they spill, and aggregates over a chain of edges read the variable they name.//comments, non-reserved words and double-quoted names as names, a laterINSERTcreating its new nodes, doubled backticks in Cypher names (#579), and compound types in Cypher DDL (#678).shortestPathfrom a node to itself is no path, a variable-length relationship whose upper bound is below its lower bound (*3..1) matches nothing, as in openCypher, undirected variable-length counts no longer fail on the path budget, and Gremlincoalesce()andoptional()choose a branch per traverser (#668).NODES(p)andEDGES(p)return nodes and edges (#678),ORDER BYan outer alias, parameters named after keywords, andLIMIT $nandOFFSET $n, with errors that name their clause.UNWINDs;range()near the largest integer stops at its end.CREATE VECTOR INDEXtakesIF NOT EXISTS, andSHOW INDEXESandlist_indexes()also list the indexes made through the API.DROP GRAPHforgets its type,LIKEan untyped graph is the open type, andSHOW NODE TYPESwrites DDL.schema()anddb.labels()list only what is in use, stored procedure errors say "Procedure", and EXPLAIN and PROFILE show the whole plan as it runs, with each operator's numbers on its own line, also with subqueries and index pushdowns.FILTERinsideOPTIONALreads the whole solution, a group that opens withOPTIONALorMINUSstarts from one empty solution,FILTER EXISTSandNOT EXISTSonly filter,BINDto a variable in scope is refused, an unbound variable joins with what follows, andGRAPH ?gover a pattern without?ggives a row per named graph.DELETE WHEREdeletes only what a match of its whole pattern holds: without a match it no longer deletes its triples without variables, and every triple of a match goes, not only the first.[]is a blank node,VALUESafter the query andORDER BYa function call parse,EXPLAIN,EXPLAIN ANALYZEandPROFILEwork after the prologue, IRIs with\uescapes match, alternative paths with an inverse branch run,xsd:floatstays a float, andLOADsays it is not supported. N-Triples and Turtle read a dot right after a blank node or language tag and\u,\U,\band\fescapes.DURATION 'PT-1.5S'is minus one and a half seconds (it read as -0.5 s), and a duration of mixed signs is writtenP1MT-1.5S(it wasP1MT-1.-5S) and reads back in every binding; a duration part past 64 bits or a signed time offset (12:00+-1:00) is refused instead of wrapping around.time.Timeand the newgrafeo.Date,TimeandDuration; C# microseconds,DateOnly,TimeOnly,DateTimeOffset, and the newGrafeoTimeandGrafeoDuration; Dart's newGrafeoDate,GrafeoTime,GrafeoDurationandGrafeoZonedDateTime; Node.js the tag objects.$bytesand$floattags in the C, Go, C# and Dart bindings and arrive as native values; Go decodes tags in nodes, edges, streams and AsOf reads, and its streams give numbers asjson.Number.LOAD DATA FORMAT PARQUETreads DATE, TIMESTAMP, TIME and DECIMAL columns as their types, the Python wheel loads Parquet (uncompressed or Snappy), and another codec is named in the error.rollback()after a failed commit does nothing, and WASM hasdetachDeleteNode(#678).GRAFEO-S002;PreparedCommit::commitreturns its own epoch; CDC events of named-graph triples name the graph;list_graphsis sorted; a JSON parameter with a tag beside other keys is a map; builds withtriple-storealone compile.Deprecated
GrafeoDB::store(): its writes skip the write-ahead log, transactions and change capture. Write through a session or the direct API, and read throughsnapshot().async-storagefeature, withGrafeoDB::async_wal_checkpointandasync_write_snapshot, which only wrapped a blocking call: callwal_checkpoint()fromtokio::task::spawn_blocking. From 0.7.0 theenterpriseprofile is metrics and tracing.Config::with_threads,with_query_logging,with_schema_constraints,without_schema_constraintsand their getters, which never had an effect.RdfStore::copy_graph: use SPARQLCOPYin a session, which is logged.CatalogError::InvalidCheck: nothing returns it; CHECK constraints come back later as DDL.All are removed in 0.7.0.
Contributors
OPTIONAL,MINUSandBINDbugs (#701, #702, #703), each with its measurements and the section of the spec.OPTIONAL MATCHpatterns that read the rows before them (#698),OPTIONAL CALLof a procedure (#699), stored procedure results that fit their columns (#700), index lists with the indexes made through the API (#704), decimal products and remainders that fit (#691), test fixtures that build with any feature set (#694), direct calls that leave nothing when they fail, with raw store writes that checkpoints keep (#696), SQL/PGQ path nodes and edges (#705), compound types in Cypher type DDL (#706), anddetachDeleteNodein WASM (#708).What's Changed
Full Changelog: v0.6.0...v0.6.1
This discussion was created from the release Release 0.6.1.
All reactions