Skip to content

Conversation

@JPryce-Aklundh
Copy link
Collaborator

No description provided.

@JPryce-Aklundh JPryce-Aklundh added cherry-pick-this-to-4.4 Cherry pick this PR changes to the 4.4 branch cherry-pick-this-to-5.x Cherry pick this PR changes to the 5.x branch improvements Improved the text or examples labels Dec 6, 2022
* 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.`
Copy link
Contributor

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.
Copy link
Contributor

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.

Copy link
Contributor

@gem-neo4j gem-neo4j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great :)

@neo-technology-commit-status-publisher
Copy link
Collaborator

Looks like you've updated the documentation!

Check out your changes at https://neo4j-docs-cypher-245.surge.sh

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

Labels

cherry-pick-this-to-4.4 Cherry pick this PR changes to the 4.4 branch cherry-pick-this-to-5.x Cherry pick this PR changes to the 5.x branch improvements Improved the text or examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants