Skip to content

v0.9.3

Choose a tag to compare

@github-actions github-actions released this 12 Oct 02:04
· 103 commits to main since this release

A correctness release: GitHub issues #122–#125, a heap overflow in DFS,
four graph algorithms that gave wrong results, and lost or mistyped
property values. A new test suite checks every graph algorithm against
NetworkX. The openCypher TCK pass count moves from 3822 to 3823 of
3880 (98.5%, zero regressions).

Fixed

  • Dijkstra and A* weights (#122, GQLITE-T-0377): integer weights were
    read as 1, and parallel edges shared one weight. Weights now come from
    integer and float properties, matched to each edge by its id. A* loaded
    weights but did not use them.
  • Bare boolean conditions (#123, GQLITE-T-0378): CASE WHEN p.active,
    WHERE p.active, and any(x IN list WHERE x) read a true boolean
    property as false.
  • UNWIND values in CREATE and MERGE (#124, GQLITE-T-0379):
    UNWIND $rows AS row CREATE (:Item {id: row.id}) stored no properties.
    Literal lists of maps created no nodes, floats were cut to integers,
    booleans and nulls were skipped, and expressions such as toString(i) or
    row.a * 2 were dropped. MERGE stored UNWIND values as text.
    Upgrade note: data written before by UNWIND … MERGE with numbers or
    booleans is stored as text; a MERGE after the upgrade matches typed
    values, so it does not match those old rows.
  • PageRank (#125, GQLITE-T-0380): the rank of nodes without out-edges
    was lost, so scores summed to less than 1. pageRank, topPageRank and
    personalizedPageRank now give standard PageRank scores.
  • DFS heap overflow (GQLITE-T-0381): DFS wrote past its stack buffer on
    graphs with more than two edges per node, which could crash the process.
  • Louvain (GQLITE-T-0382): results could be worse than every node alone,
    and cliques were split. It is now multi-level Louvain with the standard
    modularity gain.
  • Label propagation (GQLITE-T-0383): labels oscillated on stars and
    paths, which gave disconnected communities. Updates are asynchronous and
    every community is connected. communityOf, communityMembers,
    communityCount and labelPropagation outside a plain RETURN give the
    same communities.
  • Eigenvector centrality (GQLITE-T-0384): the result depended on whether
    iterations was odd or even on periodic graphs.
  • Triangle count (GQLITE-T-0385): a self-loop counted as a triangle.
  • Edge properties in expressions (GQLITE-T-0386): r.w + 1 gave 11
    and [r.w] gave ["1"].
  • Booleans (GQLITE-T-0387): [x IN list], slices and list[0] gave
    1/0 for true/false; CREATE (:X {t: NOT false}) stored 1.
  • UNWIND + MATCH + CREATE (GQLITE-T-0388): properties that read the
    UNWIND variable were not stored.

Documentation

  • The algorithm reference showed CALL algo() YIELD …, which is not
    supported; it now shows RETURN algo(…) and the result keys (#125).
  • SQL examples that read algorithm results with json_each(cypher(…))
    returned no rows; they now read $[0].column_0.

Tests

  • bindings/python/tests/test_algorithms_oracle.py checks every algorithm
    against NetworkX on special and seeded random graphs.
    networkx is added to the dev extra.
  • tests/tck/baseline.json regenerated (3823 / 3880).

Known issue

On Linux, some queries through the row-wise write pipeline can abort with free(): invalid pointer, for example UNWIND [1, 2] AS i MATCH (n) CREATE (n)-[:S {i: i}]->(:M). Fixed in v0.9.4; upgrade if you run on Linux.

Full changelog: v0.9.2...v0.9.3