Stephan Ewen created FLINK-14658: ------------------------------------ Summary: 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 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)