GitHub user ggevay opened a pull request:

    [FLINK-8649] [scala api] Pass on TypeInfo in 

    ## What is the purpose of the change
    In the Scala API, modify `StreamExecutionEnvironment.createInput` to pass 
through the implicitly got TypeInfo to the java `createInput` call. With the 
old code, the Java API tries to figure out the TypeInfo on its own, which 
doesn't always work as well as the TypeInfo creation of the Scala API.
    Note that if the input format implements `ResultTypeQueryable`, then we 
would like to retain the old behaviour, so we just do the call into the Java 
API in the old way in this case. (`ResultTypeQueryable` can sometimes give a 
better type than the Scala TypeInfo creation, e.g. when the result type depends 
on parametrization of the input format.)
    ## Verifying this change
    This change is a trivial rework / code cleanup without any test coverage.
    ## Does this pull request potentially affect one of the following parts:
      - Dependencies (does it add or upgrade a dependency): no
      - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
      - The serializers: no
      - The runtime per-record code paths (performance sensitive): no
      - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: no
      - The S3 file system connector: no
    ## Documentation
      - Does this pull request introduce a new feature? no

You can merge this pull request into a Git repository by running:

    $ git pull createInput-typeInfo

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5479
commit d03b67feed45c07f8b886eca1042781d658b1af0
Author: Gabor Gevay <ggab90@...>
Date:   2018-02-13T17:09:05Z

    [FLINK-8649] [scala api] Pass on TypeInfo in 



Reply via email to