Andy Carter
08/01/2023, 12:59 PMmeltano.yml
if possible. I would like to alter the target-postgres
setting BATCH_SIZE_ROWS
depending on the tap run.
I tried to do this:
- name: tap-dynamics
inherit_from: tap-spreadsheets-anywhere
config:
env:
TARGET_POSTGRES_BATCH_SIZE_ROWS: 1000
But the setting in the tap wasn't getting picked up by the target. If I set TARGET_POSTGRES_BATCH_SIZE_ROWS
in .env
it works fine, but doesn't give any flexibility for changing on a per-tap basis. Suggestions welcome
Edit: I'm not using a schedule or job, otherwise the env:
section there would solve my issue exactly! 😞
Edit2: I guess one solution is to create an second inherited tap-postgres
and alter its config, then I would do meltano run my-tap tap-postgres-small-batch
but feels a bit hacky.quentin_gaborit
08/01/2023, 1:21 PMenv:
property on job
definitions?Andy Carter
08/01/2023, 1:22 PMenv:
is a proposal stillAndy Carter
08/01/2023, 1:23 PMquentin_gaborit
08/01/2023, 1:28 PMAndy Carter
08/01/2023, 1:30 PMjob
level env would be the ideal solution, from the env resolution order there is no overlap between tap and target as I understand. And I get it, job
is the right place because that is the confluence of tap and target, and my env var is specific to the combination.Andy Carter
08/01/2023, 1:38 PM{MELTANO_EXTRACTOR_NAMESPACE}
instead?Andy Carter
08/01/2023, 1:39 PM- name: target-postgres
variant: transferwise
pip_url: pipelinewise-target-postgres
config:
default_target_schema: raw__${MELTANO_EXTRACTOR_NAMESPACE}
Andy Carter
08/01/2023, 1:39 PMraw__salesforce
, raw__zendesk
as my target schemasquentin_gaborit
08/01/2023, 1:53 PMmeltano.yml
configuration in as many files as there is plugins in my project.quentin_gaborit
08/01/2023, 1:54 PMenv:
key available for jobs
would save me from having a file per bigquery-inherited target but its not that bad in the end.edgar_ramirez_mondragon
08/01/2023, 2:20 PMenv
mapping?quentin_gaborit
08/01/2023, 2:21 PMedgar_ramirez_mondragon
08/01/2023, 2:25 PMAndy Carter
08/01/2023, 3:51 PMsteve_clarke
08/01/2023, 7:16 PM