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

Compat: Enum <> Numeric schema evolution #25

Open
alexvanboxel opened this issue Feb 15, 2019 · 0 comments
Open

Compat: Enum <> Numeric schema evolution #25

alexvanboxel opened this issue Feb 15, 2019 · 0 comments
Labels
compatibility enhancement New feature or request

Comments

@alexvanboxel
Copy link
Member

Field type change enum with int32, uint32, int64, and uint64
enum is compatible with int32, uint32, int64, and uint64 in terms of wire format (note that values will be truncated if they don't fit). However be aware that client code may treat them differently when the message is deserialized: for example, unrecognized proto3 enum types will be preserved in the message, but how this is represented when the message is deserialized is language-dependent. Int fields always just preserve their value.

@alexvanboxel alexvanboxel added enhancement New feature or request compatibility labels Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant