[FLINK-11334] Fix migration check in ScalaEnumSerializerSnapshot
First, this inverts the if statements to make the code more readable and maintainable. Then, this changes the check to report *incompatible* when the order of enums changes or when enums are removed because we currently don't maintain a map of enum ids to enum values ourselves and therefore cannot migrate or reconfigure the serializer to read data that was serialized with the old mapping.
Showing
想要评论请 注册 或 登录