[Bug] GoogleCloudProfile dataset argument is not replaced by neither model or yml config, but instead used as a prefix #1334
Labels
area:config
Related to configuration, like YAML files, environment variables, or executer configuration
bug
Something isn't working
execution:docker
Related to Docker execution environment
execution:virtualenv
Related to Virtualenv execution environment
profile:bigquery
Related to BigQuery ProfileConfig
triage-needed
Items need to be reviewed / assigned to milestone
Astronomer Cosmos Version
1.6.0
dbt-core version
1.8.8
Versions of dbt adapters
dbt-adapters 1.7.0
dbt-bigquery 1.8.3
LoadMode
AUTOMATIC
ExecutionMode
VIRTUALENV
InvocationMode
None
airflow version
2.5.3
Operating System
Ubuntu & Docker under WSL2 of windows 11
If a you think it's an UI issue, what browsers are you seeing the problem on?
No response
Deployment
Docker-Compose
Deployment details
No response
What happened?
As I'm using
GoogleCloudOauthProfileMapping
and passing the required arguments forprofile_args
, a project,my_gcp_project
, and a dataset,my_gcp_dataset
, are set.By running the current set-up to build the simple
my_first_dbt_model.sql
of thejaffle_shop
project, the table is correctly created in the correct location,my_gcp_project.my_gcp_dataset.my_first_dbt_model
.Now, if I try to overwrite these parameters for this specific model,
{{ config(database='my_other_gcp_project', schema='my_other_gcp_dataset') }}
model config, the new location will becomemy_other_gcp_project.my_gcp_dataset_my_other_gcp_dataset.my_first_dbt_model
my_other_gcp_project.my_gcp_dataset_my_other_gcp_dataset.my_first_dbt_model
The word combination database/project and schema/dataset are interchangeable and working as is.
So the database/project is fully overwritten in the appropriate hierarchy (https://docs.getdbt.com/reference/model-configs#configuring-models) but schema/dataset are concatenated.
However, the concatenation occurs only with the Cosmos argument and the dbt upper hierarchical config. For example, if I try both options described above, only the model
config()
will be concatenated with Cosmos value.Relevant log output
How to reproduce
GoogleCloudOauthProfileMapping
config()
or yml config.Anything else :)?
No response
Are you willing to submit PR?
Contact Details
[email protected]
The text was updated successfully, but these errors were encountered: