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

Do not expose keyed operations on ProcessFunction.Context

    XMLWordPrintableJSON

Details

    Description

      Currently, the ProcessFunction provides a Context object from which on can access the TimerService. The TimerService allows to register timers if one operates on a keyed stream. If it is not a keyed stream, then this operation fails. Recently, we added a KeyedProcessFunction which captures this semantic difference. I would propose to clean up the Context interface to give only access to supported operations when operating on a non-keyed and keyed state respectively.

      Attachments

        Activity

          People

            Unassigned Unassigned
            trohrmann Till Rohrmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: