Commit 6b11d89
Add SHORTEST_PATH graph query pattern support
- Add GraphMatchRecursivePredicate, GraphRecursiveMatchQuantifier,
and GraphMatchLastNodePredicate AST types for SHORTEST_PATH patterns
- Implement parseGraphMatchShortestPath for parsing SHORTEST_PATH(pattern+)
and SHORTEST_PATH(pattern{min,max}) with both anchor-on-left and
anchor-on-right syntax variants
- Add support for LAST_NODE() function in graph patterns
- Add FOR PATH table reference modifier for graph path queries
- Add GRAPH PATH option support for WITHIN GROUP clause
- Add JSON marshaling for all new graph match types
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0d5a7ea commit 6b11d89
4 files changed
Lines changed: 400 additions & 24 deletions
File tree
- ast
- parser
- testdata/GraphDbShortestPathSyntaxTests150
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
0 commit comments