Fix bug of cstore table with unqiue index is updated.

This commit is contained in:
syj
2021-07-05 11:42:47 +08:00
parent 1ddd0c5115
commit 6078fdb4e1

View File

@ -312,8 +312,9 @@ void CStoreUpdate::BatchDeleteAndInsert(VectorBatch *batch, int oriBatchCols, in
if (needInsert) {
{
AutoContextSwitch updateContext(updateCnxt);
m_insert->BatchInsertCommon(bufferedBatchRows, options);
m_delete->PartialDelete();
}
m_insert->BatchInsertCommon(bufferedBatchRows, options);
bufferedBatchRows->reset(true);
lastStartIdx = startIdx;
} else {