Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6550

Calling ctx.collect with a null OutputTag should log a warning or throw an exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0
    • API / DataStream
    • None

    Description

      When using side outputs it is currently possible to call

      {Context#collect(OutputTag<X>, X record)}

      with null for the OutputTag. Effectively this causes the data to be swallowed. It is unlikely that a user actually intends this, so i propose to either log a warning or throw an exception.

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: