Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
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.