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

Add database and table field in canal-json sink

    XMLWordPrintableJSON

Details

    Description

      When sink with canal-json format, only two fields in json root : data and type.

      for example :

      {"data":[{"order_status":"OK","order_amount":120,"dt":"2022-05-25"}],"type":"INSERT"}

      If we want to output the data of multiple tables to the same topic, this will become inconvenient.

      If the output contains database and table , we can continue to use the canal-json.database.include }}and {{canal-json.table.include to distinguish.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pensz Zhiwen Sun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: