Alexander Trauzzi
12/16/2024, 6:27 PMEdgar RamĂrez (Arch.dev)
12/16/2024, 7:13 PMIs it possible to have meltano automatically update a destination postgres target schema if the inbound data includes new columns (no need to worry about removals)Depends on the target implementation, but for example MeltanoLabs/target-postgres does create the new columns when incoming SCHEMA message includes them.
Is there any way to configure the meltano backend to use postgres?Yes! See https://docs.meltano.com/concepts/project/#support-for-other-database-types. The URI should look like this
<postgresql+psycopg://user:password@host>:port/dbname
Alexander Trauzzi
12/16/2024, 7:14 PMtap-csv
and target-postgres
. It notices that there are new columns, but they ultimatley don't get created.Alexander Trauzzi
12/16/2024, 7:14 PMEdgar RamĂrez (Arch.dev)
12/16/2024, 7:16 PMIt notices that there are new columnsSo where do you get this info from? The logs?
Alexander Trauzzi
12/16/2024, 7:17 PMEdgar RamĂrez (Arch.dev)
12/16/2024, 7:17 PMAlexander Trauzzi
12/16/2024, 7:17 PM2024-12-16 19:17:27,339 | WARNING | target-postgres.test | No schema for record field 'school' cmd_type=elb consumer=True job_name=dev:tap-csv-to-target-postgres name=target-postgres producer=False run_id=c31951b7-8c8f-413f-bdfa-5cf6efdcc413 stdio=stderr string_id=target-postgres
Edgar RamĂrez (Arch.dev)
12/16/2024, 7:27 PM--refresh-catalog
flag?
meltano run --refresh-catalog ...
Alexander Trauzzi
12/16/2024, 7:30 PMAlexander Trauzzi
12/16/2024, 7:30 PMAlexander Trauzzi
12/16/2024, 7:31 PMEdgar RamĂrez (Arch.dev)
12/16/2024, 7:37 PMAlexander Trauzzi
12/16/2024, 7:37 PMAlexander Trauzzi
12/16/2024, 7:39 PMAlexander Trauzzi
12/16/2024, 7:39 PMAlexander Trauzzi
12/16/2024, 7:42 PMAlexander Trauzzi
12/16/2024, 7:43 PMAltering columns is not supported. Could not convert column 'tap_csv.test.id' from 'INTEGER' to 'TEXT'.
Edgar RamĂrez (Arch.dev)
12/16/2024, 7:47 PMextractors:
- name: tap-csv
schema:
test:
id:
type: "integer"
Edgar RamĂrez (Arch.dev)
12/16/2024, 7:48 PMAlexander Trauzzi
12/16/2024, 7:49 PMAlexander Trauzzi
12/16/2024, 7:53 PM