Skip to content

Commit 6cb63ec

Browse files
Add another criteria for when SHORTEST queries are rewritten with to use legacy operator (#1371)
1 parent 31b61fa commit 6cb63ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/ROOT/pages/patterns/shortest-paths.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,8 @@ Or, when the estimated cardinality of the source and target nodes in a shortest
846846
* Selector is one of: `SHORTEST 1`, `ANY`, `ANY SHORTEST`, `ALL SHORTEST`, `SHORTEST GROUP`, or `SHORTEST 1 GROUP`.
847847
* There is only one relationship pattern.
848848
* If the pattern is a xref:patterns/variable-length-patterns.adoc#quantified-path-patterns[quantified path pattern] in the form of `\(()-[]-())`, or is a xref:patterns/variable-length-patterns.adoc#quantified-relationships[quantified-relationship], and it uses a filter that can be applied directly to the relationship.
849+
* If the pattern is a quantified path pattern or a quantified relationship and the relationship pattern is directed, the lower bound of the xref:patterns/reference.adoc#quantifiers[quantifier] is 0 or 1.
850+
If the relationship pattern is directed, the lower bound is 0.
849851
* In the case of a quantified path pattern, there are no node variables declared inside the quantified path pattern that are referenced elsewhere.
850852

851853
| `StatefulShortestPath(Into)`

0 commit comments

Comments
 (0)