-
-
Notifications
You must be signed in to change notification settings - Fork 873
Description
OrientDB Version: 3.1.2
Java Version: 1.8.0_211
OS: Windows 10 Pro
Expected behavior
ShortestPath should support a list of edges like shows in the documentation: SELECT shortestPath(#8:32, #8:10, 'IN', ['Friend', 'Colleague'])
Actual behavior
Empty list is returned when array of edges is used, but works if only one edge without array is given.
Steps to reproduce
I added one class Person and edges Knows and Loves. A graph was created: P1(Id = #22:0) -Knows-> P2 (Id = #22:1) -Loves-> P3 (Id = #22:2)
This queries returns empty array
SELECT shortestPath(#22:0, #22:2, 'OUT', ['Knows', 'Loves'])
SELECT shortestPath(#22:0, #22:1, 'OUT', ['Knows'])
This query returns P1 and P2
SELECT shortestPath(#22:0, #22:1, 'OUT', 'Knows')
Whenever a list of edges is given, the result is empty. Am I doing something wrong? I searched through all of the examples and the documentation, and the query seems to be correct.
Thanks