Github user ch33hau commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4178#discussion_r123912353
  
    --- Diff: 
flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/StreamExecutionEnvironment.scala
 ---
    @@ -768,6 +768,18 @@ object StreamExecutionEnvironment {
       }
     
       /**
    +   * Creates a local execution environment. The local execution 
environment will run the
    +   * program in a multi-threaded fashion in the same JVM as the 
environment was created in.
    +   *
    +   * @param parallelism   The parallelism for the local environment.
    +   * @param configuration Pass a custom configuration into the cluster.
    +   */
    +  def createLocalEnvironment(parallelism: Int, configuration: 
Configuration):
    --- End diff --
    
    No it can't. I have think about it before, again compiler complains.
    
    It could be related to this [scala 
issue](https://stackoverflow.com/questions/4652095/why-does-the-scala-compiler-disallow-overloaded-methods-with-default-arguments)
    
        If you have two overloads with defaults on the same parameter position, 
        we would need a different naming scheme. 
        But we want to keep the generated byte-code stable over multiple 
compiler runs.


---
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.
---

Reply via email to