This is a most obvious bug, but somehow I'm the first person to report this? https://github.com/transferwise/pipelinewise-target-postgres/blob/bef5a2786afab3c1600e62a77b6d121625e7bc8e/target_postgres/db_sync.py#L351 The Postgresql `COPY` command does NOT support reading JSON formatted files. It only supports CSV formatted files (and Binary and Text formats) https://www.postgresql.org/docs/current/sql-copy.html
This is a most obvious bug, but somehow I'm the first person to report this?
pipelinewise-target-postgres/target_postgres/db_sync.py
Line 351 in bef5a27
The Postgresql
COPYcommand does NOT support reading JSON formatted files. It only supports CSV formatted files (and Binary and Text formats)https://www.postgresql.org/docs/current/sql-copy.html