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

Protobuf support #1029

Open
zZHorizonZz opened this issue Feb 18, 2025 · 1 comment
Open

Protobuf support #1029

zZHorizonZz opened this issue Feb 18, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@zZHorizonZz
Copy link

zZHorizonZz commented Feb 18, 2025

I think that since there is support for JSON, it might be worth offering support for Protocol Buffers (protobuf) as well. To my knowledge, Google Cloud Spanner is one of the few database services that currently supports protobuf natively (obviously as protobufs are made by google). In terms of implementation, this might be comparable to JSONB in SQL databases, as I imagine it would work in a similar way. The current approach requires manually deserializing protobuf messages and saving the values individually, or saving them as a bytestream, but neither option offers much flexibility.

References:
ZetaSQL Protocol Buffers
ZetaSQL Protocol Buffers Functions

@penberg
Copy link
Collaborator

penberg commented Feb 24, 2025

@zZHorizonZz I think extensions/protobuf is something we could definitely merge to the tree and if it becomes popular enough we can consider bundling it by default.

@penberg penberg added the enhancement New feature or request label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants