[
https://issues.apache.org/jira/browse/FLINK-27463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17530611#comment-17530611
]
Martijn Visser commented on FLINK-27463:
----------------------------------------
[~liam8] Thanks for opening this ticket. I don't think we should add this
option, we should solve the problem so that when a primary key is set, the
correct syntax is used for the specific JDBC dialect.
> The JDBC connector should support option for ‘upsert’ or ‘insert’
> -----------------------------------------------------------------
>
> Key: FLINK-27463
> URL: https://issues.apache.org/jira/browse/FLINK-27463
> Project: Flink
> Issue Type: Improvement
> Components: Connectors / JDBC
> Affects Versions: 1.14.4
> Reporter: Liam
> Priority: Minor
>
> If set a primary key to the table, then the connector will use the upsert
> query to sink data.
> However, the upsert query is not always expected. Because some of the
> databases don't support upsert well, like Click House. (even though some
> databases are not supporting officially, I believe many users are extending
> the dialect by themself)
> So I suggest adding an option like 'sink.append-only' to make the data
> populated by insert query.
>
> If we can reach a consensus, I can implement it.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)