daniel_pettersson
12/09/2020, 10:51 PMDBT_SOURCE_SCHEMA
env var in my dbt_project.yml together with target-postgres. But when I switched to using target-bigquery i got stuck since target-bigquery (adswerve) doesn't support schema.
I've been eyeing pipelinewise-target-bigquery, but that doesn't support location..
Does anyone have any pointers?douwe_maan
12/09/2020, 11:16 PMDBT_SOURCE_SCHEMA
at all!douwe_maan
12/09/2020, 11:18 PMdouwe_maan
12/09/2020, 11:22 PMDBT_SOURCE_SCHEMA
(which is dynamically set to the extractor namespace, e.g. tap_foo
) as the dataset, you'll have to make 2 more changes for it to be wired up correctly:
meltano config target-bigquery set dataset_id '$MELTANO_EXTRACT__LOAD_SCHEMA'
meltano config target-bigquery set _target_schema '$TARGET_BIGQUERY_DATASET_ID'
douwe_maan
12/09/2020, 11:24 PMdataset_id
to the extractor's load_schema
extra, which matches its namespace by default, and then also dynamically sets the target_schema
extra, which will be used to get the value for DBT_SOURCE_SCHEMA
, to that same dataset_id
settingdaniel_pettersson
12/09/2020, 11:50 PMdaniel_pettersson
12/09/2020, 11:51 PMdouwe_maan
12/09/2020, 11:51 PMdouwe_maan
12/09/2020, 11:51 PMdaniel_pettersson
12/09/2020, 11:53 PMdaniel_pettersson
12/10/2020, 10:02 AMdouwe_maan
12/10/2020, 6:54 PMdouwe_maan
12/10/2020, 7:04 PMprofiles.yml
? 🙂daniel_pettersson
12/10/2020, 11:18 PM