[
https://issues.apache.org/jira/browse/FLINK-14658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konstantin Knauf updated FLINK-14658:
-------------------------------------
Labels: (was: stale-major)
Removed "stale-critical|major|minor" label in line with
https://issues.apache.org/jira/browse/FLINK-22429.
> Drop ".returns()" for TypeInformation in the DataStream API
> -----------------------------------------------------------
>
> Key: FLINK-14658
> URL: https://issues.apache.org/jira/browse/FLINK-14658
> Project: Flink
> Issue Type: Sub-task
> Components: API / DataStream
> Reporter: Stephan Ewen
> Priority: Major
> Fix For: 2.0.0
>
>
> The pattern to use {{.map(function).returns(type)}} to override the
> automatically extracted type is flawed and should not be used.
> Instead, each transformation method should be overloaded to have a variant
> that accepts the return type as the second argument, if in case we want to
> override the type extractor.
> See [FLINK-14380] for good example of why the {{.returns(type)}} pattern is
> broken.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)