Kenneth Maina Kibui
05/28/2024, 7:50 AMversion: 1
send_anonymous_usage_stats: false
project_id: xxx-xxx
plugins:
extractors:
- name: tap-csv
variant: meltano
pip_url: git+<https://gitlab.com/meltano/tap-csv.git>
config:
files:
- entity: tmp_voucher_seeder_meltano_may8
file: ../update/payments_C.csv
keys:
- Id
- entity: tmp_voucher_seeder_meltano_may8
file: ../update/payments_Y.csv
keys:
- Id
- name: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
loaders:
- name: target-postgres
variant: transferwise
pip_url: pipelinewise-target-postgres
config:
add_record_metadata: false
batch_size_rows: 10000
default_target_schema: raw_data
flush_all_streams: true
parallelism: 1
primary_key_required: false
dbname: postgres
user: user_name
host: <http://myhost.com|myhost.com>
Andy Carter
05/28/2024, 9:35 AMKenneth Maina Kibui
05/29/2024, 2:30 AMtime=2024-05-29 01:27:19 name=target_postgres level=INFO message=Table '"tmp_voucher_seeder_meltano_may8"' exists
time=2024-05-29 01:27:19 name=target_postgres level=INFO message=Versioning column: ALTER TABLE raw_data."tmp_voucher_seeder_meltano_may8" RENAME COLUMN "amount" TO "amount_20240529_0127"
Andy Carter
05/29/2024, 7:59 AMvarchar
) then the target will 'version' the column to avoid overwriting:
https://transferwise.github.io/pipelinewise/user_guide/schema_changes.html#versioning-columns
To avoid the issue, you could drop your original target table tmp_voucher_seeder_meltano_may8
and let meltano create it and manage the table schema. I prefer that method.