Skip to content

Commit

Permalink
Add correct resutl
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Feb 23, 2024
1 parent a05525d commit d61e335
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions test/sql/path-finding/complex_matching.test
Original file line number Diff line number Diff line change
Expand Up @@ -479,35 +479,37 @@ statement error
----
Parser Error: syntax error at or near "{"

query III
query IIII
-FROM GRAPH_TABLE (snb
MATCH p = (a:Person where a.id = 16)-[k:knows]->{1,3}(b:Person)
COLUMNS (element_id(p), a.id, b.id)
MATCH p = (a:Person where a.id = 16)-[k:knows]->{1,3}(b:Person where b.id = 16)
COLUMNS (element_id(p), a.id, b.id, path_length(p))
) tmp;
----
[1, 3, 5] 16 2199023255594
[1, 3, 5, 16, 10] 16 8796093022244
[1, 3, 5, 17, 12] 16 10995116277761
[1, 3, 5, 18, 16] 16 13194139533342
[1, 3, 5, 19, 17] 16 13194139533352
[1, 3, 5, 16, 10, 32, 18] 16 13194139533355
[1, 3, 5, 20, 19] 16 15393162788877
[1, 3, 5, 17, 12, 39, 20] 16 17592186044443
[1, 3, 5, 21, 21] 16 17592186044461
[1, 3, 5, 19, 17, 48, 23] 16 19791209299987
[1, 3, 5, 22, 26] 16 24189255811081
[1, 3, 5, 22, 26, 61, 27] 16 24189255811109
[1, 3, 5, 19, 17, 49, 29] 16 26388279066641
[1, 4, 30] 16 26388279066655
[1, 3, 5, 23, 31] 16 26388279066658
[1, 3, 5, 24, 32] 16 26388279066668
[1, 5, 33] 16 28587302322180
[1, 3, 5, 26, 35] 16 28587302322196
[1, 6, 36] 16 28587302322204
[1, 5, 33, 78, 38] 16 28587302322223
[1, 5, 33, 79, 39] 16 30786325577731
[1, 3, 5, 27, 40] 16 30786325577740
[1, 5, 33, 80, 43] 16 32985348833329
[1, 3, 5, 22, 26, 66, 44] 16 35184372088834
[1, 3, 5, 28, 45] 16 35184372088850
[1, 3, 5, 23, 31, 74, 46] 16 35184372088856
NULL 16 16 NULL
[1, 3, 5] 16 2199023255594 1
[1, 3, 5, 16, 10] 16 8796093022244 2
[1, 3, 5, 17, 12] 16 10995116277761 2
[1, 3, 5, 18, 16] 16 13194139533342 2
[1, 3, 5, 19, 17] 16 13194139533352 2
[1, 3, 5, 16, 10, 32, 18] 16 13194139533355 3
[1, 3, 5, 20, 19] 16 15393162788877 2
[1, 3, 5, 17, 12, 39, 20] 16 17592186044443 3
[1, 3, 5, 21, 21] 16 17592186044461 2
[1, 3, 5, 19, 17, 48, 23] 16 19791209299987 3
[1, 3, 5, 22, 26] 16 24189255811081 2
[1, 3, 5, 22, 26, 61, 27] 16 24189255811109 3
[1, 3, 5, 19, 17, 49, 29] 16 26388279066641 3
[1, 4, 30] 16 26388279066655 1
[1, 3, 5, 23, 31] 16 26388279066658 2
[1, 3, 5, 24, 32] 16 26388279066668 2
[1, 5, 33] 16 28587302322180 1
[1, 3, 5, 26, 35] 16 28587302322196 2
[1, 6, 36] 16 28587302322204 1
[1, 5, 33, 78, 38] 16 28587302322223 2
[1, 5, 33, 79, 39] 16 30786325577731 2
[1, 3, 5, 27, 40] 16 30786325577740 2
[1, 5, 33, 80, 43] 16 32985348833329 2
[1, 3, 5, 22, 26, 66, 44] 16 35184372088834 3
[1, 6, 36, 82, 45] 16 35184372088850 2
[1, 3, 5, 23, 31, 74, 46] 16 35184372088856 3

0 comments on commit d61e335

Please sign in to comment.