-
Notifications
You must be signed in to change notification settings - Fork 46
Spanner fixes #1642
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
Spanner fixes #1642
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,8 +49,6 @@ var statements = struct { | |
| returnChainedEdges string | ||
| // Subquery to return Edges with filters. | ||
| returnFilterEdges string | ||
| // Subquery to return Edges for arcs with chaining and filters. | ||
| returnFilterChainedEdges string | ||
| // Subquery to apply page offset. | ||
| applyOffset string | ||
| // Subquery to apply page limit. | ||
|
|
@@ -135,8 +133,14 @@ var statements = struct { | |
| value, | ||
| provenance`, | ||
| returnChainedEdges: ` | ||
| RETURN | ||
| RETURN DISTINCT | ||
| m.subject_id, | ||
| n.subject_id AS value | ||
| NEXT MATCH (n) | ||
| WHERE | ||
| n.subject_id = value | ||
| RETURN | ||
| subject_id, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. super nit: Consider making indentations of the returned fields consistent
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, thanks! (sorry I think it's showing up weird in github, but it should be consistent) |
||
| @result_predicate AS predicate, | ||
| '' AS provenance, | ||
| n.value, | ||
|
|
@@ -168,24 +172,6 @@ var statements = struct { | |
| predicate, | ||
| value, | ||
| provenance`, | ||
| returnFilterChainedEdges: ` | ||
| RETURN | ||
| m.subject_id, | ||
| n.subject_id AS value | ||
| NEXT MATCH (n) | ||
| WHERE | ||
| n.subject_id = value | ||
| RETURN | ||
| subject_id, | ||
| @result_predicate AS predicate, | ||
| '' AS provenance, | ||
| n.value, | ||
| n.bytes, | ||
| n.name, | ||
| n.types | ||
| ORDER BY | ||
| subject_id, | ||
| value`, | ||
| applyOffset: ` | ||
| OFFSET %d`, | ||
| applyLimit: fmt.Sprintf(` | ||
|
|
||
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 like how these sql goldens show the changes clearly.