Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyunyan committed Apr 1, 2024
1 parent db60e9e commit 20a1552
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cdc/model/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,10 @@ func (d *DDLEvent) FromJobWithArgs(
d.Query = fmt.Sprintf("ALTER TABLE `%s`.`%s` EXCHANGE PARTITION `%s` WITH TABLE `%s`.`%s`",
tableInfo.TableName.Schema, tableInfo.TableName.Table, partName,
preTableInfo.TableName.Schema, preTableInfo.TableName.Table)

if strings.HasSuffix(upperQuery, "WITHOUT VALIDATION") {
d.Query += " WITHOUT VALIDATION"
}

Check warning on line 1067 in cdc/model/sink.go

View check run for this annotation

Codecov / codecov/patch

cdc/model/sink.go#L1066-L1067

Added lines #L1066 - L1067 were not covered by tests
default:
d.Query = job.Query
}
Expand Down

0 comments on commit 20a1552

Please sign in to comment.