Is safe to rename a field in Thrift IDL?
问题 Is it safe to deprecate a field in Thrift by renaming if the field is no longer used by clients? My understanding is this should work as long as we don't change the type. For example From struct FooResponse { 1: optional i32 foo } To struct FooResponse { 1: optional i32 fooDeprecated } 回答1: Yes it is 100% safe. Thrift only deals with field IDs internally. The names of a struct as well as method argument names are used to generate field names in the generated code only. They do not even go