Lucas Bunzel
07/19/2024, 3:00 PMdatabase=config["database"], KeyError: 'database'
.
meltanolabs variant requires the database
setting, but these extractors are based on transferwise, which accepts dbname
setting. Do you have any thoughts? Thanks!Edgar Ramírez (Arch.dev)
07/19/2024, 4:38 PMmeltano.yml
look like?Lucas Bunzel
07/19/2024, 5:04 PMmeltano.yml
looks like this:
...
include_paths:
- ./environments/*.meltano.yml
- ./extract/*.meltano.yml
- ./load/*.meltano.yml
log-based-extractor.meltano.yml
(still working)
plugins:
extractors:
- name: log-based-extractor
inherit_from: tap-postgres
variant: transferwise
pip_url: git+<https://github.com/josescuderoh/pipelinewise-tap-postgres.git>
load_schema: my_log_based_schema
metadata:
'*':
replication-method: LOG_BASED
incremental-extractor.meltano.yml
(failed after I added the meltanolabs extractor)
plugins:
extractors:
- name: incremental-extractor
inherit_from: tap-postgres
variant: transferwise
pip_url: pipelinewise-tap-postgres
load_schema: my_incremental_schema
metadata:
'*':
replication-method: INCREMENTAL
replication-key: id
public-alerts:
replication-method: INCREMENTAL
replication-key: updated_at
public-api_keys:
replication-method: INCREMENTAL
replication-key: updated_at
...
log-based-extractor-meltanolabs.meltano.yml
(I didn't even test it because I had to rollback the changes)
plugins:
extractors:
- name: log-based-extractor-meltanolabs
inherit_from: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
load_schema: my_log_based_schema_meltanolabs
metadata:
'*':
replication-method: LOG_BASED
Lucas Bunzel
07/22/2024, 3:17 PMmeltano add extractor tap-postgres --variant meltanolabs --as postgres-labs
meltano add extractor tap-postgres --variant transferwise --as postgres-transfer
After I added the postgres-transfer
tap, the postgres-labs
started behaving just like the transferwise
variant. Do you know if there is a way to change this?
I'm using meltano 3.4.2 and tested with:
meltano elt postgres-transfer jsonl
meltano elt postgres-labs jsonl
meltano.yml
file:
...
plugins:
extractors:
- name: postgres-labs
inherit_from: tap-postgres
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-postgres.git>
- name: postgres-transfer
inherit_from: tap-postgres
variant: transferwise
pip_url: pipelinewise-tap-postgres
loaders:
- name: jsonl
inherit_from: target-jsonl
variant: andyh1203
pip_url: target-jsonl
Thank you!Edgar Ramírez (Arch.dev)
07/22/2024, 5:59 PMinherit_from
entry and reinstalling?Lucas Bunzel
07/22/2024, 8:25 PMmeltano install
I receive Extractor 'postgres-labs' is not known to Meltano
.
It just works without inherit_from
if I use tap-postgres
as the name, but this way I can't define more than one tap with different variants.
Just as reference, I tried to follow these instructions: https://docs.meltano.com/guide/plugin-management/#multiple-variantsEdgar Ramírez (Arch.dev)
07/24/2024, 6:26 PMLucas Bunzel
07/24/2024, 6:32 PMLucas Bunzel
07/25/2024, 1:22 PMELT could not be completed: Cannot start extractor: Executable 'pipelinewise-tap-postgres' could not be found. Extractor 'pipelinewise-tap-postgres' may not have been installed yet using `meltano install extractor pipelinewise-tap-postgres`, or the executable name may be incorrect..
Edgar Ramírez (Arch.dev)
07/25/2024, 1:47 PMplugins:
extractors:
- name: pipelinewise-tap-postgres
executable: tap-postgres
?Lucas Bunzel
07/25/2024, 1:53 PMEdgar Ramírez (Arch.dev)
07/25/2024, 1:58 PMexecutable
step.Lucas Bunzel
07/26/2024, 3:17 PM