From eaa83a05f92abf4995919be477514ffca4fb8fa9 Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Thu, 21 Oct 2021 14:39:46 +0100 Subject: [PATCH 1/2] Create target_options.yml --- dbt/include/bigquery/target_options.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 dbt/include/bigquery/target_options.yml diff --git a/dbt/include/bigquery/target_options.yml b/dbt/include/bigquery/target_options.yml new file mode 100644 index 000000000..b76400f20 --- /dev/null +++ b/dbt/include/bigquery/target_options.yml @@ -0,0 +1,25 @@ +_fixed_type: bigquery +_choose_authentication_method: + oauth: + _fixed_method: oauth + service_account: + _fixed_method: service-account + keyfile: + hint: '/path/to/bigquery/keyfile.json' +project: + hint: 'GCP project id' +dataset: + hint: 'the name of your dbt dataset' +threads: + hint: '1 or more' + type: 'int' +timeout_seconds: + default: 300 + type: 'int' +_choose_location: + US: + _fixed_location: US + EU: + _fixed_location: EU +_fixed_priority: interactive +_fixed_retries: 1 From 32be0c73cf618ae2d9dde02cd36603b7bd7da0a9 Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Fri, 22 Oct 2021 16:59:45 +0100 Subject: [PATCH 2/2] Update to latest config --- dbt/include/bigquery/profile_template.yml | 27 +++++++++++++++++++++++ dbt/include/bigquery/sample_profiles.yml | 26 ---------------------- dbt/include/bigquery/target_options.yml | 25 --------------------- 3 files changed, 27 insertions(+), 51 deletions(-) create mode 100644 dbt/include/bigquery/profile_template.yml delete mode 100644 dbt/include/bigquery/sample_profiles.yml delete mode 100644 dbt/include/bigquery/target_options.yml diff --git a/dbt/include/bigquery/profile_template.yml b/dbt/include/bigquery/profile_template.yml new file mode 100644 index 000000000..4a9cdc7c9 --- /dev/null +++ b/dbt/include/bigquery/profile_template.yml @@ -0,0 +1,27 @@ +fixed: + type: bigquery + priority: interactive + fixed_retries: 1 +prompts: + _choose_authentication_method: + oauth: + _fixed_method: oauth + service_account: + _fixed_method: service-account + keyfile: + hint: '/path/to/bigquery/keyfile.json' + project: + hint: 'GCP project id' + dataset: + hint: 'the name of your dbt dataset' + threads: + hint: '1 or more' + type: 'int' + timeout_seconds: + default: 300 + type: 'int' + _choose_location: + US: + _fixed_location: US + EU: + _fixed_location: EU diff --git a/dbt/include/bigquery/sample_profiles.yml b/dbt/include/bigquery/sample_profiles.yml deleted file mode 100644 index 36f47fdbc..000000000 --- a/dbt/include/bigquery/sample_profiles.yml +++ /dev/null @@ -1,26 +0,0 @@ -default: - outputs: - - dev: - type: bigquery - method: oauth - project: [GCP project id] - dataset: [the name of your dbt dataset] # You can also use "schema" here - threads: [1 or more] - timeout_seconds: 300 - location: US # Optional, one of US or EU - priority: interactive - retries: 1 - - prod: - type: bigquery - method: service-account - project: [GCP project id] - dataset: [the name of your dbt dataset] - threads: [1 or more] - keyfile: [/path/to/bigquery/keyfile.json] - timeout_seconds: 300 - priority: interactive - retries: 1 - - target: dev \ No newline at end of file diff --git a/dbt/include/bigquery/target_options.yml b/dbt/include/bigquery/target_options.yml deleted file mode 100644 index b76400f20..000000000 --- a/dbt/include/bigquery/target_options.yml +++ /dev/null @@ -1,25 +0,0 @@ -_fixed_type: bigquery -_choose_authentication_method: - oauth: - _fixed_method: oauth - service_account: - _fixed_method: service-account - keyfile: - hint: '/path/to/bigquery/keyfile.json' -project: - hint: 'GCP project id' -dataset: - hint: 'the name of your dbt dataset' -threads: - hint: '1 or more' - type: 'int' -timeout_seconds: - default: 300 - type: 'int' -_choose_location: - US: - _fixed_location: US - EU: - _fixed_location: EU -_fixed_priority: interactive -_fixed_retries: 1