dawidwys commented on a change in pull request #7747: [FLINK-11653][DataStream]
Add configuration to enforce custom UID's o…
URL: https://github.com/apache/flink/pull/7747#discussion_r258970960
##########
File path:
flink-core/src/main/java/org/apache/flink/api/common/ExecutionConfig.java
##########
@@ -612,6 +614,41 @@ public boolean hasGenericTypesDisabled() {
return disableGenericTypes;
}
+ /**
+ * Enables the Flink runtime to auto-generated UID's for operators.
+ *
+ * @see #disableAutoGeneratedUIDs()
+ */
+ public void enableAutoGeneratedUIDs() {
+ disableAutoGeneratedUid = false;
+ }
+
+ /**
+ * Disable's auto-generated UID's forces users to manually specify UID's
+ * on their datastreams using {@code DataStream#uid} or {@code
DataStream#setUidHash}.
Review comment:
Maybe let's not link `DataStream#setUidHash`? As this is last resort, a
hackish approach. What do you think?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services