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

Deprecate RichFunction#open(Configuration parameters)

    XMLWordPrintableJSON

Details

    • Hide
      The RichFunction#open(Configuration parameters) method has been deprecated and will be removed in future versions. Users are encouraged to migrate to the new RichFunction#open(OpenContext openContext) method, which provides a more comprehensive context for initialization.

      Here are the key changes and recommendations for migration:

      The open(Configuration parameters) method is now marked as deprecated.
      A new method open(OpenContext openContext) has been added as a default method to the RichFunction interface.
      Users should implement the new open(OpenContext openContext) method for function initialization tasks. The new method will be called automatically before the execution of any processing methods (map, join, etc.).
      If the new open(OpenContext openContext) method is not implemented, Flink will fall back to invoking the deprecated open(Configuration parameters) method.
      Show
      The RichFunction#open(Configuration parameters) method has been deprecated and will be removed in future versions. Users are encouraged to migrate to the new RichFunction#open(OpenContext openContext) method, which provides a more comprehensive context for initialization. Here are the key changes and recommendations for migration: The open(Configuration parameters) method is now marked as deprecated. A new method open(OpenContext openContext) has been added as a default method to the RichFunction interface. Users should implement the new open(OpenContext openContext) method for function initialization tasks. The new method will be called automatically before the execution of any processing methods (map, join, etc.). If the new open(OpenContext openContext) method is not implemented, Flink will fall back to invoking the deprecated open(Configuration parameters) method.

    Description

      The FLIP-344 has decided that the parameter in RichFunction#open will be removed in the next major version. We should deprecate it now and remove it in Flink 2.0. The removal will be tracked in FLINK-6912.

      Attachments

        Issue Links

          Activity

            People

              Wencong Liu Wencong Liu
              Wencong Liu Wencong Liu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: