Github user Renkai commented on the issue: https://github.com/apache/flink/pull/2729 Hi, @aljoscha I think the case make sense not only when parallelsim is 1,but also users knows the code would be execute in parallel and the code is thread safe and they may want to reduce some resource like memory or network connection.However, even we totaly forbidden a scala object to extend a UDF function, they can still refer to a scala object in UDF which may cause concurrent exceptions.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---