robert_espinoza
09/21/2022, 12:38 AMplugins:
loaders:
- name: ga-target-s3-jsonl
inherit_from: target-s3-jsonl
env:
PREFIX: the_prefix_here
config:
naming_convention: meltano/${PREFIX}/{stream}/export_date={date:%Y-%m-%d}/{timestamp}-{stream}.json
but when I run meltano config --format=env target-s3-ga-daily-campaign-performance list the PREFIX env is not string interpolated to the s3 path:
'meltano-test/datalake-json//{stream}/export_date={date:%Y-%m-%d}/{timestamp}-{stream}.json'
and when I run meltano elt tap-google-ads ga-target-s3 the env is not added to the expected config naming_convention string.
Any ideas why the env var is not being interpolated correctly?Reuben (Matatika)
09/21/2022, 1:13 AMmeltano.yml currently. The mapping you defined in env just means that PREFIX will be available to ga-target-s3-jsonl at runtime - not that meltano will understand to interpolate the naming_convention value with it.meltano.yml-wide...ilya_sapunov
09/21/2022, 3:51 PM- name: dbt-bigquery
config:
dataset: dbt_stage
env:
DBT_PACKAGE_GA4__PROJECT: ${DBT_BIGQUERY_PROJECT}Reuben (Matatika)
09/22/2022, 2:32 PMmeltano.yml (what is/isn't supported)?ken_payne
09/22/2022, 5:02 PMget_with_metadata) and all values read via the MeltanoYmlStoreManager are marked as expandable here. All that to say, what you both are doing is/should be supported ๐ค I have also just tried your example @robert_espinoza in a fresh project and expansion is working as expected:robert_espinoza
09/22/2022, 5:08 PM2.1.0 . Do you know what versions support expansion?ken_payne
09/22/2022, 5:27 PM2.4.0) for other parts (specifically the plugin-level env you are using). It may be that by moving your env to a point higher in the expansion hierarchy, your expansion will work in version 2.1.0 , but I would always suggest upgrading to the latest version to make use of fixes and new features ๐ E.g. using the environment-level env key, in stead of the plugin level:
environments:
- name: dev
env:
PREFIX: the_prefix_here
plugins:
loaders:
- name: ga-target-s3-jsonl
inherit_from: target-s3-jsonl
config:
naming_convention: meltano/${PREFIX}/{stream}/export_date={date:%Y-%m-%d}/{timestamp}-{stream}.json
As far as I remember, we added expansion at the environment env level at the same time as the environments feature, so this will likely work ๐
Reuben (Matatika)
09/22/2022, 5:55 PM