pingcap/tispark

support upsert write

melin opened this issue · 1 comments

melin commented

通过tispark 写入,如果主键相同,是否根据主键更新写入,避免出现:Caused by: org.tikv.common.exception.TiBatchWriteException: data to be inserted has conflicts with TiKV data。
可以添加一个参数控制是否upsert 写入