Github user tillrohrmann commented on the pull request:

    https://github.com/apache/flink/pull/1704#issuecomment-188289230
  
    Thanks for your contribution @stefanobaghino. I really like this feature a 
lot :-)
    
    Currently, the implementation is not complete, because the supported set of 
API calls is not complete. 
    
    With the current packaging structure one would always have to import 
`org.apache.flink.api.scala.extensions.acceptPartialFunctions._`. I would 
rather like to import the following to get partial function support 
`org.apache.flink.api.scala.extensions.acceptPartialFunctions` or if I want to 
import all extensions: `org.apache.flink.api.scala.extensions._`. We could 
achieve this by introducing an `extensions` package object which does something 
like:
    
    ```
    package object extensions {
      implicit def acceptPartialFunctions[T: TypeInformation](ds: 
DataStream[T]):
        DataStreamWithPartialFunctionSupport[T] = {
        new DataStreamWithPartialFunctionSupport[T](ds)
      }
    ```
    
    What do you think?
    



---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to