Skip to content

Commit

Permalink
Extra columns should come before
Browse files Browse the repository at this point in the history
This is backward incompatible for text_length feature in masking
  • Loading branch information
alok87 committed Jul 13, 2021
1 parent 90a8223 commit 43bab78
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/transformer/debezium/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,8 @@ func (c *schemaTransformer) transformSchemaValue(jobSchema string,
}
}

// add extra columns (length columns)
for _, extraColumn := range extraColumns {
redshiftColumns = append(redshiftColumns, extraColumn)
}
// keep extra columns as first column to fix #244
redshiftColumns = append(extraColumns, redshiftColumns...)

table := redshift.Table{
Name: d.tableName(),
Expand Down

0 comments on commit 43bab78

Please sign in to comment.