mark_poole
03/05/2021, 12:58 AMdouwe_maan
03/05/2021, 1:01 AMmark_poole
03/05/2021, 1:03 AMmark_poole
03/05/2021, 1:03 AMras.py", line 143, in execute
target-postgres | return super(DictCursor, self).execute(query, vars)
target-postgres | psycopg2.errors.SyntaxError: syntax error at or near "-"
target-postgres | LINE 1: CREATE TABLE pep_intake.public-auth_group ("id" bigint, "nam...
target-postgres | ^
target-postgres |
douwe_maan
03/05/2021, 1:05 AMdouwe_maan
03/05/2021, 1:06 AMdouwe_maan
03/05/2021, 1:06 AMmark_poole
03/05/2021, 1:06 AMmark_poole
03/05/2021, 1:06 AMmark_poole
03/05/2021, 1:08 AM- name: tap-postgres
varient: transferwise
pip_url: pipelinewise-tap-postgres
config:
dbname: xx
host: xx
port: xx
ssl: true
user: xx
default_replication_method: FULL_TABLE
loaders:
- name: target-postgres
varient: transferwise
pip_url: pipelinewise-target-postgres
config:
logging_level: DEBUG
#persist_empty_tables: true
#invalid_records_threshold: 10
user: xx
host: xx
dbname: xxx
default_target_schema: xxx
add_metadata_columns: true
douwe_maan
03/05/2021, 1:09 AMdouwe_maan
03/05/2021, 1:09 AMmark_poole
03/05/2021, 1:09 AMmark_poole
03/05/2021, 1:10 AMmark_poole
03/05/2021, 1:10 AMmark_poole
03/05/2021, 1:14 AMmeltano elt tap-postgres target-postgres
mark_poole
03/05/2021, 1:14 AMmark_poole
03/05/2021, 1:15 AMmark_poole
03/05/2021, 1:15 AMmark_poole
03/05/2021, 1:16 AMmark_poole
03/05/2021, 1:16 AMmark_poole
03/05/2021, 1:17 AMdouwe_maan
03/05/2021, 1:17 AMmark_poole
03/05/2021, 1:18 AMmark_poole
03/05/2021, 1:18 AMdouwe_maan
03/05/2021, 1:19 AMdouwe_maan
03/05/2021, 1:20 AMmark_poole
03/05/2021, 1:21 AMdouwe_maan
03/05/2021, 1:23 AMmark_poole
03/05/2021, 1:32 AMmark_poole
03/05/2021, 1:32 AMmark_poole
03/05/2021, 1:33 AMdouwe_maan
03/05/2021, 1:35 AMmark_poole
03/05/2021, 1:35 AMmeltano | Incremental state has been updated at 2021-03-05 01:34:42.613960.
meltano | Extract & load complete!
meltano | Transformation skipped.
mark_poole
03/05/2021, 1:35 AMmark_poole
03/05/2021, 1:35 AMdouwe_maan
03/05/2021, 1:37 AMmark_poole
03/05/2021, 1:38 AMmark_poole
03/05/2021, 1:41 AMlars
05/10/2021, 6:46 PMpip_url: git+<https://github.com/transferwise/pipelinewise-target-postgres.git>
since that references the master branch on which it is fixed.
@douwe_maan A suggestion I would make is that on the docs for the tap mysql to include a specific note to use the TransferWise target.douwe_maan
05/10/2021, 8:52 PMNote that this extractor is incompatible with the defaultvariants ofdatamill-co
andtarget-postgres
, because they don't support stream names that include the source schema in addition to the table name:target-snowflake
, e.g.<schema>-<table>
.public-accounts
Instead, use thevariants that were made to be used with this extractor:transferwise
andtarget-postgres
.target-snowflake
lars
05/11/2021, 2:56 PMdatamill-co
variant with the tap-mysql
extractor in our testing environment and it was working fine. Maybe it's worth mentioning it on the target-postgres
and target-snowflake
docs as well, since the failure is coming from the postgres target.
FYI, TransferWise just released a new version of their postgres target that is compatible with Python 3.8. So that error should not be happening anymore.douwe_maan
05/11/2021, 3:12 PMthe failure is coming from the postgres target.@lars What exact error are you seeing? I agree we should mention it under https://meltano.com/plugins/loaders/postgres.html#troubleshooting and explain the possible workaround
lars
05/11/2021, 3:24 PMdouwe_maan
05/11/2021, 3:35 PMlars
05/11/2021, 4:22 PMtap-mysql
and and the datamill-co
variant of target-postgres
extractor, it didn't correctly update data when using LOG_BASED
replication method, a field that was updated multiple times between each run only used the first updated value. For example a field was updated from 1 -> 2 -> 3 -> 4, running the extractor and loader pipeline, the field would show up as 2 in our postgres database. That was the only thing I noticed. This isn't the case when running the transferwise
variant of target-postgres
.douwe_maan
05/11/2021, 4:24 PMRECORD
messages for the same underlying row correctly. I suggest filing an issue for that on https://github.com/datamill-co/target-postgres/issueslars
05/11/2021, 4:33 PM