lianghongjia6 commented on code in PR #26473:
URL: https://github.com/apache/flink/pull/26473#discussion_r2053761408
##########
flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/AbstractJsonDeserializationSchema.java:
##########
@@ -89,6 +101,31 @@ public void open(InitializationContext context) throws
Exception {
if (hasDecimalType) {
objectMapper.enable(DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS);
}
+ reusableCollectList = new ArrayList<>();
+ collector = new ListCollector<>(reusableCollectList);
+ }
+
+ /**
+ * NOTICE: We prefer to keep only {@link
DeserializationSchema#deserialize(byte[], Collector)},
+ * however, {@link DeserializationSchema#deserialize(byte[])} has not been
deprecated now, hence
Review Comment:
> nit: has not been deprecated now -> is not deprecated.
updated
--
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]