Skip to content

Commit

Permalink
[FLINK-30613][serializer] Migrate PojoSerializer to implement new met…
Browse files Browse the repository at this point in the history
…hod of resolving schema compatibility
  • Loading branch information
masteryhx committed Jan 15, 2024
1 parent 75c62a0 commit 21b22c0
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 178 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,8 @@ public PojoSerializerSnapshot<T> snapshotConfiguration() {
registeredSerializers,
fields,
fieldSerializers,
subclassSerializerCache);
subclassSerializerCache,
executionConfig);
}

// --------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -863,7 +864,8 @@ private static <T> PojoSerializerSnapshot<T> buildSnapshot(
TypeSerializer<?>[] registeredSubclassSerializers,
Field[] fields,
TypeSerializer<?>[] fieldSerializers,
Map<Class<?>, TypeSerializer<?>> nonRegisteredSubclassSerializerCache) {
Map<Class<?>, TypeSerializer<?>> nonRegisteredSubclassSerializerCache,
ExecutionConfig executionConfig) {

final LinkedHashMap<Class<?>, TypeSerializer<?>> subclassRegistry =
CollectionUtil.newLinkedHashMapWithExpectedSize(registeredSubclassesToTags.size());
Expand All @@ -877,6 +879,7 @@ private static <T> PojoSerializerSnapshot<T> buildSnapshot(
fields,
fieldSerializers,
subclassRegistry,
nonRegisteredSubclassSerializerCache);
nonRegisteredSubclassSerializerCache,
executionConfig);
}
}
Loading

0 comments on commit 21b22c0

Please sign in to comment.