Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-19857 FLIP-149: Introduce the upsert-kafka Connector
  3. FLINK-19694

Support [UPDATE_AFTER, DELETE] ChangelogMode for ScanTableSource

    XMLWordPrintableJSON

Details

    Description

      Currently, we only support insert-only or all-kinds (e.g. CDC format) ChangelogMode. In this issue, we want to support [UPDATE_AFTER, DELETE] ChangelogMode which indicates the source will emit only UPDATE_AFTER and DELETE messages during runtime (e.g. an upsert source). The planner will add the a materialization operator when the ChangelogMode of the source is [UPDATE_AFTER, DELETE].

      The materialization operator will materialize the upsert stream and generate changelog stream with full change messages. In the physical operator, we will use state to know whether the key is the first time to be seen. The operator will produce INSERT rows, or additionally generate UPDATE_BEFORE rows for the previous image, or produce DELETE rows with all columns filled with values.

      Attachments

        Issue Links

          Activity

            People

              jark Jark Wu
              jark Jark Wu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: