Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-36200 Breaking changes for Flink 3.0
  3. FLINK-14658

Drop ".returns()" for TypeInformation in the DataStream API

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 3.0.0
    • API / DataStream
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sewen Stephan Ewen
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: