[ 
https://issues.apache.org/jira/browse/FLINK-4883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15619663#comment-15619663
 ] 

Renkai Ge commented on FLINK-4883:
----------------------------------

I tried to implement it in module flink-scala and flink-streaming-scala, but it 
seems that these two modules assumes flink-java and flink-streaming-java do a 
lot of work and flink-scala and flink-stream-scala is just a wrap. I think I 
have to change the code in flink-java and flink-stream-java, and write tests in 
 flink-scala and flink-stream-scala or too much code would be changed.

> Prevent UDFs implementations through Scala singleton objects
> ------------------------------------------------------------
>
>                 Key: FLINK-4883
>                 URL: https://issues.apache.org/jira/browse/FLINK-4883
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Stefan Richter
>            Assignee: Renkai Ge
>
> Currently, user can create and use UDFs in Scala like this:
> {code}
> object FlatMapper extends RichCoFlatMapFunction[Long, String, (Long, String)] 
> {
> ...
> }
> {code}
> However, this leads to problems as the UDF is now a singleton that Flink 
> could use across several operator instances, which leads to job failures. We 
> should detect and prevent the usage of singleton UDFs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to