-
Notifications
You must be signed in to change notification settings - Fork 834
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
Different behaviour using prefix and suffix FILTER #9032
Comments
not sure if I understand your problem. AQL works much like a pipeline, if Should the below AQL query return any results ?
|
Yes, that is correct. In one case filter returns 100k documents, in other something more than 111k. But in one case it will follow with FOR and in other it will not. |
this does still happen if you remove the subquery? Can you send us some testdata to reproduce it? |
If we remove subquery it will return properly both prefix and suffix results. As keys are sequential numbers we have roughly 10% of all documents having prefix / suffix of digit '1'. However, as soon as we do subquery, prefix will not return any results and suffix will. Here are simplified queries. Prefix
Suffix
Dataset we have is pretty much 100k phone numbers randomly doing 20milion calls - vertex on the other side is person (vertex collection of 1milion records) |
I can't reproduce it unfortunately, could you send over some test data ? |
Hi @rackom, Since we were not able to reproduce this issue, could you please share a data set? You can send us a message to hackers@arangodb.com (this ML is not public) and attach the dump in that email. This way we can try to reproduce and find the root cause. Please reference the number of this issue in your email. |
I am closing this issue for now since we have not been able to reproduce it. |
My Environment
Component, Query & Data
Affected feature:
AQL
AQL query (if applicable):
RETURN z
AQL explain (prefix):
AQL explain (prefix):
Dataset:
Simple model 2 vertices, 1 edge collection. V(person) -> E(phone_call) -> V(phone_number)
Problem:
When doing first FILTER in FOR loop, doing both prefix and suffix behave differently. Prefix query will not reach traversal part, suffix one does.
Expected result:
FILTER should not influence behaviour of following blocks when both filters return some number of results.
The text was updated successfully, but these errors were encountered: