-
Notifications
You must be signed in to change notification settings - Fork 831
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
Feedback on AQL parser and WITH
clause usage
#19651
Comments
The
The problem with reporting the missing collections all at once is that the parser does not know which unspecified collections may be visited during the execution of a query.
it is not clear at query parse time which other (vertex) collections the edges will link to. It will only become clear when looking up the edges and then trying to look up documents in the unspecified collections. In theory we could make the query continue to collect further unspecified collections, and only make it fail at the very end. But that could also add considerable complexity, so I am not sure if that is a reasonable way forward. |
Hi there. Thanks for your answer :) On the other hand, I understand that returning all missing collections at once will add more complexity and may affect performance, but, from my perspective, it is more than reasonable if you consider how useful for debugging and troubleshooting it is (and it doesn't have to be enabled by default, it could be a flag that one can turn on as needed). In my particular case, I had to fix tons of complex queries that didn't have a |
you can choose your edges, and |
The |
That's a good idea, unfortunately I couldn't think of it when I was firefighting Prod but definitely will help in cases like the one I had.
That would be awesome, I find that useful for reducing the impedance across environments. Thanks a lot, guys! |
My Environment
Component, Query & Data
Affected feature:
Improvement request about AQL query error messages.
AQL query (if applicable):
N/A
AQL explain and/or profile (if applicable):
N/A
Dataset:
N/A
Size of your Dataset on disk:
N/A
Replication Factor & Number of Shards (Cluster only):
N/A
Steps to reproduce
N/A
Problem:
Hi, I have the following feedback that I wanted to share with the ArangoDB team:
WITH
clause at once instead of listing them one by one. I am currently fixing queries and what happens is that I fix one query by adding a collection and when I test again, I find out more collections are missing from the same query. The app complexity is huge, so I can't automate testing (at least not right now).Expected result:
I expect the AQL parser to return all missing collections from the
WITH
clause at once. For example, if the query at runtime requires 3 collections but the AQL query has only one collection explicitly defined, I expect the parser to return the 2 missing collections at once.And (optionally)
WITH
clause/operator usage should be mandatory following the opt-out model (even for non-cluster mode). This is to enforce that Local/Dev environments are as similar to Prod as possible.The text was updated successfully, but these errors were encountered: