davidradl commented on code in PR #26120:
URL: https://github.com/apache/flink/pull/26120#discussion_r1946817950
##########
flink-core/src/main/java/org/apache/flink/api/common/state/v2/ReducingStateDescriptor.java:
##########
@@ -67,6 +67,23 @@ public ReducingStateDescriptor(
this.reduceFunction = checkNotNull(reduceFunction);
}
+ /**
+ * Creates a new {@code ReducingStateDescriptor} with the given name,
type, and default value.
+ *
+ * <p>If this constructor fails (because it is not possible to describe
the type via a class),
+ * consider using the {@link #ReducingStateDescriptor(String,
ReduceFunction, TypeInformation)}
+ * constructor.
Review Comment:
it would be good to detail why this advice is being given.
--
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]