diff --git a/clients/shared/merge.go b/clients/shared/merge.go index 2f00a5837..24aeb19d6 100644 --- a/clients/shared/merge.go +++ b/clients/shared/merge.go @@ -38,7 +38,7 @@ func Merge(ctx context.Context, dwh destination.DataWarehouse, tableData *optimi tableID := dwh.IdentifierFor(tableData.TopicConfig(), tableData.Name()) if tableConfig.CreateTable() { - if err = CreateTable(ctx, dwh, tableData, tableConfig, opts.ColumnSettings, tableID, false, tableData.ReadOnlyInMemoryCols().GetColumns()); err != nil { + if err = CreateTable(ctx, dwh, tableData, tableConfig, opts.ColumnSettings, tableID, false, targetKeysMissing); err != nil { return fmt.Errorf("failed to create table: %w", err) } } else {