Github user fhueske commented on the issue:
https://github.com/apache/flink/pull/3712
Yes, I think that would work well. We could provide a builder for the table
source and forward calls to the `JDBCOutputFormatBuilder`.
Regarding the query template: we can also make it an optional parameter to
override the standard `INSERT INTO ... VALUES` template if set.
If you want the source to support upsert writes you might want to implement
the `UpsertStreamTableSink` rather than the `AppendStreamTableSink`. The
`UpsertStreamTableSink` supports append writes as well as updates and deletes
by exposing the unique key fields of a `Table`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---