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

DataStreamScanProvider's new method is not compatible

    XMLWordPrintableJSON

Details

    Description

      In FLINK-25990 ,
      Add a method "DataStream<RowData> produceDataStream(ProviderContext providerContext, StreamExecutionEnvironment execEnv)" in DataStreamScanProvider.
      But this method has no default implementation, this is not compatible when users upgrade their DataStreamScanProvider implementation from 1.14 to 1.15. (The old method will not be called)
      This method should be:

          default DataStream<RowData> produceDataStream(
                  ProviderContext providerContext, StreamExecutionEnvironment execEnv) {
              return produceDataStream(execEnv);
          }
      

      DataStreamSinkProvider is the same.

      Impact on DataStreamSinkProvider:
      DataStreamSinkProvider is no longer a functional interface and requires the use of an anonymous internal class.

      Attachments

        Issue Links

          Activity

            People

              lzljs3620320 Jingsong Lee
              lzljs3620320 Jingsong Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: