Skip to content

Commit

Permalink
Merge pull request #245 from practo/fix-244
Browse files Browse the repository at this point in the history
Extra columns should come before
  • Loading branch information
alok87 authored Jul 14, 2021
2 parents 90a8223 + 379aeda commit c1947e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion controllers/redshiftsink_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type RedshiftSinkReconciler struct {
}

const (
MaxTopicRelease = 50
MaxTopicRelease = 5
)

// +kubebuilder:rbac:groups=tipoca.k8s.practo.dev,resources=redshiftsinks,verbs=get;list;watch;create;update;patch;delete
Expand Down
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 c1947e4

Please sign in to comment.