Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Nov 27, 2023
1 parent 1101b20 commit dcc6070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bulkerlib/implementations/sql/redshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (p *Redshift) CopyTables(ctx context.Context, targetTable *Table, sourceTab
quotedTargetTableName := p.quotedTableName(targetTable.Name)
quotedSourceTableName := p.quotedTableName(sourceTable.Name)

if mergeWindow <= 0 && len(targetTable.PKFields) > 0 {
if mergeWindow > 0 && len(targetTable.PKFields) > 0 {
//delete duplicates from table
var pkMatchConditions string
for i, pkColumn := range targetTable.GetPKFields() {
Expand Down

0 comments on commit dcc6070

Please sign in to comment.