metastore icon indicating copy to clipboard operation
metastore copied to clipboard

Compat: Enum <> Numeric schema evolution

Open alexvanboxel opened this issue 6 years ago • 0 comments

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 avatar Feb 15 '19 13:02 alexvanboxel