-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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/spansql: support for Protobuf column-types #10944
Labels
Comments
I've filed #10945 to cover this. (As usual) I'm open to revisions/feedback. |
5 tasks
The review on #10945 seems to have gone silent after I fixed a bug from a bad rebase/merge conflict. |
gcf-merge-on-green bot
pushed a commit
that referenced
this issue
Nov 6, 2024
…bundles (#10945) ### feat(spansql): CREATE/ALTER/DROP PROTO BUNDLE Add support for parsing and serializing CREATE, ALTER and DROP PROTO BUNDLE DDL statements. ### feat(spanner/spansql): support for protobuf types Now that Spanner supports protobuf message and enum-typed columns and casts, add support for parsing those those types. Since protobuf columns aren't distinguished by a keyword, adjust the parser to see any unquoted identifier that's not a known type as a possible protobuf type and loop, consuming `.`s and identifiers until it hits a non-ident/`.` token. (to match the proto namespace components up through the message or enum names) To track the fully-qualified message/enum type-name add an additional field to the `Type` struct (tentatively) called `ProtoRef` so we can recover the message/enum name if canonicalizing everything. closes: #10944
gcf-merge-on-green bot
pushed a commit
that referenced
this issue
Nov 8, 2024
🤖 I have created a release *beep* *boop* --- ## [1.72.0](https://togithub.com/googleapis/google-cloud-go/compare/spanner/v1.71.0...spanner/v1.72.0) (2024-11-07) ### Features * **spanner/spansql:** Add support for protobuf column types & Proto bundles ([#10945](https://togithub.com/googleapis/google-cloud-go/issues/10945)) ([91c6f0f](https://togithub.com/googleapis/google-cloud-go/commit/91c6f0fcaadfb7bd983e070e6ceffc8aeba7d5a2)), refs [#10944](https://togithub.com/googleapis/google-cloud-go/issues/10944) ### Bug Fixes * **spanner:** Skip exporting metrics if attempt or operation is not captured. ([#11095](https://togithub.com/googleapis/google-cloud-go/issues/11095)) ([1d074b5](https://togithub.com/googleapis/google-cloud-go/commit/1d074b520c7a368fb8a7a27574ef56a120665c64)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Client
Spanner
Environment
any
Code
I'll open a PR shortly adding support to the spansql package for parsing/canonicalizing protobuf types, and adding support for
CREATE/ALTER/DROP PROTO BUNDLE
statements.The text was updated successfully, but these errors were encountered: