Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShortestPath with multiple edges is returning empty list #9388

Closed
tomazk8 opened this issue Sep 7, 2020 · 1 comment
Closed

ShortestPath with multiple edges is returning empty list #9388

tomazk8 opened this issue Sep 7, 2020 · 1 comment
Assignees
Labels

Comments

@tomazk8
Copy link

tomazk8 commented Sep 7, 2020

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

luigidellaquila added a commit that referenced this issue Sep 28, 2020
@luigidellaquila
Copy link
Member

Hi @tomazk8

I just pushed a fix for this problem. The fix will be released with v 3.1.3

Thanks

Luigi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants