-
Notifications
You must be signed in to change notification settings - Fork 872
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
Traverse strategy breadth_first won't work with LIMIT keyword #5330
Comments
you should apply the LIMIT clause to the outer query, otherwise Studio will apply a 20 by default, select $current.traversedVertex(-1), $path from
(
traverse * from #9:24
while $depth < 4
strategy breadth_first
)
limit -1 |
I'm closing this, please reopen in case I missed something Thanks Luigi |
The problem is not on the number of results (in that case you would be right pointing at the position of the |
To replicate it should be enough to copy and paste the queries - the results are from the public GratefulDeadConcerts database - but if it is useful I can add a scripted toy example. |
ouch... ok, reopening |
Ciao @giacomoParigi I just pushed a fix on 2.1.x branch, it was a trivial parsing problem. Thanks Luigi |
Ok, it's also fixed in develop branch. Thanks Luigi |
I already posted a question in the issue tracker here : #5314 , but I realized that the question is too wide and decided to try and break it into smaller issues.
The first issue is a bug on the parsing of the Traverse operator. If the keyword
<limit>
is added, both with -1 or with an actual positive limit, the statement<strategy breadh_first>
is ignored in turn, as shown by the results of these two simple queries on the GratefulDeadConcerts default database (start node is chosen randomly):First query (without
<limit>
):Results (only first 20):
Second query (with
<limit>
):Results (only first 20):
The text was updated successfully, but these errors were encountered: