-
Notifications
You must be signed in to change notification settings - Fork 151
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
Creating and managing graphs and views #314
base: master
Are you sure you want to change the base?
Creating and managing graphs and views #314
Conversation
|
||
=== Managing views in the catalog | ||
|
||
Views in the catalog can be managed with `COPY`, `RENAME`, `DELETE QUERY` in the same way as graphs. |
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.
Why the distinction that COPY
and RENAME
do not require the additional keyword of what is copied/renamed, but DELETE
needs that?
|
||
Semantics: | ||
|
||
1. `<composite statement>` must not be a correlated subqueries. |
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.
Typo: "a"
4. `RETURN GRAPH <view name>` | ||
|
||
|
||
== Local declarations |
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 whole section is not so clear to me.
|
||
1. `<composite statement>` must not be a correlated subqueries. | ||
|
||
2. An error is raised, if a local declaration would shadow an already exisint local declaration. |
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.
Typo: "exisint"
[source, cypher] | ||
---- | ||
QUERY _myView(args) { | ||
WITH a, b |
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.
What is the difference between binding expectations and parameters?
<composite statement> | ||
} | ||
MATCH (x)-[r:KNOWS]->(y) | ||
CALL PER since _myView(5 WITH x AS a, y AS b) YIELD ... |
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.
Very weird syntax IMHO.
This is a proposal for creating and managing graphs and views in the catalog and inside the query.
It also covers views and parameterized views.
It is part of the redesign of Cypher for adding support for working with multiple graphs that targets Cypher 10.
View latest version of CIP from associated branch