-
Notifications
You must be signed in to change notification settings - Fork 64
Update restrictions when using WITH clause in a CALL subquery #245
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
Conversation
| * It is not possible to follow an importing `WITH` clause with any of the following clauses: `DISTINCT`, `ORDER BY`, `WHERE`, `SKIP`, and `LIMIT`. | ||
|
|
||
| Attempting any of the above, will throw the following error: `Importing WITH should consist only of simple references to outside variables. | ||
| WHERE is not allowed.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error changes depending on what you tried to do, so here it says WHERE but if I tried it with SKIP it would say SKIP, maybe update thie line to say an error will be thrown, for example...
| .Error message: | ||
| [source, output, role="noheader", indent=0] | ||
| ---- | ||
| Importing WITH should consist only of simple references to outside variables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, so this error is actually:
Importing WITH should consist only of simple references to outside variables. Aliasing or expressions are not supported.
As that is the first issue it encounters.
The error case would be:
UNWIND [[1,2],[1,2,3,4],[1,2,3,4,5]] AS l
CALL {
WITH l
WHERE size(l) > 2
RETURN l AS largeLists
}
RETURN largeLists
throws: Importing WITH should consist only of simple references to outside variables. WHERE is not allowed.
gem-neo4j
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great :)
|
Looks like you've updated the documentation! Check out your changes at https://neo4j-docs-cypher-245.surge.sh |
No description provided.