I want to control date_after and date_before variable.
With tap-rest-api-msdk we can setup TAP_REST_API_MSDK_PARAMS
meltano command resumes to:
TAP_REST_API_MSDK_PARAMS='{"date_after": "01/01/2022", "date_before":"01/12/2022"}' meltano run tap-rest-api-msdk target-jsonl
How I solve this:
add env to the meltano ops generator
add env to ins op function as an optional arguments
update env parameter to MeltanoInvoker instance
Looks like this in UI where env is made optional:
⚠️ In this exemple, meltano environment variable needs to be a string and should not be interpreted as a python object.
Closes #19 Use case : I want to be able to inject environment variable to change the meltano extraction.
This is a first proposal which works on my use case.
Defintion
meltano.yaml
inI want to control date_after and date_before variable. With tap-rest-api-msdk we can setup
TAP_REST_API_MSDK_PARAMS
meltano command resumes to:TAP_REST_API_MSDK_PARAMS='{"date_after": "01/01/2022", "date_before":"01/12/2022"}' meltano run tap-rest-api-msdk target-jsonl
How I solve this:
Looks like this in UI where env is made optional:![image](https://user-images.githubusercontent.com/25283272/212472104-660ab6c2-e195-46af-80b7-0c675d1966c1.png)
⚠️ In this exemple, meltano environment variable needs to be a string and should not be interpreted as a python object.
Any feedback is welcome.