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

Expose descriptor-based sink creation and introduce update mode

    XMLWordPrintableJSON

Details

    Description

      Currently, only a table source can be created using the unified table descriptors with tableEnv.from(...). A similar approach should be supported for defining sinks or even both types at the same time.

      I suggest the following syntax:

      tableEnv.connect(Kafka(...)).registerSource("name")
      tableEnv.connect(Kafka(...)).registerSink("name")
      tableEnv.connect(Kafka(...)).registerSourceAndSink("name")
      

      A table could then access the registered source/sink.

      We need to introduce a new update-mode property in order to distinguish between append, retract, and upsert table sources and sinks.

      Attachments

        Issue Links

          Activity

            People

              twalthr Timo Walther
              twalthr Timo Walther
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: