This repository was archived by the owner on May 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,6 +126,14 @@ def _align_dbt_cred_params_with_datafold_params(dbt_creds: dict) -> dict:
126126 dbt_creds ["jsonKeyFile" ] = json .dumps (data )
127127 elif method == "service-account-json" :
128128 dbt_creds ["jsonKeyFile" ] = json .dumps (dbt_creds ["keyfile_json" ])
129+ else :
130+ rich .print (
131+ f'[red]Cannot extract bigquery credentials from dbt_project.yml for "{ method } " type. '
132+ f"If you want to provide credentials via dbt_project.yml, "
133+ f'please, use "service-account" or "service-account-json" '
134+ f"(more in docs: https://docs.getdbt.com/reference/warehouse-setups/bigquery-setup). "
135+ f"Otherwise, you can provide a path to a json key file or a json key file data as an input."
136+ )
129137 dbt_creds ["projectId" ] = dbt_creds ["project" ]
130138 elif db_type == "snowflake" :
131139 dbt_creds ["default_db" ] = dbt_creds ["database" ]
You can’t perform that action at this time.
0 commit comments