From 1edd01448f770b0ee3f821231dd32a18ea2ec540 Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Wed, 18 Oct 2023 15:57:06 -0400
Subject: [PATCH 1/6] Splitting tabs up
---
.../core/connect-data-platform/bigquery-setup.md | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git a/website/docs/docs/core/connect-data-platform/bigquery-setup.md b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
index 7a2a445be3f..5375d113cea 100644
--- a/website/docs/docs/core/connect-data-platform/bigquery-setup.md
+++ b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
@@ -90,14 +90,7 @@ If you do not specify a `project`/`database` and are using the `oauth` method, d
See [docs](https://developers.google.com/identity/protocols/oauth2) on using OAuth 2.0 to access Google APIs.
-
-
-
+#### Refresh token
Using the refresh token and client information, dbt will mint new access tokens as necessary.
@@ -122,9 +115,7 @@ my-bigquery-db:
-
-
-
+#### Temporary token
dbt will use the one-time access token, no questions asked. This approach makes sense if you have an external deployment process that can mint new access tokens and update the profile file accordingly.
@@ -146,9 +137,6 @@ my-bigquery-db:
-
-
-
### Service Account File
From 36117564be80d8d01eac522594db911d79663f08 Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Thu, 19 Oct 2023 14:06:27 -0400
Subject: [PATCH 2/6] Fixing placeholders
---
.../connect-data-platform/bigquery-setup.md | 52 +++++++++----------
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/website/docs/docs/core/connect-data-platform/bigquery-setup.md b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
index 5375d113cea..e305b7f3072 100644
--- a/website/docs/docs/core/connect-data-platform/bigquery-setup.md
+++ b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
@@ -74,10 +74,10 @@ my-bigquery-db:
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]
- [](#optional-configurations):
+ project: GCP_PROJECT_ID
+ dataset: DBT_DATASET_NAME # You can also use "schema" here
+ threads: 4 #Value must be of 1 or greater
+ [OPTIONAL_CONFIG](#optional-configurations): VALUE
```
@@ -103,14 +103,14 @@ my-bigquery-db:
dev:
type: bigquery
method: oauth-secrets
- project: [GCP project id]
- dataset: [the name of your dbt dataset] # You can also use "schema" here
- threads: [1 or more]
- refresh_token: [token]
- client_id: [client id]
- client_secret: [client secret]
- token_uri: [redirect URI]
- [](#optional-configurations):
+ project: GCP_PROJECT_ID
+ dataset: DBT_DATASET_NAME # You can also use "schema" here
+ threads: 4 # Must be a value of 1 or greater
+ refresh_token: TOKEN
+ client_id: CLIENT_ID
+ client_secret: CLIENT_SECRETS
+ token_uri: REDIRECT_URI
+ [OPTIONAL_CONFIG](#optional-configurations): VALUE
```
@@ -128,11 +128,11 @@ my-bigquery-db:
dev:
type: bigquery
method: oauth-secrets
- project: [GCP project id]
- dataset: [the name of your dbt dataset] # You can also use "schema" here
- threads: [1 or more]
- token: [temporary access token] # refreshed + updated by external process
- [](#optional-configurations):
+ project: GCP_PROJECT_ID
+ dataset: DBT_DATASET_NAME # You can also use "schema" here
+ threads: 4 # Must be a value of 1 or greater
+ token: TEMPORARY_ACCESS_TOKEN # refreshed + updated by external process
+ [OPTIONAL_CONFIG](#optional-configurations): VALUE
```
@@ -149,11 +149,11 @@ my-bigquery-db:
dev:
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]
- [](#optional-configurations):
+ project: GCP_PROJECT_ID
+ dataset: DBT_DATASET_NAME
+ threads: 4 # Must be a value of 1 or greater
+ keyfile: /PATH/TO/BIGQUERY/keyfile.json
+ [OPTIONAL_CONFIG](#optional-configurations):
```
@@ -177,10 +177,10 @@ my-bigquery-db:
dev:
type: bigquery
method: service-account-json
- project: [GCP project id]
- dataset: [the name of your dbt dataset]
- threads: [1 or more]
- [](#optional-configurations):
+ project: GCP_PROJECT_ID
+ dataset: DBT_DATASET_NAME
+ threads: 4 # Must be a value of 1 or greater
+ [OPTIONAL_CONFIG](#optional-configurations):
# These fields come from the service account json keyfile
keyfile_json:
From 50485c97567be9c014758522899f24086bf1ce0a Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Thu, 19 Oct 2023 14:07:32 -0400
Subject: [PATCH 3/6] Update
website/docs/docs/core/connect-data-platform/bigquery-setup.md
---
website/docs/docs/core/connect-data-platform/bigquery-setup.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/docs/docs/core/connect-data-platform/bigquery-setup.md b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
index e305b7f3072..b634fa8c325 100644
--- a/website/docs/docs/core/connect-data-platform/bigquery-setup.md
+++ b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
@@ -76,7 +76,7 @@ my-bigquery-db:
method: oauth
project: GCP_PROJECT_ID
dataset: DBT_DATASET_NAME # You can also use "schema" here
- threads: 4 #Value must be of 1 or greater
+ threads: 4 # Must be a value of 1 or greater
[OPTIONAL_CONFIG](#optional-configurations): VALUE
```
From dc7635467e563105f242733986fb5f607b709a71 Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Thu, 19 Oct 2023 17:10:24 -0400
Subject: [PATCH 4/6] Update
website/docs/docs/core/connect-data-platform/bigquery-setup.md
Co-authored-by: Ly Nguyen <107218380+nghi-ly@users.noreply.github.com>
---
website/docs/docs/core/connect-data-platform/bigquery-setup.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/docs/docs/core/connect-data-platform/bigquery-setup.md b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
index b634fa8c325..59e763436e5 100644
--- a/website/docs/docs/core/connect-data-platform/bigquery-setup.md
+++ b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
@@ -108,7 +108,7 @@ my-bigquery-db:
threads: 4 # Must be a value of 1 or greater
refresh_token: TOKEN
client_id: CLIENT_ID
- client_secret: CLIENT_SECRETS
+ client_secret: CLIENT_SECRET
token_uri: REDIRECT_URI
[OPTIONAL_CONFIG](#optional-configurations): VALUE
```
From 3828234af1f401c4e4a9dd48cd00f101cc05b151 Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Thu, 19 Oct 2023 17:10:30 -0400
Subject: [PATCH 5/6] Update
website/docs/docs/core/connect-data-platform/bigquery-setup.md
Co-authored-by: Ly Nguyen <107218380+nghi-ly@users.noreply.github.com>
---
website/docs/docs/core/connect-data-platform/bigquery-setup.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/docs/docs/core/connect-data-platform/bigquery-setup.md b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
index 59e763436e5..73952265a52 100644
--- a/website/docs/docs/core/connect-data-platform/bigquery-setup.md
+++ b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
@@ -180,7 +180,7 @@ my-bigquery-db:
project: GCP_PROJECT_ID
dataset: DBT_DATASET_NAME
threads: 4 # Must be a value of 1 or greater
- [OPTIONAL_CONFIG](#optional-configurations):
+ [OPTIONAL_CONFIG](#optional-configurations): VALUE
# These fields come from the service account json keyfile
keyfile_json:
From 2b56e4ef9a6ed3fd2ae1212bd5022dca77df680d Mon Sep 17 00:00:00 2001
From: Matt Shaver <60105315+matthewshaver@users.noreply.github.com>
Date: Thu, 19 Oct 2023 17:10:38 -0400
Subject: [PATCH 6/6] Update
website/docs/docs/core/connect-data-platform/bigquery-setup.md
Co-authored-by: Ly Nguyen <107218380+nghi-ly@users.noreply.github.com>
---
website/docs/docs/core/connect-data-platform/bigquery-setup.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/docs/docs/core/connect-data-platform/bigquery-setup.md b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
index 73952265a52..4169b782594 100644
--- a/website/docs/docs/core/connect-data-platform/bigquery-setup.md
+++ b/website/docs/docs/core/connect-data-platform/bigquery-setup.md
@@ -153,7 +153,7 @@ my-bigquery-db:
dataset: DBT_DATASET_NAME
threads: 4 # Must be a value of 1 or greater
keyfile: /PATH/TO/BIGQUERY/keyfile.json
- [OPTIONAL_CONFIG](#optional-configurations):
+ [OPTIONAL_CONFIG](#optional-configurations): VALUE
```