[jira] [Created] (FLINK-11406) Return TypeSerializerSchemaCompatibility.incompatible() when arity of nested serializers don't match in CompositeTypeSerializerSnapshot's compatibility check

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-11406) Return TypeSerializerSchemaCompatibility.incompatible() when arity of nested serializers don't match in CompositeTypeSerializerSnapshot's compatibility check

Shang Yuanchun (Jira)
Tzu-Li (Gordon) Tai created FLINK-11406:
-------------------------------------------

             Summary: Return TypeSerializerSchemaCompatibility.incompatible() when arity of nested serializers don't match in CompositeTypeSerializerSnapshot's compatibility check
                 Key: FLINK-11406
                 URL: https://issues.apache.org/jira/browse/FLINK-11406
             Project: Flink
          Issue Type: Improvement
          Components: Type Serialization System
            Reporter: Tzu-Li (Gordon) Tai
            Assignee: Tzu-Li (Gordon) Tai
             Fix For: 1.8.0


Right now, in {{CompositeTypeSerializerSnapshot.resolveSchemaCompatibility(...)}}, if arity of nested serializers don't match between the snapshot and the provided new serializer, a runtime exception is thrown.

More ideally, this should return {{TypeSerializerSchemaCompatibility.incompatible()}}.
We should also make it more clearer in the Javadocs that the {{CompositeTypeSerializerSnapshot}} is intended for product serializers that have a fixed arity of nested serializers.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)