-
Notifications
You must be signed in to change notification settings - Fork 156
Added the nested, updating, and chained subqueries CIP #100
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
Open
petraselmer
wants to merge
27
commits into
opencypher:master
Choose a base branch
from
petraselmer:CIP-nested-subqueries
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5c6f9d7
Added the nested subqueries CIP
d7d0a83
Sundry content edits to the subquery CIP
bf71712
Clarified the syntax wrt `OPTIONAL`
f6245fd
Added the notion of write subqueries, with `UNWIND` + `DO {...}` repl…
ede1334
Clarified the way in which variable bindings work (based on comments …
a1c6442
Addressed some feedback
boggle 4caeb54
Addressing comments; making clarifications
5b5b9cc
Sketched out additional forms of nested subqueries.
boggle fe21475
Homogeneous syntax for OPTIONAL, MANDATORY, MATCH, DO WHEN
boggle 80a1ce4
Address feedback and introduce new syntactic short forms
boggle b8f49d6
Add chained subqueries with `THEN` and overhaul document
boggle bf53252
Reflect discussion; add new conditional form of DO and WHERE shorthand
boggle 70a91cd
Textual improvements
1f02e2b
Refer to Query Combinator CIP
cc176e8
Wording
boggle 2921112
Rework CIP
boggle 3ed1ca9
Clarify precedence rules
boggle 2d2435f
Add ammending nested subqueries and fix query combinator precedence
boggle 0156bc3
Fix definition of chained queries and move to right directory
boggle acfac59
Textual edits
7554cc9
Clarified query combinator semantics
boggle 10fa182
Fixed erroneous queries
1ca70bf
Reformatted title
cfc2a43
Reworking/incorporating alternative CIP
boggle 6199430
Fused with nested subqueries CIP from multigraph work
boggle 5b6a333
Added stand-alone nested calls and some clarifications/fix-ups
boggle 077fb18
Grammar fix
boggle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Homogeneous syntax for OPTIONAL, MANDATORY, MATCH, DO WHEN
- Loading branch information
commit fe214758fa27958144112bef41eeb995c43332a1
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think this needs examples to demonstrate the use of these. As well as the difference between having a
RETURNclause and leaving it out.In my understanding
MANDATORYwithoutRETURNwould be likeEXISTS, but as a clause with the capability of failing the query rather than a boolean expression. Interestingly that use ofMANDATORYwould not affect the cardinality of the query, whereasMANDATORYwithRETURNcould potentially increase the cardinality of the query (although never decrease it, since that would mean that no matches were found).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.
We're actually thinking about making
RETURNmandatory onMANDATORYmatch based on the reason that this will be the 95% use case and having to name in the remaining 5% isn't a big deal.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.
The benefit would be less special casing. Then again, maybe someone might find it very natural to leave off
RETURN.