Skip to content
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

feat(spanner/spansql): parse joins #2896

Merged
merged 1 commit into from Sep 23, 2020
Merged

feat(spanner/spansql): parse joins #2896

merged 1 commit into from Sep 23, 2020

Conversation

dsymonds
Copy link
Contributor

This parses almost all of the JOIN clause syntax, with the exception of
HASH and hints.

It doesn't support the full range of common joins due to a lack of
support for path expressions, but that will be addressed separately.

Updates #2850.

@dsymonds dsymonds added the api: spanner Issues related to the Spanner API. label Sep 19, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 19, 2020
@dsymonds
Copy link
Contributor Author

/cc @adg

Copy link
Contributor

@olavloite olavloite left a comment

Choose a reason for hiding this comment

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

LGTM.

As far as I can see, this currently only supports one JOIN per query. If so, it might be good to add a small TODO for that as well so that anyone looking into the code knows it's a known limitation.

spanner/spansql/parser.go Show resolved Hide resolved
This parses almost all of the JOIN clause syntax, with the exception of
HASH and hints.

It doesn't support the full range of common joins due to a lack of
support for path expressions, but that will be addressed separately.

Updates #2850.
@dsymonds dsymonds added the automerge Merge the pull request once unit tests and other checks pass. label Sep 23, 2020
@gcf-merge-on-green gcf-merge-on-green bot merged commit d5fb7cb into googleapis:master Sep 23, 2020
@dsymonds dsymonds deleted the spansql-join branch September 26, 2020 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API. automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants