Skip to content

Commit

Permalink
commit the tx
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Nov 15, 2023
1 parent 755dacf commit 98bba14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flow/connectors/snowflake/snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,11 @@ func (c *SnowflakeConnector) generateAndExecuteMergeStatement(
destinationTableIdentifier, mergeStatement, err)
}

err = mergeTx.Commit()
if err != nil {
return 0, fmt.Errorf("unable to commit transaction for merge: %w", err)
}

endTime := time.Now()
log.Infof("[merge] merged records into %s, took: %d seconds",
destinationTableIdentifier, endTime.Sub(startTime)/time.Second)
Expand Down

0 comments on commit 98bba14

Please sign in to comment.