You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prune named paths by any per-relationship condition in all() and none() #207
#205 makes WHERE all(r IN relationships(p) WHERE ...) on a named variable-length path drop a failing relationship during the walk, but only for equalities on r (r.day = 5, r.kind = $kind). Any other condition on a single relationship is still checked once each path is complete, so its cost follows the unfiltered fan-out, as in #179:
ranges and other comparisons: r.weight > 0.5, r.day <> 3;
IN lists: r.kind IN ['login', 'ticket'];
OR inside the predicate: r.day = 5 OR r.day = 6;
none(r IN relationships(p) WHERE x), which means the same as all(r IN relationships(p) WHERE NOT x).
Each of these is a check on one relationship, so a failing edge could end its branch just as an equality does.
Proposed improvement
Let the named-path operator take any per-relationship condition, not only key/value equalities. For each step it would hold one DataFusion expression over the relationship columns, built from the all()/none() predicate with r.key rewritten to the column key. That expression then builds the per-edge mask the walk already checks.
Which predicates qualify: those that refer only to r's properties, parameters and literals.
Activity
perf(cypher): prune named paths by any all() or none() condition (hyp…