drew_ipson
11/24/2021, 5:08 PM# dev environment
loaders:
- name: target-snowflake
config:
database: RAW_DEV
# prod environment
loaders:
- name: target-snowflake
config:
database: RAW
My Meltano environment variable is set to prod as you can see below:
root@dep-meltano-689ffcc4b8-d99pt:/project# echo $MELTANO_ENVIRONMENT
prod
However when I run meltano config target-snowflake
I get the following output:
[2021-11-24 17:05:35,056] [43|MainThread|meltano.cli.cli] [INFO] Environment 'prod' is active
{
"account": "*****",
"username": "******",
"password": "******",
"role": "LOADER",
"database": "RAW_DEV",
"warehouse": "LOADING",
"batch_size": 5000,
"timestamp_column": "__loaded_at"
}
Is the target database for loaders stored in the system database rather than in the meltano.yml? I’m wondering why it is not referencing the prod target database.pat_nadolny
11/24/2021, 5:37 PMdrew_ipson
11/24/2021, 5:42 PMdrew_ipson
11/24/2021, 5:45 PMdrew_ipson
11/24/2021, 5:45 PMpat_nadolny
11/24/2021, 6:01 PMenvironments:
- name: prod
config:
extractors:
versus the expected with `plugins`:
environments:
- name: prod
config:
plugins:
extractors:
that might do it although im not sure where it would be getting the database from then. When you run this you dont get anything, right?
echo $TARGET_SNOWFLAKE_DATABASE
drew_ipson
11/24/2021, 6:23 PMpat_nadolny
11/24/2021, 6:25 PMplugins
fix it?drew_ipson
11/24/2021, 7:25 PM