julian_knight
07/30/2020, 4:58 PMtap-postgres working in meltano? I've tried several variations of the select: configuration including leaving it out altogether but every time I get
Running extract & load...
No state was found, complete import.
INFO No properties were selected
Extract & load complete!
Transformation skipped.douwe_maan
07/30/2020, 5:08 PMtap-postgres are you using? https://pypi.org/project/tap-postgres/ or https://github.com/transferwise/pipelinewise-tap-postgres?douwe_maan
07/30/2020, 5:09 PMmeltano invoke tap-postgres --discover , and meltano select --list --all tap-postgresdouwe_maan
07/30/2020, 5:10 PMdiscover and catalog capabilities in your custom plugin definition?julian_knight
07/30/2020, 5:10 PMjulian_knight
07/30/2020, 5:11 PMmeltano select --list --all tap-postgres and I think my select format was wrongjulian_knight
07/30/2020, 5:12 PMdouwe_maan
07/30/2020, 5:12 PMselect at all should fall back on *.* and select everything, so it's odd you weren't seeing thatdouwe_maan
07/30/2020, 5:12 PMIt wasn't clear to me that select is at the property/column level, I assumed it was at the stream/table levelHow do you mean exactly? Selection requires both a stream/table/entity and property/column/attribute identifier, so it's at both levels 😛
julian_knight
07/30/2020, 5:15 PMselect works. I was trying
select:
- users
instead of
select:
- users.*
(although thanks to list I now know the db name and schema are in there too, like dbname-schemaname-tablename.columnnamejulian_knight
07/30/2020, 5:16 PM*.* is doing the same thingdouwe_maan
07/30/2020, 5:16 PMjulian_knight
07/30/2020, 5:16 PMjulian_knight
07/30/2020, 5:17 PM- name: tap-postgres
namespace: tap_postgres
pip_url: tap-postgres
executable: tap-postgres
capabilities:
- catalog
- discover
- state
settings:
- name: host
env: TAP_POSTGRES_HOST
- name: user
env: TAP_POSTGRES_USER
- name: password
env: TAP_POSTGRES_PASSWORD
- name: port
env: TAP_POSTGRES_PORT
- name: dbname
env: TAP_POSTGRES_DBNAME
- name: ssl
env: TAP_POSTGRES_SSL
config:
ssl: true
select:
- '*.*'douwe_maan
07/30/2020, 5:19 PMmeltano select --list tap-postgres (without --all) doesn't list any selected entities/attributes either, then?julian_knight
07/30/2020, 5:20 PMjulian_knight
07/30/2020, 5:20 PMdouwe_maan
07/30/2020, 5:21 PMselected: true where you'd expect it in .meltano/run/tap-postgres/tap.properties.json ?julian_knight
07/30/2020, 5:22 PMjulian_knight
07/30/2020, 5:23 PMdouwe_maan
07/30/2020, 5:23 PMmeltano --log-level=debug elt ... , the Invoke: command looks right?douwe_maan
07/30/2020, 5:23 PMdouwe_maan
07/30/2020, 5:23 PMjulian_knight
07/30/2020, 5:27 PMdouwe_maan
07/30/2020, 5:28 PMjulian_knight
07/30/2020, 5:29 PM* in select support partial matches, e.g. mydatabase-public-*.tableprefix_* ?douwe_maan
07/30/2020, 5:30 PMdouwe_maan
07/30/2020, 5:30 PMmeltano select docsal_whatmough
07/31/2020, 8:26 AMal_whatmough
07/31/2020, 8:51 AMmeltano invoke tap-postgres --discover it looks like Meltano is trying to connect to various different databases which aren't mine:
$ meltano invoke tap-postgres --discover
INFO Running DB discovery: SELECT datname
FROM pg_database
WHERE datistemplate = false
AND datname != 'rdsadmin' with itersize 20000
INFO (d6mtc0onm2a1qf) Testing connectivity...
WARNING Unable to connect to d6mtc0onm2a1qf. This maybe harmless if you have not desire to replicate from this database: "FATAL: permission denied for database "d6mtc0onm2a1qf"
DETAIL: User does not have CONNECT privilege.
"
INFO (d78t7injvja444) Testing connectivity...
WARNING Unable to connect to d78t7injvja444. This maybe harmless if you have not desire to replicate from this database: "FATAL: permission denied for database "d78t7injvja444"
DETAIL: User does not have CONNECT privilege.
"
INFO (db88dnpgtn22uc) Testing connectivity...
WARNING Unable to connect to db88dnpgtn22uc. This maybe harmless if you have not desire to replicate from this database: "FATAL: permission denied for database "db88dnpgtn22uc"
DETAIL: User does not have CONNECT privilege.
"
INFO (d8jhl1v17cdp2j) Testing connectivity...
WARNING Unable to connect to d8jhl1v17cdp2j. This maybe harmless if you have not desire to replicate from this database: "FATAL: permission denied for database "d8jhl1v17cdp2j"
DETAIL: User does not have CONNECT privilege.
"
INFO (dbn7lb7qvmt4t4) Testing connectivity...
WARNING Unable to connect to dbn7lb7qvmt4t4. This maybe harmless if you have not desire to replicate from this database: "FATAL: permission denied for database "dbn7lb7qvmt4t4"
DETAIL: User does not have CONNECT privilege.al_whatmough
07/31/2020, 8:51 AMal_whatmough
07/31/2020, 9:22 AMfilter_dbs which I had to set - I didn't know about it but read through the source for tap_postgres and found it theredouwe_maan
07/31/2020, 2:06 PMas mentioned in those docs, pinned the tap-postgres version to 0.0.61. Is that still necessary?No, there's no need to use that specific version, although pinning versions in
meltano.yml has some advantages, just like pinning dependencies does in general