[
https://issues.apache.org/jira/browse/FLINK-14658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xintong Song updated FLINK-14658:
---------------------------------
Fix Version/s: 2.0-preview
(was: 2.0.0)
> 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-preview
>
>
> 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.20.10#820010)