Skip to content

Commit e48f260

Browse files
Add another criteria for when SHORTEST queries are rewritten with to use legacy operator (#1371)
1 parent 1c61fcb commit e48f260

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
@@ -845,6 +845,8 @@ Or, when the estimated cardinality of the source and target nodes in a shortest
845845
* Selector is one of: `SHORTEST 1`, `ANY`, `ANY SHORTEST`, `ALL SHORTEST`, `SHORTEST GROUP`, or `SHORTEST 1 GROUP`.
846846
* There is only one relationship pattern.
847847
* 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.
848+
* 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.
849+
If the relationship pattern is directed, the lower bound is 0.
848850
* In the case of a quantified path pattern, there are no node variables declared inside the quantified path pattern that are referenced elsewhere.
849851

850852
| `StatefulShortestPath(Into)`

0 commit comments

Comments
 (0)