Skip to content

Commit 27b7923

Browse files
committed
upsert on the batched action
1 parent 4bf9049 commit 27b7923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extensions/AzureTableAPI/Cosmos.DataTransfer.AzureTableAPIExtension/AzureTableAPIDataSinkExtension.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static async IAsyncEnumerable<List<TableEntity>> GetBatches(IAsyncEnumer
6363

6464
private static async Task InnerWriteAsync(List<TableEntity> tableEntities, TableClient tableClient, ILogger logger, CancellationToken cancellationToken)
6565
{
66-
var transactionsActions = tableEntities.Select(e => new TableTransactionAction(TableTransactionActionType.Add, e));
66+
var transactionsActions = tableEntities.Select(e => new TableTransactionAction(TableTransactionActionType.UpsertReplace, e));
6767

6868
try
6969
{

0 commit comments

Comments
 (0)