X-czh commented on code in PR #25797:
URL: https://github.com/apache/flink/pull/25797#discussion_r1903926856
##########
flink-core/src/main/java/org/apache/flink/api/common/serialization/SerializerConfigImpl.java:
##########
@@ -356,6 +356,9 @@ public void configure(ReadableConfig configuration,
ClassLoader classLoader) {
configuration
.getOptional(PipelineOptions.FORCE_KRYO_AVRO)
.ifPresent(this::setForceKryoAvro);
+ configuration
+ .getOptional(PipelineOptions.BUILT_IN_COLLECTION_TYPES)
+ .ifPresent(TypeExtractor::setBuiltInCollectionTypesEnabled);
Review Comment:
Adding a switch turned out to be difficult: the type extractor class is a
static utils class, which means we can only set a static vaiable to
parameterize its behavior, but this may also break when the same JVM is reused
to submit multiple jobs. Therefore, it's better to just break
state-comaptiblity as it is, and rely on the state migration tool to do the
work. Will drop the switch commit
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]