[ 
https://issues.apache.org/jira/browse/FLINK-17459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17096120#comment-17096120
 ] 

Jark Wu commented on FLINK-17459:
---------------------------------


{code:java}
sink.setIsAppendOnly(true);
sink.setKeyFields(new String[]{"id"});
{code}

They are invoked by framework, you don't need to call them. And you can use it 
in both append-only and updating queries. 

Yes. JDBCAppendTableSink will be removed in the future. 


> JDBCAppendTableSink not  support  flush  by flushIntervalMills
> --------------------------------------------------------------
>
>                 Key: FLINK-17459
>                 URL: https://issues.apache.org/jira/browse/FLINK-17459
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / JDBC
>    Affects Versions: 1.10.0
>            Reporter: ranqiqiang
>            Priority: Major
>
> {{JDBCAppendTableSink just support append by 
> "JDBCAppendTableSinkBuilder#batchSize",}}{{not support like 
> "JDBCUpsertTableSink#flushIntervalMills"}}
>  
> {{If batchSize=5000 ,  my data rows=5000*N+1 ,then last one record could not 
> be append !!}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to