Repository: getindata/data-pipelines-cli (language: python)

Issue:
Release 0.26.0
Bump version and CHANGELOG for next release.


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 21750d1..a206814 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,11 @@
 
 ## [Unreleased]
 
+## [0.26.0] - 2023-08-25
+
+-   Upgrade dbt to 1.5.4
+-   Upgrade acryl-datahub to 0.10.4
+
 ## [0.25.3] - 2023-07-04
 
 -   Pinned Pydantic's version (transient dependency from Copier) as new major version breaks our CLI.
@@ -265,7 +270,9 @@
 -   Draft of `dp init`, `dp create`, `dp template new`, `dp template list` and `dp dbt`
 -   Draft of `dp compile` and `dp deploy`
 
-[Unreleased]: https://github.com/getindata/data-pipelines-cli/compare/0.25.3...HEAD
+[Unreleased]: https://github.com/getindata/data-pipelines-cli/compare/0.26.0...HEAD
+
+[0.26.0]: https://github.com/getindata/data-pipelines-cli/compare/0.25.3...0.26.0
 
 [0.25.3]: https://github.com/getindata/data-pipelines-cli/compare/0.25.2...0.25.3
 
diff --git a/data_pipelines_cli/__init__.py b/data_pipelines_cli/__init__.py
index ae14569..209047b 100644
--- a/data_pipelines_cli/__init__.py
+++ b/data_pipelines_cli/__init__.py
@@ -5,4 +5,4 @@
 pipelines.
 """
 
-version = "0.25.3"
+version = "0.26.0"
diff --git a/data_pipelines_cli/cli_commands/publish.py b/data_pipelines_cli/cli_commands/publish.py
index cc0745a..9f81c3f 100644
--- a/data_pipelines_cli/cli_commands/publish.py
+++ b/data_pipelines_cli/cli_commands/publish.py
@@ -5,9 +5,8 @@
 
 import click
 import yaml
-from dbt.contracts.graph.compiled import ManifestNode
 from dbt.contracts.graph.manifest import Manifest
-from dbt.contracts.graph.parsed import ColumnInfo
+from dbt.contracts.graph.nodes import ColumnInfo, ManifestNode
 
 from ..cli_constants import BUILD_DIR
 from ..cli_utils import echo_info, echo_warning
diff --git a/setup.cfg b/setup.cfg
index 44550c9..2886435 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 0.25.3
+current_version = 0.26.0
 
 [bumpversion:file:setup.py]
 
diff --git a/setup.py b/setup.py
index d0d5862..6dfbcd0 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@
     "fsspec==2022.11.0",
     "packaging==21.3",
     "colorama==0.4.5",
-    "dbt-core==1.3.1",
+    "dbt-core==1.5.4",
     "pydantic<2",
 ]
 
@@ -27,19 +27,19 @@
 
 EXTRA_REQUIRE = {
     # DBT adapters
-    "bigquery": ["dbt-bigquery==1.3.0"],
-    "postgres": ["dbt-postgres==1.3.1"],
-    "snowflake": ["dbt-snowflake==1.3.0"],
-    "redshift": ["dbt-redshift==1.3.0"],
+    "bigquery": ["dbt-bigquery==1.5.5"],
+    "postgres": ["dbt-postgres==1.5.4"],
+    "snowflake": ["dbt-snowflake==1.5.2"],
+    "redshift": ["dbt-redshift==1.5.9"],
     "dbt-all": [
-        "dbt-bigquery==1.3.0",
-        "dbt-postgres==1.3.1",
-        "dbt-snowflake==1.3.0",
-        "dbt-redshift==1.3.0",
+        "dbt-bigquery==1.5.5",
+        "dbt-postgres==1.5.4",
+        "dbt-snowflake==1.5.2",
+        "dbt-redshift==1.5.9",
     ],
     # ---
     "docker": ["docker==6.0.1"],
-    "datahub": ["acryl-datahub[dbt]==0.9.3.2"],
+    "datahub": ["acryl-datahub[dbt]==0.10.4"],
     "git": ["GitPython==3.1.29"],
     "looker": ["dbt2looker==0.11.0"],
     "tests": [
@@ -69,7 +69,7 @@
 
 setup(
     name="data_pipelines_cli",
-    version="0.25.3",
+    version="0.26.0",
     description="CLI for data platform",
     long_description=README,
     long_description_content_type="text/markdown",


Test patch:
diff --git a/tests/cli_commands/test_prepare_env.py b/tests/cli_commands/test_prepare_env.py
index d090123..0dbe391 100644
--- a/tests/cli_commands/test_prepare_env.py
+++ b/tests/cli_commands/test_prepare_env.py
@@ -19,7 +19,7 @@ class GenHomeProfilesCommandTestCase(unittest.TestCase):
             "outputs": {
                 "env_execution": {
                     "method": "service-account",
-                    "project": "example-project",
+                    "project": "exampleproject",
                     "dataset": "var21-dataset",
                     "keyfile": "/tmp/a/b/c/d.json",
                     "timeout_seconds": 150,
diff --git a/tests/cli_commands/test_publish.py b/tests/cli_commands/test_publish.py
index 520e2da..329514a 100644
--- a/tests/cli_commands/test_publish.py
+++ b/tests/cli_commands/test_publish.py
@@ -23,7 +23,7 @@ class PublishCommandTestCase(unittest.TestCase):
         "sources": [
             {
                 "name": "my_test_project_1337",
-                "database": "example-project",
+                "database": "exampleproject",
                 "schema": "username_private_working_dataset",
                 "tags": ["project:my_test_project_1337"],
                 "meta": {"dag": "experimental-dag"},
diff --git a/tests/goldens/config/base/bigquery.yml b/tests/goldens/config/base/bigquery.yml
index 155ce79..d3649b2 100644
--- a/tests/goldens/config/base/bigquery.yml
+++ b/tests/goldens/config/base/bigquery.yml
@@ -1,5 +1,5 @@
 method: service-account
-project: example-project
+project: exampleproject
 dataset: example-dataset
 threads: 1
 keyfile: /var/keyfile.json
diff --git a/tests/goldens/config/staging/bigquery.yml b/tests/goldens/config/staging/bigquery.yml
index 3ebb757..f11a3c0 100644
--- a/tests/goldens/config/staging/bigquery.yml
+++ b/tests/goldens/config/staging/bigquery.yml
@@ -1,5 +1,5 @@
 method: service-account
-project: example-project
+project: exampleproject
 dataset: "{{ var('variable_2') }}-dataset"
 threads: "{{ var('variable_1') }}"
 keyfile: "{{ env_var('BIGQUERY_KEYFILE') }}"
diff --git a/tests/goldens/example_profiles/dev_bigquery.yml b/tests/goldens/example_profiles/dev_bigquery.yml
index f2f0f2f..df77cc8 100644
--- a/tests/goldens/example_profiles/dev_bigquery.yml
+++ b/tests/goldens/example_profiles/dev_bigquery.yml
@@ -2,7 +2,7 @@ bigquery:
   outputs:
     env_execution:
       method: service-account
-      project: example-project
+      project: exampleproject
       dataset: example-dataset
       keyfile: /var/keyfile.json
       timeout_seconds: 150
diff --git a/tests/goldens/example_profiles/staging_bigquery.yml b/tests/goldens/example_profiles/staging_bigquery.yml
index f094541..f55854c 100644
--- a/tests/goldens/example_profiles/staging_bigquery.yml
+++ b/tests/goldens/example_profiles/staging_bigquery.yml
@@ -2,7 +2,7 @@ bigquery:
   outputs:
     env_execution:
       method: service-account
-      project: example-project
+      project: exampleproject
       dataset: "{{ var('variable_2') }}-dataset"
       keyfile: "{{ env_var('BIGQUERY_KEYFILE') }}"
       timeout_seconds: 150
diff --git a/tests/goldens/target/manifest.json b/tests/goldens/target/manifest.json
index 28ebe8f..50cf6d0 100644
--- a/tests/goldens/target/manifest.json
+++ b/tests/goldens/target/manifest.json
@@ -1,24 +1,34 @@
 {
   "metadata": {
-    "dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json",
-    "dbt_version": "1.0.1",
-    "generated_at": "2022-02-08T15:26:13.196186Z",
-    "invocation_id": "cfd5d875-7b75-490c-a08e-d669ff1ac7ed",
+    "dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v9.json",
+    "dbt_version": "1.5.4",
+    "generated_at": "2023-08-16T15:41:44.829721Z",
+    "invocation_id": "f2bfd8d6-c960-4be5-8fbd-5efd5c326b12",
     "env": {},
-    "project_id": "faebc42304447d4427374f806679ecb5",
-    "user_id": "e04057cf-c7f8-44db-917d-f70e8e90af13",
+    "project_id": "70adfb9ebff35580065cdccfc383529a",
+    "user_id": "007a9497-2894-436f-aaeb-667493e6b6b5",
     "send_anonymous_usage_stats": true,
     "adapter_type": "bigquery"
   },
   "nodes": {
     "model.my_new_project.my_first_dbt_model": {
-      "raw_code": "/*\n    Welcome to your first dbt model!\n    Did you know that you can also configure models directly within SQL files?\n    This will override configurations stated in dbt_project.yml\n\n    Try changing \"table\" to \"view\" below\n*/\n\n{{ config(materialized='table') }}\n\nwith source_data as (\n\n    select 1 as id\n    union all\n    select null as id\n\n)\n\nselect *\nfrom source_data\n\n/*\n    Uncomment the line below to remove records with null `id` values\n*/\n\n-- where id is not null",
-      "language": "sql",
-      "compiled": true,
+      "database": "exampleproject",
+      "schema": "username_private_working_dataset",
+      "name": "my_first_dbt_model",
       "resource_type": "model",
-      "depends_on": {
-        "macros": [],
-        "nodes": []
+      "package_name": "my_new_project",
+      "path": "example/my_first_dbt_model.sql",
+      "original_file_path": "models/example/my_first_dbt_model.sql",
+      "unique_id": "model.my_new_project.my_first_dbt_model",
+      "fqn": [
+        "my_new_project",
+        "example",
+        "my_first_dbt_model"
+      ],
+      "alias": "my_first_dbt_model",
+      "checksum": {
+        "name": "sha256",
+        "checksum": "0f0a39768ca58b1f5b1e85acbb46843e16a97d88db12e7a25d1533b2e8f77b36"
       },
       "config": {
         "enabled": true,
@@ -27,36 +37,28 @@
         "database": null,
         "tags": [],
         "meta": {},
+        "group": null,
         "materialized": "table",
+        "incremental_strategy": null,
         "persist_docs": {},
         "quoting": {},
         "column_types": {},
         "full_refresh": null,
+        "unique_key": null,
         "on_schema_change": "ignore",
+        "grants": {},
+        "packages": [],
+        "docs": {
+          "show": true,
+          "node_color": null
+        },
+        "contract": {
+          "enforced": false
+        },
         "post-hook": [],
         "pre-hook": []
       },
-      "database": "example-project",
-      "schema": "username_private_working_dataset",
-      "fqn": [
-        "my_new_project",
-        "example",
-        "my_first_dbt_model"
-      ],
-      "unique_id": "model.my_new_project.my_first_dbt_model",
-      "package_name": "my_new_project",
-      "root_path": "/var/project/",
-      "path": "example/my_first_dbt_model.sql",
-      "original_file_path": "models/example/my_first_dbt_model.sql",
-      "name": "my_first_dbt_model",
-      "alias": "my_first_dbt_model",
-      "checksum": {
-        "name": "sha256",
-        "checksum": "842251f5ed1d97920d3748d9686b8c05a3a0071ec7990f948f36796491788aed"
-      },
       "tags": [],
-      "refs": [],
-      "sources": [],
       "description": "A starter dbt model",
       "columns": {
         "id": {
@@ -64,37 +66,66 @@
           "description": "The primary key for this table",
           "meta": {},
           "data_type": null,
+          "constraints": [],
           "quote": null,
           "tags": []
         }
       },
       "meta": {},
+      "group": null,
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": "my_new_project://models/example/schema.yml",
-      "compiled_path": "target/compiled/my_new_project/models/example/my_first_dbt_model.sql",
       "build_path": null,
       "deferred": false,
       "unrendered_config": {
         "materialized": "table"
       },
-      "created_at": 1644333973.707169,
+      "created_at": 1692200505.722525,
+      "relation_name": "`exampleproject`.`username_private_working_dataset`.`my_first_dbt_model`",
+      "raw_code": "/*\n    Welcome to your first dbt model!\n    Did you know that you can also configure models directly within SQL files?\n    This will override configurations stated in dbt_project.yml\n\n    Try changing \"table\" to \"view\" below\n*/\n\n{{ config(materialized='table') }}\n\nwith source_data as (\n\n    select 1 as id\n    union all\n    select null as id\n\n)\n\nselect *\nfrom source_data\n\n/*\n    Uncomment the line below to remove records with null `id` values\n*/\n\n-- where id is not null",
+      "language": "sql",
+      "refs": [],
+      "sources": [],
+      "metrics": [],
+      "depends_on": {
+        "macros": [],
+        "nodes": []
+      },
+      "compiled_path": "target/compiled/my_new_project/models/example/my_first_dbt_model.sql",
+      "compiled": true,
       "compiled_code": "/*\n    Welcome to your first dbt model!\n    Did you know that you can also configure models directly within SQL files?\n    This will override configurations stated in dbt_project.yml\n\n    Try changing \"table\" to \"view\" below\n*/\n\n\n\nwith source_data as (\n\n    select 1 as id\n    union all\n    select null as id\n\n)\n\nselect *\nfrom source_data\n\n/*\n    Uncomment the line below to remove records with null `id` values\n*/\n\n-- where id is not null",
       "extra_ctes_injected": true,
       "extra_ctes": [],
-      "relation_name": "`example-project`.`username_private_working_dataset`.`my_first_dbt_model`"
+      "contract": {
+        "enforced": false,
+        "checksum": null
+      },
+      "access": "protected",
+      "constraints": [],
+      "version": null,
+      "latest_version": null
     },
     "model.my_new_project.my_second_dbt_model": {
-      "raw_code": "-- Use the `ref` function to select from other models\n\nselect *\nfrom {{ ref('my_first_dbt_model') }}\nwhere id = 1",
-      "language": "sql",
-      "compiled": true,
+      "database": "exampleproject",
+      "schema": "username_private_working_dataset",
+      "name": "my_second_dbt_model",
       "resource_type": "model",
-      "depends_on": {
-        "macros": [],
-        "nodes": [
-          "model.my_new_project.my_first_dbt_model"
-        ]
+      "package_name": "my_new_project",
+      "path": "example/my_second_dbt_model.sql",
+      "original_file_path": "models/example/my_second_dbt_model.sql",
+      "unique_id": "model.my_new_project.my_second_dbt_model",
+      "fqn": [
+        "my_new_project",
+        "example",
+        "my_second_dbt_model"
+      ],
+      "alias": "my_second_dbt_model",
+      "checksum": {
+        "name": "sha256",
+        "checksum": "dc8c458292bc2fb8ce4591cb70c1e23046e3c2e33fb1c2ce732658f90e231f1e"
       },
       "config": {
         "enabled": true,
@@ -103,40 +134,28 @@
         "database": null,
         "tags": [],
         "meta": {},
+        "group": null,
         "materialized": "view",
+        "incremental_strategy": null,
         "persist_docs": {},
         "quoting": {},
         "column_types": {},
         "full_refresh": null,
+        "unique_key": null,
         "on_schema_change": "ignore",
+        "grants": {},
+        "packages": [],
+        "docs": {
+          "show": true,
+          "node_color": null
+        },
+        "contract": {
+          "enforced": false
+        },
         "post-hook": [],
         "pre-hook": []
       },
-      "database": "example-project",
-      "schema": "username_private_working_dataset",
-      "fqn": [
-        "my_new_project",
-        "example",
-        "my_second_dbt_model"
-      ],
-      "unique_id": "model.my_new_project.my_second_dbt_model",
-      "package_name": "my_new_project",
-      "root_path": "/var/project",
-      "path": "example/my_second_dbt_model.sql",
-      "original_file_path": "models/example/my_second_dbt_model.sql",
-      "name": "my_second_dbt_model",
-      "alias": "my_second_dbt_model",
-      "checksum": {
-        "name": "sha256",
-        "checksum": "b3aa346f283f3c9c9a75936f3b80d2572ca9ab39aee4c02b30553d3fe2ba5692"
-      },
       "tags": [],
-      "refs": [
-        [
-          "my_first_dbt_model"
-        ]
-      ],
-      "sources": [],
       "description": "A starter dbt model",
       "columns": {
         "id": {
@@ -144,28 +163,57 @@
           "description": "The primary key for this table",
           "meta": {},
           "data_type": null,
+          "constraints": [],
           "quote": null,
           "tags": []
         }
       },
       "meta": {},
+      "group": null,
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": "my_new_project://models/example/schema.yml",
-      "compiled_path": "target/compiled/my_new_project/models/example/my_second_dbt_model.sql",
       "build_path": null,
       "deferred": false,
-      "unrendered_config": {},
-      "created_at": 1644333973.708118,
-      "compiled_code": "-- Use the `ref` function to select from other models\n\nselect *\nfrom `example-project`.`username_private_working_dataset`.`my_first_dbt_model`\nwhere id = 1",
+      "unrendered_config": {
+        "materialized": "view"
+      },
+      "created_at": 1692200505.7238169,
+      "relation_name": "`exampleproject`.`username_private_working_dataset`.`my_second_dbt_model`",
+      "raw_code": "-- Use the `ref` function to select from other models\n\nselect *\nfrom {{ ref('my_first_dbt_model') }}\nwhere id = 1",
+      "language": "sql",
+      "refs": [
+        {
+          "name": "my_first_dbt_model",
+          "package": null,
+          "version": null
+        }
+      ],
+      "sources": [],
+      "metrics": [],
+      "depends_on": {
+        "macros": [],
+        "nodes": [
+          "model.my_new_project.my_first_dbt_model"
+        ]
+      },
+      "compiled_path": "target/compiled/my_new_project/models/example/my_second_dbt_model.sql",
+      "compiled": true,
+      "compiled_code": "-- Use the `ref` function to select from other models\n\nselect *\nfrom `exampleproject`.`username_private_working_dataset`.`my_first_dbt_model`\nwhere id = 1",
       "extra_ctes_injected": true,
       "extra_ctes": [],
-      "relation_name": "`example-project`.`username_private_working_dataset`.`my_second_dbt_model`"
+      "contract": {
+        "enforced": false,
+        "checksum": null
+      },
+      "access": "protected",
+      "constraints": [],
+      "version": null,
+      "latest_version": null
     },
     "test.my_new_project.unique_my_first_dbt_model_id.16e066b321": {
-      "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}",
-      "language": "sql",
       "test_metadata": {
         "name": "unique",
         "kwargs": {
@@ -174,16 +222,23 @@
         },
         "namespace": null
       },
-      "compiled": true,
+      "database": "exampleproject",
+      "schema": "username_private_working_dataset_dbt_test__audit",
+      "name": "unique_my_first_dbt_model_id",
       "resource_type": "test",
-      "depends_on": {
-        "macros": [
-          "macro.dbt.test_unique",
-          "macro.dbt.get_where_subquery"
-        ],
-        "nodes": [
-          "model.my_new_project.my_first_dbt_model"
-        ]
+      "package_name": "my_new_project",
+      "path": "unique_my_first_dbt_model_id.sql",
+      "original_file_path": "models/example/schema.yml",
+      "unique_id": "test.my_new_project.unique_my_first_dbt_model_id.16e066b321",
+      "fqn": [
+        "my_new_project",
+        "example",
+        "unique_my_first_dbt_model_id"
+      ],
+      "alias": "unique_my_first_dbt_model_id",
+      "checksum": {
+        "name": "none",
+        "checksum": ""
       },
       "config": {
         "enabled": true,
@@ -192,6 +247,7 @@
         "database": null,
         "tags": [],
         "meta": {},
+        "group": null,
         "materialized": "test",
         "severity": "ERROR",
         "store_failures": null,
@@ -201,53 +257,55 @@
         "warn_if": "!= 0",
         "error_if": "!= 0"
       },
-      "database": "example-project",
-      "schema": "username_private_working_dataset_dbt_test__audit",
-      "fqn": [
-        "my_new_project",
-        "example",
-        "unique_my_first_dbt_model_id"
-      ],
-      "unique_id": "test.my_new_project.unique_my_first_dbt_model_id.16e066b321",
-      "package_name": "my_new_project",
-      "root_path": "/var/project",
-      "path": "schema_test/unique_my_first_dbt_model_id.sql",
-      "original_file_path": "models/example/schema.yml",
-      "name": "unique_my_first_dbt_model_id",
-      "alias": "unique_my_first_dbt_model_id",
-      "checksum": {
-        "name": "none",
-        "checksum": ""
-      },
       "tags": [],
-      "refs": [
-        [
-          "my_first_dbt_model"
-        ]
-      ],
-      "sources": [],
       "description": "",
       "columns": {},
       "meta": {},
+      "group": null,
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
-      "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/unique_my_first_dbt_model_id.sql",
       "build_path": null,
       "deferred": false,
       "unrendered_config": {},
-      "created_at": 1644333973.715701,
-      "compiled_code": "\n    \n    \n\nwith dbt_test__target as (\n  \n  select id as unique_field\n  from `example-project`.`username_private_working_dataset`.`my_first_dbt_model`\n  where id is not null\n  \n)\n\nselect\n    unique_field,\n    count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n",
+      "created_at": 1692200505.749942,
+      "relation_name": null,
+      "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}",
+      "language": "sql",
+      "refs": [
+        {
+          "name": "my_first_dbt_model",
+          "package": null,
+          "version": null
+        }
+      ],
+      "sources": [],
+      "metrics": [],
+      "depends_on": {
+        "macros": [
+          "macro.dbt.test_unique",
+          "macro.dbt.get_where_subquery"
+        ],
+        "nodes": [
+          "model.my_new_project.my_first_dbt_model"
+        ]
+      },
+      "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/unique_my_first_dbt_model_id.sql",
+      "compiled": true,
+      "compiled_code": "\n    \n    \n\nwith dbt_test__target as (\n\n  select id as unique_field\n  from `exampleproject`.`username_private_working_dataset`.`my_first_dbt_model`\n  where id is not null\n\n)\n\nselect\n    unique_field,\n    count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n",
       "extra_ctes_injected": true,
       "extra_ctes": [],
-      "relation_name": null,
+      "contract": {
+        "enforced": false,
+        "checksum": null
+      },
       "column_name": "id",
-      "file_key_name": "models.my_first_dbt_model"
+      "file_key_name": "models.my_first_dbt_model",
+      "attached_node": "model.my_new_project.my_first_dbt_model"
     },
     "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710": {
-      "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}",
-      "language": "sql",
       "test_metadata": {
         "name": "not_null",
         "kwargs": {
@@ -256,16 +314,23 @@
         },
         "namespace": null
       },
-      "compiled": true,
+      "database": "exampleproject",
+      "schema": "username_private_working_dataset_dbt_test__audit",
+      "name": "not_null_my_first_dbt_model_id",
       "resource_type": "test",
-      "depends_on": {
-        "macros": [
-          "macro.dbt.test_not_null",
-          "macro.dbt.get_where_subquery"
-        ],
-        "nodes": [
-          "model.my_new_project.my_first_dbt_model"
-        ]
+      "package_name": "my_new_project",
+      "path": "not_null_my_first_dbt_model_id.sql",
+      "original_file_path": "models/example/schema.yml",
+      "unique_id": "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710",
+      "fqn": [
+        "my_new_project",
+        "example",
+        "not_null_my_first_dbt_model_id"
+      ],
+      "alias": "not_null_my_first_dbt_model_id",
+      "checksum": {
+        "name": "none",
+        "checksum": ""
       },
       "config": {
         "enabled": true,
@@ -274,6 +339,7 @@
         "database": null,
         "tags": [],
         "meta": {},
+        "group": null,
         "materialized": "test",
         "severity": "ERROR",
         "store_failures": null,
@@ -283,53 +349,55 @@
         "warn_if": "!= 0",
         "error_if": "!= 0"
       },
-      "database": "example-project",
-      "schema": "username_private_working_dataset_dbt_test__audit",
-      "fqn": [
-        "my_new_project",
-        "example",
-        "not_null_my_first_dbt_model_id"
-      ],
-      "unique_id": "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710",
-      "package_name": "my_new_project",
-      "root_path": "/var/project",
-      "path": "schema_test/not_null_my_first_dbt_model_id.sql",
-      "original_file_path": "models/example/schema.yml",
-      "name": "not_null_my_first_dbt_model_id",
-      "alias": "not_null_my_first_dbt_model_id",
-      "checksum": {
-        "name": "none",
-        "checksum": ""
-      },
       "tags": [],
-      "refs": [
-        [
-          "my_first_dbt_model"
-        ]
-      ],
-      "sources": [],
       "description": "",
       "columns": {},
       "meta": {},
+      "group": null,
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
-      "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/not_null_my_first_dbt_model_id.sql",
       "build_path": null,
       "deferred": false,
       "unrendered_config": {},
-      "created_at": 1644333973.717896,
-      "compiled_code": "\n    \n    \n\nselect *\nfrom `example-project`.`username_private_working_dataset`.`my_first_dbt_model`\nwhere id is null\n\n\n",
+      "created_at": 1692200505.752791,
+      "relation_name": null,
+      "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}",
+      "language": "sql",
+      "refs": [
+        {
+          "name": "my_first_dbt_model",
+          "package": null,
+          "version": null
+        }
+      ],
+      "sources": [],
+      "metrics": [],
+      "depends_on": {
+        "macros": [
+          "macro.dbt.test_not_null",
+          "macro.dbt.get_where_subquery"
+        ],
+        "nodes": [
+          "model.my_new_project.my_first_dbt_model"
+        ]
+      },
+      "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/not_null_my_first_dbt_model_id.sql",
+      "compiled": true,
+      "compiled_code": "\n    \n    \n\n\n\nselect id\nfrom `exampleproject`.`username_private_working_dataset`.`my_first_dbt_model`\nwhere id is null\n\n\n",
       "extra_ctes_injected": true,
       "extra_ctes": [],
-      "relation_name": null,
+      "contract": {
+        "enforced": false,
+        "checksum": null
+      },
       "column_name": "id",
-      "file_key_name": "models.my_first_dbt_model"
+      "file_key_name": "models.my_first_dbt_model",
+      "attached_node": "model.my_new_project.my_first_dbt_model"
     },
     "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493": {
-      "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}",
-      "language": "sql",
       "test_metadata": {
         "name": "unique",
         "kwargs": {
@@ -338,16 +406,23 @@
         },
         "namespace": null
       },
-      "compiled": true,
+      "database": "exampleproject",
+      "schema": "username_private_working_dataset_dbt_test__audit",
+      "name": "unique_my_second_dbt_model_id",
       "resource_type": "test",
-      "depends_on": {
-        "macros": [
-          "macro.dbt.test_unique",
-          "macro.dbt.get_where_subquery"
-        ],
-        "nodes": [
-          "model.my_new_project.my_second_dbt_model"
-        ]
+      "package_name": "my_new_project",
+      "path": "unique_my_second_dbt_model_id.sql",
+      "original_file_path": "models/example/schema.yml",
+      "unique_id": "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493",
+      "fqn": [
+        "my_new_project",
+        "example",
+        "unique_my_second_dbt_model_id"
+      ],
+      "alias": "unique_my_second_dbt_model_id",
+      "checksum": {
+        "name": "none",
+        "checksum": ""
       },
       "config": {
         "enabled": true,
@@ -356,6 +431,7 @@
         "database": null,
         "tags": [],
         "meta": {},
+        "group": null,
         "materialized": "test",
         "severity": "ERROR",
         "store_failures": null,
@@ -365,53 +441,55 @@
         "warn_if": "!= 0",
         "error_if": "!= 0"
       },
-      "database": "example-project",
-      "schema": "username_private_working_dataset_dbt_test__audit",
-      "fqn": [
-        "my_new_project",
-        "example",
-        "unique_my_second_dbt_model_id"
-      ],
-      "unique_id": "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493",
-      "package_name": "my_new_project",
-      "root_path": "/var/project",
-      "path": "schema_test/unique_my_second_dbt_model_id.sql",
-      "original_file_path": "models/example/schema.yml",
-      "name": "unique_my_second_dbt_model_id",
-      "alias": "unique_my_second_dbt_model_id",
-      "checksum": {
-        "name": "none",
-        "checksum": ""
-      },
       "tags": [],
-      "refs": [
-        [
-          "my_second_dbt_model"
-        ]
-      ],
-      "sources": [],
       "description": "",
       "columns": {},
       "meta": {},
+      "group": null,
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
-      "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/unique_my_second_dbt_model_id.sql",
       "build_path": null,
       "deferred": false,
       "unrendered_config": {},
-      "created_at": 1644333973.720154,
-      "compiled_code": "\n    \n    \n\nwith dbt_test__target as (\n  \n  select id as unique_field\n  from `example-project`.`username_private_working_dataset`.`my_second_dbt_model`\n  where id is not null\n  \n)\n\nselect\n    unique_field,\n    count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n",
+      "created_at": 1692200505.755542,
+      "relation_name": null,
+      "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}",
+      "language": "sql",
+      "refs": [
+        {
+          "name": "my_second_dbt_model",
+          "package": null,
+          "version": null
+        }
+      ],
+      "sources": [],
+      "metrics": [],
+      "depends_on": {
+        "macros": [
+          "macro.dbt.test_unique",
+          "macro.dbt.get_where_subquery"
+        ],
+        "nodes": [
+          "model.my_new_project.my_second_dbt_model"
+        ]
+      },
+      "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/unique_my_second_dbt_model_id.sql",
+      "compiled": true,
+      "compiled_code": "\n    \n    \n\nwith dbt_test__target as (\n\n  select id as unique_field\n  from `exampleproject`.`username_private_working_dataset`.`my_second_dbt_model`\n  where id is not null\n\n)\n\nselect\n    unique_field,\n    count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n",
       "extra_ctes_injected": true,
       "extra_ctes": [],
-      "relation_name": null,
+      "contract": {
+        "enforced": false,
+        "checksum": null
+      },
       "column_name": "id",
-      "file_key_name": "models.my_second_dbt_model"
+      "file_key_name": "models.my_second_dbt_model",
+      "attached_node": "model.my_new_project.my_second_dbt_model"
     },
     "test.my_new_project.not_null_my_second_dbt_model_id.151b76d778": {
-      "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}",
-      "language": "sql",
       "test_metadata": {
         "name": "not_null",
         "kwargs": {
@@ -420,16 +498,23 @@
         },
         "namespace": null
       },
-      "compiled": true,
+      "database": "exampleproject",
+      "schema": "username_private_working_dataset_dbt_test__audit",
+      "name": "not_null_my_second_dbt_model_id",
       "resource_type": "test",
-      "depends_on": {
-        "macros": [
-          "macro.dbt.test_not_null",
-          "macro.dbt.get_where_subquery"
-        ],
-        "nodes": [
-          "model.my_new_project.my_second_dbt_model"
-        ]
+      "package_name": "my_new_project",
+      "path": "not_null_my_second_dbt_model_id.sql",
+      "original_file_path": "models/example/schema.yml",
+      "unique_id": "test.my_new_project.not_null_my_second_dbt_model_id.151b76d778",
+      "fqn": [
+        "my_new_project",
+        "example",
+        "not_null_my_second_dbt_model_id"
+      ],
+      "alias": "not_null_my_second_dbt_model_id",
+      "checksum": {
+        "name": "none",
+        "checksum": ""
       },
       "config": {
         "enabled": true,
@@ -438,6 +523,7 @@
         "database": null,
         "tags": [],
         "meta": {},
+        "group": null,
         "materialized": "test",
         "severity": "ERROR",
         "store_failures": null,
@@ -447,219 +533,222 @@
         "warn_if": "!= 0",
         "error_if": "!= 0"
       },
-      "database": "example-project",
-      "schema": "username_private_working_dataset_dbt_test__audit",
-      "fqn": [
-        "my_new_project",
-        "example",
-        "not_null_my_second_dbt_model_id"
-      ],
-      "unique_id": "test.my_new_project.not_null_my_second_dbt_model_id.151b76d778",
-      "package_name": "my_new_project",
-      "root_path": "/var/project",
-      "path": "schema_test/not_null_my_second_dbt_model_id.sql",
-      "original_file_path": "models/example/schema.yml",
-      "name": "not_null_my_second_dbt_model_id",
-      "alias": "not_null_my_second_dbt_model_id",
-      "checksum": {
-        "name": "none",
-        "checksum": ""
-      },
       "tags": [],
-      "refs": [
-        [
-          "my_second_dbt_model"
-        ]
-      ],
-      "sources": [],
       "description": "",
       "columns": {},
       "meta": {},
+      "group": null,
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
-      "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/not_null_my_second_dbt_model_id.sql",
       "build_path": null,
       "deferred": false,
       "unrendered_config": {},
-      "created_at": 1644333973.7221801,
-      "compiled_code": "\n    \n    \n\nselect *\nfrom `example-project`.`username_private_working_dataset`.`my_second_dbt_model`\nwhere id is null\n\n\n",
+      "created_at": 1692200505.758163,
+      "relation_name": null,
+      "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}",
+      "language": "sql",
+      "refs": [
+        {
+          "name": "my_second_dbt_model",
+          "package": null,
+          "version": null
+        }
+      ],
+      "sources": [],
+      "metrics": [],
+      "depends_on": {
+        "macros": [
+          "macro.dbt.test_not_null",
+          "macro.dbt.get_where_subquery"
+        ],
+        "nodes": [
+          "model.my_new_project.my_second_dbt_model"
+        ]
+      },
+      "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/not_null_my_second_dbt_model_id.sql",
+      "compiled": true,
+      "compiled_code": "\n    \n    \n\n\n\nselect id\nfrom `exampleproject`.`username_private_working_dataset`.`my_second_dbt_model`\nwhere id is null\n\n\n",
       "extra_ctes_injected": true,
       "extra_ctes": [],
-      "relation_name": null,
+      "contract": {
+        "enforced": false,
+        "checksum": null
+      },
       "column_name": "id",
-      "file_key_name": "models.my_second_dbt_model"
+      "file_key_name": "models.my_second_dbt_model",
+      "attached_node": "model.my_new_project.my_second_dbt_model"
     }
   },
   "sources": {},
   "macros": {
     "macro.dbt_bigquery.date_sharded_table": {
-      "unique_id": "macro.dbt_bigquery.date_sharded_table",
+      "name": "date_sharded_table",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/etc.sql",
       "original_file_path": "macros/etc.sql",
-      "name": "date_sharded_table",
+      "unique_id": "macro.dbt_bigquery.date_sharded_table",
       "macro_sql": "{% macro date_sharded_table(base_name) %}\n    {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.22286
+      "created_at": 1692200504.8716958,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.grant_access_to": {
-      "unique_id": "macro.dbt_bigquery.grant_access_to",
+      "name": "grant_access_to",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/etc.sql",
       "original_file_path": "macros/etc.sql",
-      "name": "grant_access_to",
+      "unique_id": "macro.dbt_bigquery.grant_access_to",
       "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n  {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2234921
+      "created_at": 1692200504.8722172,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.get_partitions_metadata": {
-      "unique_id": "macro.dbt_bigquery.get_partitions_metadata",
+      "name": "get_partitions_metadata",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/etc.sql",
       "original_file_path": "macros/etc.sql",
-      "name": "get_partitions_metadata",
+      "unique_id": "macro.dbt_bigquery.get_partitions_metadata",
       "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n  {%- if execute -%}\n    {%- set res = adapter.get_partitions_metadata(table) -%}\n    {{- return(res) -}}\n  {%- endif -%}\n  {{- return(None) -}}\n{%- endmacro -%}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2242692
+      "created_at": 1692200504.872843,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__get_catalog": {
-      "unique_id": "macro.dbt_bigquery.bigquery__get_catalog",
+      "name": "bigquery__get_catalog",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/catalog.sql",
       "original_file_path": "macros/catalog.sql",
-      "name": "bigquery__get_catalog",
-      "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n  {%- if (schemas | length) == 0 -%}\n    {# Hopefully nothing cares about the columns we return when there are no rows #}\n    {%- set query  = \"select 1 as id limit 0\" -%}\n  {%- else -%}\n\n  {%- set query -%}\n    with tables as (\n        select\n            project_id as table_database,\n            dataset_id as table_schema,\n            table_id as original_table_name,\n\n            concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n            row_count,\n            size_bytes as size_bytes,\n            case\n                when type = 1 then 'table'\n                when type = 2 then 'view'\n                else 'external'\n            end as table_type,\n\n            REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n            REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n            REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n        from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n        where (\n          {%- for schema in schemas -%}\n            upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n          {%- endfor -%}\n        )\n    ),\n\n    extracted as (\n\n        select *,\n            case\n                when is_date_shard then shard_base_name\n                else original_table_name\n            end as table_name\n\n        from tables\n\n    ),\n\n    unsharded_tables as (\n\n        select\n            table_database,\n            table_schema,\n            table_name,\n            coalesce(table_type, 'external') as table_type,\n            is_date_shard,\n\n            struct(\n                min(shard_name) as shard_min,\n                max(shard_name) as shard_max,\n                count(*) as shard_count\n            ) as table_shards,\n\n            sum(size_bytes) as size_bytes,\n            sum(row_count) as row_count,\n\n            max(relation_id) as relation_id\n\n        from extracted\n        group by 1,2,3,4,5\n\n    ),\n\n    info_schema_columns as (\n\n        select\n            concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n            table_catalog as table_database,\n            table_schema,\n            table_name,\n\n            -- use the \"real\" column name from the paths query below\n            column_name as base_column_name,\n            ordinal_position as column_index,\n\n            is_partitioning_column,\n            clustering_ordinal_position\n\n        from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n        where ordinal_position is not null\n\n    ),\n\n    info_schema_column_paths as (\n\n        select\n            concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n            field_path as column_name,\n            data_type as column_type,\n            column_name as base_column_name,\n            description as column_comment\n\n        from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n    ),\n\n    columns as (\n\n        select * except (base_column_name)\n        from info_schema_columns\n        join info_schema_column_paths using (relation_id, base_column_name)\n\n    ),\n\n    column_stats as (\n\n        select\n            table_database,\n            table_schema,\n            table_name,\n            max(relation_id) as relation_id,\n            max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n            max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n            max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n            array_to_string(\n                array_agg(\n                    case\n                        when clustering_ordinal_position is not null then column_name\n                        else null\n                    end ignore nulls\n                    order by clustering_ordinal_position\n                ), ', '\n            ) as clustering_columns\n\n        from columns\n        group by 1,2,3\n\n    )\n\n    select\n        unsharded_tables.table_database,\n        unsharded_tables.table_schema,\n        case\n            when is_date_shard then concat(unsharded_tables.table_name, '*')\n            else unsharded_tables.table_name\n        end as table_name,\n        unsharded_tables.table_type,\n\n        -- coalesce name and type for External tables - these columns are not\n        -- present in the COLUMN_FIELD_PATHS resultset\n        coalesce(columns.column_name, '<unknown>') as column_name,\n        -- invent a row number to account for nested fields -- BQ does\n        -- not treat these nested properties as independent fields\n        row_number() over (\n            partition by relation_id\n            order by columns.column_index, columns.column_name\n        ) as column_index,\n        coalesce(columns.column_type, '<unknown>') as column_type,\n        columns.column_comment,\n\n        'Shard count' as `stats__date_shards__label`,\n        table_shards.shard_count as `stats__date_shards__value`,\n        'The number of date shards in this table' as `stats__date_shards__description`,\n        is_date_shard as `stats__date_shards__include`,\n\n        'Shard (min)' as `stats__date_shard_min__label`,\n        table_shards.shard_min as `stats__date_shard_min__value`,\n        'The first date shard in this table' as `stats__date_shard_min__description`,\n        is_date_shard as `stats__date_shard_min__include`,\n\n        'Shard (max)' as `stats__date_shard_max__label`,\n        table_shards.shard_max as `stats__date_shard_max__value`,\n        'The last date shard in this table' as `stats__date_shard_max__description`,\n        is_date_shard as `stats__date_shard_max__include`,\n\n        '# Rows' as `stats__num_rows__label`,\n        row_count as `stats__num_rows__value`,\n        'Approximate count of rows in this table' as `stats__num_rows__description`,\n        (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n        'Approximate Size' as `stats__num_bytes__label`,\n        size_bytes as `stats__num_bytes__value`,\n        'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n        (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n        'Partitioned By' as `stats__partitioning_type__label`,\n        partition_column as `stats__partitioning_type__value`,\n        'The partitioning column for this table' as `stats__partitioning_type__description`,\n        is_partitioned as `stats__partitioning_type__include`,\n\n        'Clustered By' as `stats__clustering_fields__label`,\n        clustering_columns as `stats__clustering_fields__value`,\n        'The clustering columns for this table' as `stats__clustering_fields__description`,\n        is_clustered as `stats__clustering_fields__include`\n\n    -- join using relation_id (an actual relation, not a shard prefix) to make\n    -- sure that column metadata is picked up through the join. This will only\n    -- return the column information for the \"max\" table in a date-sharded table set\n    from unsharded_tables\n    left join columns using (relation_id)\n    left join column_stats using (relation_id)\n  {%- endset -%}\n\n  {%- endif -%}\n\n  {{ return(run_query(query)) }}\n\n{%- endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.bigquery__get_catalog",
+      "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n  {%- if (schemas | length) == 0 -%}\n    {# Hopefully nothing cares about the columns we return when there are no rows #}\n    {%- set query  = \"select 1 as id limit 0\" -%}\n  {%- else -%}\n\n  {%- set query -%}\n    with tables as (\n        select\n            project_id as table_database,\n            dataset_id as table_schema,\n            table_id as original_table_name,\n\n            concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n            row_count,\n            size_bytes as size_bytes,\n            case\n                when type = 1 then 'table'\n                when type = 2 then 'view'\n                else 'external'\n            end as table_type,\n\n            REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n            REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n            REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n        from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n        where (\n          {%- for schema in schemas -%}\n            upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n          {%- endfor -%}\n        )\n    ),\n\n    table_options as (\n        select\n            concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n            JSON_VALUE(option_value) as table_comment\n\n        from {{ information_schema.replace(information_schema_view='TABLE_OPTIONS') }}\n        where option_name = 'description'\n    ),\n    extracted as (\n\n        select *,\n            case\n                when is_date_shard then shard_base_name\n                else original_table_name\n            end as table_name\n\n        from tables\n\n    ),\n\n    unsharded_tables as (\n\n        select\n            table_database,\n            table_schema,\n            table_name,\n            coalesce(table_type, 'external') as table_type,\n            is_date_shard,\n\n            struct(\n                min(shard_name) as shard_min,\n                max(shard_name) as shard_max,\n                count(*) as shard_count\n            ) as table_shards,\n\n            sum(size_bytes) as size_bytes,\n            sum(row_count) as row_count,\n\n            max(relation_id) as relation_id\n\n        from extracted\n        group by 1,2,3,4,5\n\n    ),\n\n    info_schema_columns as (\n\n        select\n            concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n            table_catalog as table_database,\n            table_schema,\n            table_name,\n\n            -- use the \"real\" column name from the paths query below\n            column_name as base_column_name,\n            ordinal_position as column_index,\n\n            is_partitioning_column,\n            clustering_ordinal_position\n\n        from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n        where ordinal_position is not null\n\n    ),\n\n    info_schema_column_paths as (\n\n        select\n            concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n            field_path as column_name,\n            data_type as column_type,\n            column_name as base_column_name,\n            description as column_comment\n\n        from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n    ),\n\n    columns as (\n\n        select * except (base_column_name)\n        from info_schema_columns\n        join info_schema_column_paths using (relation_id, base_column_name)\n\n    ),\n\n    column_stats as (\n\n        select\n            table_database,\n            table_schema,\n            table_name,\n            max(relation_id) as relation_id,\n            max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n            max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n            max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n            array_to_string(\n                array_agg(\n                    case\n                        when clustering_ordinal_position is not null then column_name\n                        else null\n                    end ignore nulls\n                    order by clustering_ordinal_position\n                ), ', '\n            ) as clustering_columns\n\n        from columns\n        group by 1,2,3\n\n    )\n\n    select\n        unsharded_tables.table_database,\n        unsharded_tables.table_schema,\n        case\n            when is_date_shard then concat(unsharded_tables.table_name, '*')\n            else unsharded_tables.table_name\n        end as table_name,\n        unsharded_tables.table_type,\n        table_options.table_comment,\n\n        -- coalesce name and type for External tables - these columns are not\n        -- present in the COLUMN_FIELD_PATHS resultset\n        coalesce(columns.column_name, '<unknown>') as column_name,\n        -- invent a row number to account for nested fields -- BQ does\n        -- not treat these nested properties as independent fields\n        row_number() over (\n            partition by relation_id\n            order by columns.column_index, columns.column_name\n        ) as column_index,\n        coalesce(columns.column_type, '<unknown>') as column_type,\n        columns.column_comment,\n\n        'Shard count' as `stats__date_shards__label`,\n        table_shards.shard_count as `stats__date_shards__value`,\n        'The number of date shards in this table' as `stats__date_shards__description`,\n        is_date_shard as `stats__date_shards__include`,\n\n        'Shard (min)' as `stats__date_shard_min__label`,\n        table_shards.shard_min as `stats__date_shard_min__value`,\n        'The first date shard in this table' as `stats__date_shard_min__description`,\n        is_date_shard as `stats__date_shard_min__include`,\n\n        'Shard (max)' as `stats__date_shard_max__label`,\n        table_shards.shard_max as `stats__date_shard_max__value`,\n        'The last date shard in this table' as `stats__date_shard_max__description`,\n        is_date_shard as `stats__date_shard_max__include`,\n\n        '# Rows' as `stats__num_rows__label`,\n        row_count as `stats__num_rows__value`,\n        'Approximate count of rows in this table' as `stats__num_rows__description`,\n        (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n        'Approximate Size' as `stats__num_bytes__label`,\n        size_bytes as `stats__num_bytes__value`,\n        'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n        (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n        'Partitioned By' as `stats__partitioning_type__label`,\n        partition_column as `stats__partitioning_type__value`,\n        'The partitioning column for this table' as `stats__partitioning_type__description`,\n        is_partitioned as `stats__partitioning_type__include`,\n\n        'Clustered By' as `stats__clustering_fields__label`,\n        clustering_columns as `stats__clustering_fields__value`,\n        'The clustering columns for this table' as `stats__clustering_fields__description`,\n        is_clustered as `stats__clustering_fields__include`\n\n    -- join using relation_id (an actual relation, not a shard prefix) to make\n    -- sure that column metadata is picked up through the join. This will only\n    -- return the column information for the \"max\" table in a date-sharded table set\n    from unsharded_tables\n    left join table_options using (relation_id)\n    left join columns using (relation_id)\n    left join column_stats using (relation_id)\n  {%- endset -%}\n\n  {%- endif -%}\n\n  {{ return(run_query(query)) }}\n\n{%- endmacro %}",
       "depends_on": {
         "macros": [
+          "macro.dbt.replace",
           "macro.dbt.run_query"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2311249
+      "created_at": 1692200504.879898,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.partition_by": {
-      "unique_id": "macro.dbt_bigquery.partition_by",
+      "name": "partition_by",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "partition_by",
+      "unique_id": "macro.dbt_bigquery.partition_by",
       "macro_sql": "{% macro partition_by(partition_config) -%}\n    {%- if partition_config is none -%}\n      {% do return('') %}\n    {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n        partition by {{ partition_config.render() }}\n    {%- elif partition_config.data_type | lower in ('int64') -%}\n        {%- set range = partition_config.range -%}\n        partition by range_bucket(\n            {{ partition_config.field }},\n            generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n        )\n    {%- endif -%}\n{%- endmacro -%}\n\n",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.240895
+      "created_at": 1692200504.8888462,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.cluster_by": {
-      "unique_id": "macro.dbt_bigquery.cluster_by",
+      "name": "cluster_by",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "cluster_by",
+      "unique_id": "macro.dbt_bigquery.cluster_by",
       "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n  {%- if raw_cluster_by is not none -%}\n  cluster by {% if raw_cluster_by is string -%}\n    {% set raw_cluster_by = [raw_cluster_by] %}\n  {%- endif -%}\n  {%- for cluster in raw_cluster_by -%}\n    {{ cluster }}\n    {%- if not loop.last -%}, {% endif -%}\n  {%- endfor -%}\n\n  {% endif %}\n\n{%- endmacro -%}\n\n",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.241778
+      "created_at": 1692200504.889861,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery_options": {
-      "unique_id": "macro.dbt_bigquery.bigquery_options",
+      "name": "bigquery_options",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery_options",
+      "unique_id": "macro.dbt_bigquery.bigquery_options",
       "macro_sql": "{% macro bigquery_options(opts) %}\n  {% set options -%}\n    OPTIONS({% for opt_key, opt_val in opts.items() %}\n      {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n    {% endfor %})\n  {%- endset %}\n  {%- do return(options) -%}\n{%- endmacro -%}\n\n",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.242579
+      "created_at": 1692200504.8909812,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery_table_options": {
-      "unique_id": "macro.dbt_bigquery.bigquery_table_options",
+      "name": "bigquery_table_options",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery_table_options",
+      "unique_id": "macro.dbt_bigquery.bigquery_table_options",
       "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n  {% set opts = adapter.get_table_options(config, node, temporary) %}\n  {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt_bigquery.bigquery_options"
@@ -668,48 +757,53 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.243166
+      "created_at": 1692200504.891778,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__create_table_as": {
-      "unique_id": "macro.dbt_bigquery.bigquery__create_table_as",
+      "name": "bigquery__create_table_as",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__create_table_as",
-      "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, sql) -%}\n  {%- set raw_partition_by = config.get('partition_by', none) -%}\n  {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n  {%- set sql_header = config.get('sql_header', none) -%}\n\n  {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\n  {{ sql_header if sql_header is not none }}\n\n  create or replace table {{ relation }}\n  {{ partition_by(partition_config) }}\n  {{ cluster_by(raw_cluster_by) }}\n  {{ bigquery_table_options(config, model, temporary) }}\n  as (\n    {{ sql }}\n  );\n\n{%- endmacro -%}\n\n",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.bigquery__create_table_as",
+      "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n  {%- if language == 'sql' -%}\n    {%- set raw_partition_by = config.get('partition_by', none) -%}\n    {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n    {%- set sql_header = config.get('sql_header', none) -%}\n\n    {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\n    {{ sql_header if sql_header is not none }}\n\n    create or replace table {{ relation }}\n      {%- set contract_config = config.get('contract') -%}\n      {%- if contract_config.enforced -%}\n        {{ get_assert_columns_equivalent(compiled_code) }}\n        {{ get_table_columns_and_constraints() }}\n        {%- set compiled_code = get_select_subquery(compiled_code) %}\n      {% endif %}\n    {{ partition_by(partition_config) }}\n    {{ cluster_by(raw_cluster_by) }}\n\n    {{ bigquery_table_options(config, model, temporary) }}\n    as (\n      {{ compiled_code }}\n    );\n  {%- elif language == 'python' -%}\n    {#--\n    N.B. Python models _can_ write to temp views HOWEVER they use a different session\n    and have already expired by the time they need to be used (I.E. in merges for incremental models)\n\n    TODO: Deep dive into spark sessions to see if we can reuse a single session for an entire\n    dbt invocation.\n     --#}\n\n    {#-- when a user wants to change the schema of an existing relation, they must intentionally drop the table in the dataset --#}\n    {%- set old_relation = adapter.get_relation(database=relation.database, schema=relation.schema, identifier=relation.identifier) -%}\n    {%- if (old_relation.is_table and (should_full_refresh())) -%}\n      {% do adapter.drop_relation(relation) %}\n    {%- endif -%}\n    {{ py_write_table(compiled_code=compiled_code, target_relation=relation.quote(database=False, schema=False, identifier=False)) }}\n  {%- else -%}\n    {% do exceptions.raise_compiler_error(\"bigquery__create_table_as macro didn't get supported language, it got %s\" % language) %}\n  {%- endif -%}\n\n{%- endmacro -%}\n\n",
       "depends_on": {
         "macros": [
+          "macro.dbt.get_assert_columns_equivalent",
+          "macro.dbt.get_table_columns_and_constraints",
+          "macro.dbt.get_select_subquery",
           "macro.dbt_bigquery.partition_by",
           "macro.dbt_bigquery.cluster_by",
-          "macro.dbt_bigquery.bigquery_table_options"
+          "macro.dbt_bigquery.bigquery_table_options",
+          "macro.dbt.should_full_refresh",
+          "macro.dbt_bigquery.py_write_table"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.244595
+      "created_at": 1692200504.895524,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery_view_options": {
-      "unique_id": "macro.dbt_bigquery.bigquery_view_options",
+      "name": "bigquery_view_options",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery_view_options",
+      "unique_id": "macro.dbt_bigquery.bigquery_view_options",
       "macro_sql": "{% macro bigquery_view_options(config, node) %}\n  {% set opts = adapter.get_view_options(config, node) %}\n  {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt_bigquery.bigquery_options"
@@ -718,90 +812,69 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.245135
+      "created_at": 1692200504.8961349,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__create_view_as": {
-      "unique_id": "macro.dbt_bigquery.bigquery__create_view_as",
-      "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
-      "path": "macros/adapters.sql",
-      "original_file_path": "macros/adapters.sql",
       "name": "bigquery__create_view_as",
-      "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n  {%- set sql_header = config.get('sql_header', none) -%}\n\n  {{ sql_header if sql_header is not none }}\n\n  create or replace view {{ relation }}\n  {{ bigquery_view_options(config, model) }}\n  as {{ sql }};\n\n{% endmacro %}",
       "resource_type": "macro",
-      "tags": [],
-      "depends_on": {
-        "macros": [
-          "macro.dbt_bigquery.bigquery_view_options"
-        ]
-      },
-      "description": "",
-      "meta": {},
-      "docs": {
-        "show": true
-      },
-      "patch_path": null,
-      "arguments": [],
-      "created_at": 1644333973.245857
-    },
-    "macro.dbt_bigquery.bigquery__create_schema": {
-      "unique_id": "macro.dbt_bigquery.bigquery__create_schema",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__create_schema",
-      "macro_sql": "{% macro bigquery__create_schema(relation) -%}\n  {{ adapter.create_schema(relation) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.bigquery__create_view_as",
+      "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n  {%- set sql_header = config.get('sql_header', none) -%}\n\n  {{ sql_header if sql_header is not none }}\n\n  create or replace view {{ relation }}\n  {{ bigquery_view_options(config, model) }}\n  {%- set contract_config = config.get('contract') -%}\n  {%- if contract_config.enforced -%}\n    {{ get_assert_columns_equivalent(sql) }}\n  {%- endif %}\n  as {{ sql }};\n\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt_bigquery.bigquery_view_options",
+          "macro.dbt.get_assert_columns_equivalent"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.246159
+      "created_at": 1692200504.897334,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__drop_schema": {
-      "unique_id": "macro.dbt_bigquery.bigquery__drop_schema",
+      "name": "bigquery__drop_schema",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__drop_schema",
+      "unique_id": "macro.dbt_bigquery.bigquery__drop_schema",
       "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n  {{ adapter.drop_schema(relation) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.246458
+      "created_at": 1692200504.897687,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__drop_relation": {
-      "unique_id": "macro.dbt_bigquery.bigquery__drop_relation",
+      "name": "bigquery__drop_relation",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__drop_relation",
+      "unique_id": "macro.dbt_bigquery.bigquery__drop_relation",
       "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n  {% call statement('drop_relation') -%}\n    drop {{ relation.type }} if exists {{ relation }}\n  {%- endcall %}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt.statement"
@@ -810,154 +883,110 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2469
+      "created_at": 1692200504.898206,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__get_columns_in_relation": {
-      "unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation",
+      "name": "bigquery__get_columns_in_relation",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__get_columns_in_relation",
+      "unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation",
       "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n  {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.247447
+      "created_at": 1692200504.898586,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__list_relations_without_caching": {
-      "unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching",
+      "name": "bigquery__list_relations_without_caching",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__list_relations_without_caching",
+      "unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching",
       "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n  {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.247791
+      "created_at": 1692200504.898957,
+      "supported_languages": null
     },
-    "macro.dbt_bigquery.bigquery__current_timestamp": {
-      "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp",
+    "macro.dbt_bigquery.bigquery__list_schemas": {
+      "name": "bigquery__list_schemas",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__current_timestamp",
-      "macro_sql": "{% macro bigquery__current_timestamp() -%}\n  CURRENT_TIMESTAMP()\n{%- endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.bigquery__list_schemas",
+      "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n  {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.247966
+      "created_at": 1692200504.899352,
+      "supported_languages": null
     },
-    "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {
-      "unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time",
+    "macro.dbt_bigquery.bigquery__check_schema_exists": {
+      "name": "bigquery__check_schema_exists",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__snapshot_string_as_time",
-      "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n    {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n    {{ return(result) }}\n{%- endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
-      "depends_on": {
-        "macros": []
-      },
-      "description": "",
-      "meta": {},
-      "docs": {
-        "show": true
-      },
-      "patch_path": null,
-      "arguments": [],
-      "created_at": 1644333973.248367
-    },
-    "macro.dbt_bigquery.bigquery__list_schemas": {
-      "unique_id": "macro.dbt_bigquery.bigquery__list_schemas",
-      "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
-      "path": "macros/adapters.sql",
-      "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__list_schemas",
-      "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n  {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
-      "depends_on": {
-        "macros": []
-      },
-      "description": "",
-      "meta": {},
-      "docs": {
-        "show": true
-      },
-      "patch_path": null,
-      "arguments": [],
-      "created_at": 1644333973.2487092
-    },
-    "macro.dbt_bigquery.bigquery__check_schema_exists": {
       "unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists",
-      "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
-      "path": "macros/adapters.sql",
-      "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__check_schema_exists",
       "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n  {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.249184
+      "created_at": 1692200504.899803,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__persist_docs": {
-      "unique_id": "macro.dbt_bigquery.bigquery__persist_docs",
+      "name": "bigquery__persist_docs",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__persist_docs",
+      "unique_id": "macro.dbt_bigquery.bigquery__persist_docs",
       "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n  {% if for_columns and config.persist_column_docs() and model.columns %}\n    {% do alter_column_comment(relation, model.columns) %}\n  {% endif %}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt.alter_column_comment"
@@ -966,66 +995,66 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2498188
+      "created_at": 1692200504.900482,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__alter_column_comment": {
-      "unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment",
+      "name": "bigquery__alter_column_comment",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__alter_column_comment",
+      "unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment",
       "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n  {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2501812
+      "created_at": 1692200504.900872,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__rename_relation": {
-      "unique_id": "macro.dbt_bigquery.bigquery__rename_relation",
+      "name": "bigquery__rename_relation",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__rename_relation",
+      "unique_id": "macro.dbt_bigquery.bigquery__rename_relation",
       "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n  {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.250536
+      "created_at": 1692200504.901261,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__alter_relation_add_columns": {
-      "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_add_columns",
+      "name": "bigquery__alter_relation_add_columns",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__alter_relation_add_columns",
-      "macro_sql": "{% macro bigquery__alter_relation_add_columns(relation, add_columns) %}\n  \n  {% set sql -%}\n     \n     alter {{ relation.type }} {{ relation }}\n        {% for column in add_columns %}\n          add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n        {% endfor %}\n  \n  {%- endset -%}\n\n  {{ return(run_query(sql)) }}\n\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_add_columns",
+      "macro_sql": "{% macro bigquery__alter_relation_add_columns(relation, add_columns) %}\n\n  {% set sql -%}\n\n     alter {{ relation.type }} {{ relation }}\n        {% for column in add_columns %}\n          add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n        {% endfor %}\n\n  {%- endset -%}\n\n  {{ return(run_query(sql)) }}\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
           "macro.dbt.run_query"
@@ -1034,22 +1063,22 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.251748
+      "created_at": 1692200504.9023,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__alter_relation_drop_columns": {
-      "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_drop_columns",
+      "name": "bigquery__alter_relation_drop_columns",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__alter_relation_drop_columns",
-      "macro_sql": "{% macro bigquery__alter_relation_drop_columns(relation, drop_columns) %}\n  \n  {% set sql -%}\n     \n     alter {{ relation.type }} {{ relation }}\n\n        {% for column in drop_columns %}\n          drop column {{ column.name }}{{ ',' if not loop.last }}\n        {% endfor %}\n  \n  {%- endset -%}\n  \n  {{ return(run_query(sql)) }}\n\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_drop_columns",
+      "macro_sql": "{% macro bigquery__alter_relation_drop_columns(relation, drop_columns) %}\n\n  {% set sql -%}\n\n     alter {{ relation.type }} {{ relation }}\n\n        {% for column in drop_columns %}\n          drop column {{ column.name }}{{ ',' if not loop.last }}\n        {% endfor %}\n\n  {%- endset -%}\n\n  {{ return(run_query(sql)) }}\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
           "macro.dbt.run_query"
@@ -1058,22 +1087,22 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.252613
+      "created_at": 1692200504.903151,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__alter_column_type": {
-      "unique_id": "macro.dbt_bigquery.bigquery__alter_column_type",
+      "name": "bigquery__alter_column_type",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__alter_column_type",
+      "unique_id": "macro.dbt_bigquery.bigquery__alter_column_type",
       "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n  {#-- Changing a column's data type using a query requires you to scan the entire table.\n    The query charges can be significant if the table is very large.\n\n    https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n  #}\n  {% set relation_columns = get_columns_in_relation(relation) %}\n\n  {% set sql %}\n    select\n      {%- for col in relation_columns -%}\n        {% if col.column == column_name %}\n          CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n        {%- else %}\n          {{ col.quoted }}\n        {%- endif %}\n        {%- if not loop.last %},{% endif -%}\n      {%- endfor %}\n    from {{ relation }}\n  {% endset %}\n\n  {% call statement('alter_column_type') %}\n    {{ create_table_as(False, relation, sql)}}\n  {%- endcall %}\n\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt.get_columns_in_relation",
@@ -1084,132 +1113,157 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.254111
+      "created_at": 1692200504.904642,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__test_unique": {
-      "unique_id": "macro.dbt_bigquery.bigquery__test_unique",
+      "name": "bigquery__test_unique",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/adapters.sql",
       "original_file_path": "macros/adapters.sql",
-      "name": "bigquery__test_unique",
-      "macro_sql": "{% macro bigquery__test_unique(model, column_name) %}\n\nwith dbt_test__target as (\n  \n  select {{ column_name }} as unique_field\n  from {{ model }}\n  where {{ column_name }} is not null\n  \n)\n\nselect\n    unique_field,\n    count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n{% endmacro %}",
+      "unique_id": "macro.dbt_bigquery.bigquery__test_unique",
+      "macro_sql": "{% macro bigquery__test_unique(model, column_name) %}\n\nwith dbt_test__target as (\n\n  select {{ column_name }} as unique_field\n  from {{ model }}\n  where {{ column_name }} is not null\n\n)\n\nselect\n    unique_field,\n    count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.905024,
+      "supported_languages": null
+    },
+    "macro.dbt_bigquery.bigquery__upload_file": {
+      "name": "bigquery__upload_file",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/adapters.sql",
+      "original_file_path": "macros/adapters.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__upload_file",
+      "macro_sql": "{% macro bigquery__upload_file(local_file_path, database, table_schema, table_name) %}\n\n  {{ log(\"kwargs: \" ~ kwargs) }}\n\n  {% do adapter.upload_file(local_file_path, database, table_schema, table_name, kwargs=kwargs) %}\n\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2544892
+      "created_at": 1692200504.905656,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__create_csv_table": {
-      "unique_id": "macro.dbt_bigquery.bigquery__create_csv_table",
+      "name": "bigquery__create_csv_table",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/seed.sql",
       "original_file_path": "macros/materializations/seed.sql",
-      "name": "bigquery__create_csv_table",
+      "unique_id": "macro.dbt_bigquery.bigquery__create_csv_table",
       "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n    -- no-op\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2552278
+      "created_at": 1692200504.9063869,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__reset_csv_table": {
-      "unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table",
+      "name": "bigquery__reset_csv_table",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/seed.sql",
       "original_file_path": "macros/materializations/seed.sql",
-      "name": "bigquery__reset_csv_table",
+      "unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table",
       "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n    {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.255589
+      "created_at": 1692200504.906749,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__load_csv_rows": {
-      "unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows",
+      "name": "bigquery__load_csv_rows",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/seed.sql",
       "original_file_path": "macros/materializations/seed.sql",
-      "name": "bigquery__load_csv_rows",
-      "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n  {%- set column_override = model['config'].get('column_types', {}) -%}\n  {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n  \t\t\t\t\t\t\tagate_table, column_override) }}\n  {% if config.persist_relation_docs() and 'description' in model %}\n\n  \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n  {% endif %}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows",
+      "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n  {%- set column_override = model['config'].get('column_types', {}) -%}\n  {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n  \t\t\t\t\t\t\tagate_table, column_override) }}\n\n  {% call statement() %}\n    alter table {{ this.render() }} set {{ bigquery_table_options(config, model) }}\n  {% endcall %}\n\n  {% if config.persist_relation_docs() and 'description' in model %}\n\n  \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n  {% endif %}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.statement",
+          "macro.dbt_bigquery.bigquery_table_options"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2569542
+      "created_at": 1692200504.908409,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__handle_existing_table": {
-      "unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table",
+      "name": "bigquery__handle_existing_table",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/view.sql",
       "original_file_path": "macros/materializations/view.sql",
-      "name": "bigquery__handle_existing_table",
+      "unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table",
       "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n    {%- if full_refresh -%}\n      {{ adapter.drop_relation(old_relation) }}\n    {%- else -%}\n      {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n    {%- endif -%}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2581959
+      "created_at": 1692200504.9098399,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.materialization_view_bigquery": {
-      "unique_id": "macro.dbt_bigquery.materialization_view_bigquery",
+      "name": "materialization_view_bigquery",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/view.sql",
       "original_file_path": "macros/materializations/view.sql",
-      "name": "materialization_view_bigquery",
-      "macro_sql": "{% materialization view, adapter='bigquery' -%}\n    {% set to_return = create_or_replace_view() %}\n\n    {% set target_relation = this.incorporate(type='view') %}\n    {% do persist_docs(target_relation, model) %}\n\n    {% if config.get('grant_access_to') %}\n      {% for grant_target_dict in config.get('grant_access_to') %}\n        {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n      {% endfor %}\n    {% endif %}\n\n    {% do return(to_return) %}\n\n{%- endmaterialization %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.materialization_view_bigquery",
+      "macro_sql": "{% materialization view, adapter='bigquery' -%}\n    -- grab current tables grants config for comparision later on\n    {% set grant_config = config.get('grants') %}\n\n    {% set to_return = create_or_replace_view() %}\n\n    {% set target_relation = this.incorporate(type='view') %}\n\n    {% do persist_docs(target_relation, model) %}\n\n    {% if config.get('grant_access_to') %}\n      {% for grant_target_dict in config.get('grant_access_to') %}\n        {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n      {% endfor %}\n    {% endif %}\n\n    {% do return(to_return) %}\n\n{%- endmaterialization %}",
       "depends_on": {
         "macros": [
           "macro.dbt.create_or_replace_view",
@@ -1219,168 +1273,204 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2596962
+      "created_at": 1692200504.911347,
+      "supported_languages": [
+        "sql"
+      ]
     },
     "macro.dbt_bigquery.materialization_table_bigquery": {
-      "unique_id": "macro.dbt_bigquery.materialization_table_bigquery",
+      "name": "materialization_table_bigquery",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/table.sql",
       "original_file_path": "macros/materializations/table.sql",
-      "name": "materialization_table_bigquery",
-      "macro_sql": "{% materialization table, adapter='bigquery' -%}\n\n  {%- set identifier = model['alias'] -%}\n  {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n  {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n  {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n\n  {{ run_hooks(pre_hooks) }}\n\n  {#\n      We only need to drop this thing if it is not a table.\n      If it _is_ already a table, then we can overwrite it without downtime\n      Unlike table -> view, no need for `--full-refresh`: dropping a view is no big deal\n  #}\n  {%- if exists_not_as_table -%}\n      {{ adapter.drop_relation(old_relation) }}\n  {%- endif -%}\n\n  -- build model\n  {%- set raw_partition_by = config.get('partition_by', none) -%}\n  {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n  {%- set cluster_by = config.get('cluster_by', none) -%}\n  {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n    {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n    {% do adapter.drop_relation(old_relation) %}\n  {% endif %}\n  {% call statement('main') -%}\n    {{ create_table_as(False, target_relation, sql) }}\n  {% endcall -%}\n\n  {{ run_hooks(post_hooks) }}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.materialization_table_bigquery",
+      "macro_sql": "{% materialization table, adapter='bigquery', supported_languages=['sql', 'python']-%}\n\n  {%- set language = model['language'] -%}\n  {%- set identifier = model['alias'] -%}\n  {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n  {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n  {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n\n  -- grab current tables grants config for comparision later on\n  {%- set grant_config = config.get('grants') -%}\n\n  {{ run_hooks(pre_hooks) }}\n\n  {#\n      We only need to drop this thing if it is not a table.\n      If it _is_ already a table, then we can overwrite it without downtime\n      Unlike table -> view, no need for `--full-refresh`: dropping a view is no big deal\n  #}\n  {%- if exists_not_as_table -%}\n      {{ adapter.drop_relation(old_relation) }}\n  {%- endif -%}\n\n  -- build model\n  {%- set raw_partition_by = config.get('partition_by', none) -%}\n  {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n  {%- set cluster_by = config.get('cluster_by', none) -%}\n  {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n    {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n    {% do adapter.drop_relation(old_relation) %}\n  {% endif %}\n\n  -- build model\n  {%- call statement('main', language=language) -%}\n    {{ create_table_as(False, target_relation, compiled_code, language) }}\n  {%- endcall -%}\n\n  {{ run_hooks(post_hooks) }}\n\n  {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n  {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}",
       "depends_on": {
         "macros": [
           "macro.dbt.run_hooks",
           "macro.dbt.statement",
           "macro.dbt.create_table_as",
+          "macro.dbt.should_revoke",
+          "macro.dbt.apply_grants",
           "macro.dbt.persist_docs"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.917961,
+      "supported_languages": [
+        "sql",
+        "python"
+      ]
+    },
+    "macro.dbt_bigquery.py_write_table": {
+      "name": "py_write_table",
+      "resource_type": "macro",
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/table.sql",
+      "original_file_path": "macros/materializations/table.sql",
+      "unique_id": "macro.dbt_bigquery.py_write_table",
+      "macro_sql": "{% macro py_write_table(compiled_code, target_relation) %}\nfrom pyspark.sql import SparkSession\n\nspark = SparkSession.builder.appName('smallTest').getOrCreate()\n\nspark.conf.set(\"viewsEnabled\",\"true\")\nspark.conf.set(\"temporaryGcsBucket\",\"{{target.gcs_bucket}}\")\n\n{{ compiled_code }}\ndbt = dbtObj(spark.read.format(\"bigquery\").load)\ndf = model(dbt, spark)\n\n# COMMAND ----------\n# this is materialization code dbt generated, please do not modify\n\nimport pyspark\n# make sure pandas exists before using it\ntry:\n  import pandas\n  pandas_available = True\nexcept ImportError:\n  pandas_available = False\n\n# make sure pyspark.pandas exists before using it\ntry:\n  import pyspark.pandas\n  pyspark_pandas_api_available = True\nexcept ImportError:\n  pyspark_pandas_api_available = False\n\n# make sure databricks.koalas exists before using it\ntry:\n  import databricks.koalas\n  koalas_available = True\nexcept ImportError:\n  koalas_available = False\n\n# preferentially convert pandas DataFrames to pandas-on-Spark or Koalas DataFrames first\n# since they know how to convert pandas DataFrames better than `spark.createDataFrame(df)`\n# and converting from pandas-on-Spark to Spark DataFrame has no overhead\nif pyspark_pandas_api_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n  df = pyspark.pandas.frame.DataFrame(df)\nelif koalas_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n  df = databricks.koalas.frame.DataFrame(df)\n\n# convert to pyspark.sql.dataframe.DataFrame\nif isinstance(df, pyspark.sql.dataframe.DataFrame):\n  pass  # since it is already a Spark DataFrame\nelif pyspark_pandas_api_available and isinstance(df, pyspark.pandas.frame.DataFrame):\n  df = df.to_spark()\nelif koalas_available and isinstance(df, databricks.koalas.frame.DataFrame):\n  df = df.to_spark()\nelif pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n  df = spark.createDataFrame(df)\nelse:\n  msg = f\"{type(df)} is not a supported type for dbt Python materialization\"\n  raise Exception(msg)\n\ndf.write \\\n  .mode(\"overwrite\") \\\n  .format(\"bigquery\") \\\n  .option(\"writeMethod\", \"direct\").option(\"writeDisposition\", 'WRITE_TRUNCATE') \\\n  .save(\"{{target_relation}}\")\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.264288
+      "created_at": 1692200504.9186041,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.materialization_copy_bigquery": {
-      "unique_id": "macro.dbt_bigquery.materialization_copy_bigquery",
+      "name": "materialization_copy_bigquery",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/copy.sql",
       "original_file_path": "macros/materializations/copy.sql",
-      "name": "materialization_copy_bigquery",
-      "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n  {# Setup #}\n  {{ run_hooks(pre_hooks) }}\n\n  {% set destination = this.incorporate(type='table') %}\n\n  {# there can be several ref() or source() according to BQ copy API docs #}\n  {# cycle over ref() and source() to create source tables array #}\n  {% set source_array = [] %}\n  {% for ref_table in model.refs %}\n    {{ source_array.append(ref(*ref_table)) }}\n  {% endfor %}\n\n  {% for src_table in model.sources %}\n    {{ source_array.append(source(*src_table)) }}\n  {% endfor %}\n\n  {# Call adapter's copy_table function #}\n  {%- set result_str = adapter.copy_table(\n      source_array,\n      destination,\n      config.get('copy_materialization', default = 'table')) -%}\n\n  {{ store_result('main', response=result_str) }}\n\n  {# Clean up #}\n  {{ run_hooks(post_hooks) }}\n  {{ adapter.commit() }}\n\n  {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.materialization_copy_bigquery",
+      "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n  {# Setup #}\n  {{ run_hooks(pre_hooks) }}\n\n  {% set destination = this.incorporate(type='table') %}\n\n  {# there can be several ref() or source() according to BQ copy API docs #}\n  {# cycle over ref() and source() to create source tables array #}\n  {% set source_array = [] %}\n  {% for ref_table in model.refs %}\n    {{ source_array.append(ref(*ref_table)) }}\n  {% endfor %}\n\n  {% for src_table in model.sources %}\n    {{ source_array.append(source(*src_table)) }}\n  {% endfor %}\n\n  {# Call adapter copy_table function #}\n  {%- set result_str = adapter.copy_table(\n      source_array,\n      destination,\n      config.get('copy_materialization', default = 'table')) -%}\n\n  {{ store_result('main', response=result_str) }}\n\n  {# Clean up #}\n  {{ run_hooks(post_hooks) }}\n  {%- do apply_grants(target_relation, grant_config) -%}\n  {{ adapter.commit() }}\n\n  {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.run_hooks"
+          "macro.dbt.run_hooks",
+          "macro.dbt.apply_grants"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.266804
+      "created_at": 1692200504.9213948,
+      "supported_languages": [
+        "sql"
+      ]
     },
-    "macro.dbt_bigquery.declare_dbt_max_partition": {
-      "unique_id": "macro.dbt_bigquery.declare_dbt_max_partition",
+    "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {
+      "name": "dbt_bigquery_validate_get_incremental_strategy",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/incremental.sql",
       "original_file_path": "macros/materializations/incremental.sql",
-      "name": "declare_dbt_max_partition",
-      "macro_sql": "{% macro declare_dbt_max_partition(relation, partition_by, sql) %}\n\n  {% if '_dbt_max_partition' in sql %}\n\n    declare _dbt_max_partition {{ partition_by.data_type }} default (\n      select max({{ partition_by.field }}) from {{ this }}\n      where {{ partition_by.field }} is not null\n    );\n  \n  {% endif %}\n\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy",
+      "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n  {#-- Find and validate the incremental strategy #}\n  {%- set strategy = config.get(\"incremental_strategy\") or 'merge' -%}\n\n  {% set invalid_strategy_msg -%}\n    Invalid incremental strategy provided: {{ strategy }}\n    Expected one of: 'merge', 'insert_overwrite'\n  {%- endset %}\n  {% if strategy not in ['merge', 'insert_overwrite'] %}\n    {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n  {% endif %}\n\n  {% do return(strategy) %}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2700958
+      "created_at": 1692200504.9263308,
+      "supported_languages": null
     },
-    "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {
-      "unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy",
+    "macro.dbt_bigquery.source_sql_with_partition": {
+      "name": "source_sql_with_partition",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/incremental.sql",
       "original_file_path": "macros/materializations/incremental.sql",
-      "name": "dbt_bigquery_validate_get_incremental_strategy",
-      "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n  {#-- Find and validate the incremental strategy #}\n  {%- set strategy = config.get(\"incremental_strategy\", default=\"merge\") -%}\n\n  {% set invalid_strategy_msg -%}\n    Invalid incremental strategy provided: {{ strategy }}\n    Expected one of: 'merge', 'insert_overwrite'\n  {%- endset %}\n  {% if strategy not in ['merge', 'insert_overwrite'] %}\n    {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n  {% endif %}\n\n  {% do return(strategy) %}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.source_sql_with_partition",
+      "macro_sql": "{% macro source_sql_with_partition(partition_by, source_sql) %}\n\n  {%- if partition_by.time_ingestion_partitioning %}\n    {{ return(wrap_with_time_ingestion_partitioning_sql(build_partition_time_exp(partition_by.field), source_sql, False))  }}\n  {% else %}\n    {{ return(source_sql)  }}\n  {%- endif -%}\n\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql",
+          "macro.dbt_bigquery.build_partition_time_exp"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.271084
+      "created_at": 1692200504.9270551,
+      "supported_languages": null
     },
-    "macro.dbt_bigquery.bq_insert_overwrite": {
-      "unique_id": "macro.dbt_bigquery.bq_insert_overwrite",
+    "macro.dbt_bigquery.bq_create_table_as": {
+      "name": "bq_create_table_as",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/incremental.sql",
       "original_file_path": "macros/materializations/incremental.sql",
-      "name": "bq_insert_overwrite",
-      "macro_sql": "{% macro bq_insert_overwrite(\n    tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n) %}\n\n  {% if partitions is not none and partitions != [] %} {# static #}\n\n      {% set predicate -%}\n          {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in (\n              {{ partitions | join (', ') }}\n          )\n      {%- endset %}\n\n      {%- set source_sql -%}\n        (\n          {{sql}}\n        )\n      {%- endset -%}\n\n      {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n  {% else %} {# dynamic #}\n\n      {% set predicate -%}\n          {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n      {%- endset %}\n\n      {%- set source_sql -%}\n      (\n        select * from {{ tmp_relation }}\n      )\n      {%- endset -%}\n\n      -- generated script to merge partitions into {{ target_relation }}\n      declare dbt_partitions_for_replacement array<{{ partition_by.data_type }}>;\n\n      {# have we already created the temp table to check for schema changes? #}\n      {% if not tmp_relation_exists %}\n        {{ declare_dbt_max_partition(this, partition_by, sql) }}\n        \n        -- 1. create a temp table\n        {{ create_table_as(True, tmp_relation, sql) }}\n      {% else %}\n        -- 1. temp table already exists, we used it to check for schema changes\n      {% endif %}\n\n      -- 2. define partitions to update\n      set (dbt_partitions_for_replacement) = (\n          select as struct\n              array_agg(distinct {{ partition_by.render() }})\n          from {{ tmp_relation }}\n      );\n\n      {#\n        TODO: include_sql_header is a hack; consider a better approach that includes\n              the sql_header at the materialization-level instead\n      #}\n      -- 3. run the merge statement\n      {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=false) }};\n\n      -- 4. clean up the temp table\n      drop table if exists {{ tmp_relation }}\n\n  {% endif %}\n\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.bq_create_table_as",
+      "macro_sql": "{% macro bq_create_table_as(is_time_ingestion_partitioning, temporary, relation, compiled_code, language='sql') %}\n  {% if is_time_ingestion_partitioning and language == 'python' %}\n    {% do exceptions.raise_compiler_error(\n      \"Python models do not support ingestion time partitioning\"\n    ) %}\n  {% endif %}\n  {% if is_time_ingestion_partitioning and language == 'sql' %}\n    {#-- Create the table before inserting data as ingestion time partitioned tables can't be created with the transformed data --#}\n    {% do run_query(create_ingestion_time_partitioned_table_as_sql(temporary, relation, compiled_code)) %}\n    {{ return(bq_insert_into_ingestion_time_partitioned_table_sql(relation, compiled_code)) }}\n  {% else %}\n    {{ return(create_table_as(temporary, relation, compiled_code, language)) }}\n  {% endif %}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.get_insert_overwrite_merge_sql",
-          "macro.dbt_bigquery.declare_dbt_max_partition",
+          "macro.dbt.run_query",
+          "macro.dbt_bigquery.create_ingestion_time_partitioned_table_as_sql",
+          "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql",
           "macro.dbt.create_table_as"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.27394
+      "created_at": 1692200504.928601,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bq_generate_incremental_build_sql": {
-      "unique_id": "macro.dbt_bigquery.bq_generate_incremental_build_sql",
+      "name": "bq_generate_incremental_build_sql",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/incremental.sql",
       "original_file_path": "macros/materializations/incremental.sql",
-      "name": "bq_generate_incremental_build_sql",
-      "macro_sql": "{% macro bq_generate_incremental_build_sql(\n    strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n) %}\n  {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n  {% if strategy == 'insert_overwrite' %}\n\n    {% set missing_partition_msg -%}\n      The 'insert_overwrite' strategy requires the `partition_by` config.\n    {%- endset %}\n    {% if partition_by is none %}\n      {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n    {% endif %}\n\n    {% set build_sql = bq_insert_overwrite(\n        tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, on_schema_change\n    ) %}\n\n  {% else %} {# strategy == 'merge' #}\n    {%- set source_sql -%}\n      {%- if tmp_relation_exists -%}\n        (\n          select * from {{ tmp_relation }}\n        )\n      {%- else -%} {#-- wrap sql in parens to make it a subquery --#}\n        (\n          {{sql}}\n        )\n      {%- endif -%}\n    {%- endset -%}\n\n    {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns) %}\n\n  {% endif %}\n\n  {{ return(build_sql) }}\n\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.bq_generate_incremental_build_sql",
+      "macro_sql": "{% macro bq_generate_incremental_build_sql(\n    strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions, incremental_predicates\n) %}\n  {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n  {% if strategy == 'insert_overwrite' %}\n\n    {% set build_sql = bq_generate_incremental_insert_overwrite_build_sql(\n        tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n    ) %}\n\n  {% else %} {# strategy == 'merge' #}\n\n    {% set build_sql = bq_generate_incremental_merge_build_sql(\n        tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n    ) %}\n\n  {% endif %}\n\n  {{ return(build_sql) }}\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bq_insert_overwrite",
-          "macro.dbt.get_merge_sql"
+          "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql",
+          "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.275883
+      "created_at": 1692200504.930181,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.materialization_incremental_bigquery": {
-      "unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery",
+      "name": "materialization_incremental_bigquery",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/incremental.sql",
       "original_file_path": "macros/materializations/incremental.sql",
-      "name": "materialization_incremental_bigquery",
-      "macro_sql": "{% materialization incremental, adapter='bigquery' -%}\n\n  {%- set unique_key = config.get('unique_key') -%}\n  {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n  {%- set target_relation = this %}\n  {%- set existing_relation = load_relation(this) %}\n  {%- set tmp_relation = make_temp_relation(this) %}\n\n  {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n  {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n  {%- set raw_partition_by = config.get('partition_by', none) -%}\n  {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n  {%- set partitions = config.get('partitions', none) -%}\n  {%- set cluster_by = config.get('cluster_by', none) -%}\n\n  {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n  {{ run_hooks(pre_hooks) }}\n\n  {% if existing_relation is none %}\n      {% set build_sql = create_table_as(False, target_relation, sql) %}\n  \n  {% elif existing_relation.is_view %}\n      {#-- There's no way to atomically replace a view with a table on BQ --#}\n      {{ adapter.drop_relation(existing_relation) }}\n      {% set build_sql = create_table_as(False, target_relation, sql) %}\n  \n  {% elif full_refresh_mode %}\n      {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n      {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n          {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n          {{ adapter.drop_relation(existing_relation) }}\n      {% endif %}\n      {% set build_sql = create_table_as(False, target_relation, sql) %}\n  \n  {% else %}\n    {% set tmp_relation_exists = false %}\n    {% if on_schema_change != 'ignore' %} {# Check first, since otherwise we may not build a temp table #}\n      {% do run_query(\n        declare_dbt_max_partition(this, partition_by, sql) + create_table_as(True, tmp_relation, sql)\n      ) %}\n      {% set tmp_relation_exists = true %}\n      {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n      {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n    {% endif %}\n    {% if not dest_columns %}\n      {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n    {% endif %}\n    {% set build_sql = bq_generate_incremental_build_sql(\n        strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists\n    ) %}\n\n  {% endif %}\n\n  {%- call statement('main') -%}\n    {{ build_sql }}\n  {% endcall %}\n\n  {{ run_hooks(post_hooks) }}\n\n  {% set target_relation = this.incorporate(type='table') %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery",
+      "macro_sql": "{% materialization incremental, adapter='bigquery', supported_languages=['sql', 'python'] -%}\n\n  {%- set unique_key = config.get('unique_key') -%}\n  {%- set full_refresh_mode = (should_full_refresh()) -%}\n  {%- set language = model['language'] %}\n\n  {%- set target_relation = this %}\n  {%- set existing_relation = load_relation(this) %}\n  {%- set tmp_relation = make_temp_relation(this) %}\n\n  {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n  {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n  {%- set raw_partition_by = config.get('partition_by', none) -%}\n  {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n  {%- set partitions = config.get('partitions', none) -%}\n  {%- set cluster_by = config.get('cluster_by', none) -%}\n\n  {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n  {% set incremental_predicates = config.get('predicates', default=none) or config.get('incremental_predicates', default=none) %}\n\n   -- grab current tables grants config for comparison later on\n  {% set grant_config = config.get('grants') %}\n\n  {{ run_hooks(pre_hooks) }}\n\n  {% if partition_by.copy_partitions is true and strategy != 'insert_overwrite' %} {#-- We can't copy partitions with merge strategy --#}\n        {% set wrong_strategy_msg -%}\n        The 'copy_partitions' option requires the 'incremental_strategy' option to be set to 'insert_overwrite'.\n        {%- endset %}\n        {% do exceptions.raise_compiler_error(wrong_strategy_msg) %}\n\n  {% elif existing_relation is none %}\n      {%- call statement('main', language=language) -%}\n        {{ bq_create_table_as(partition_by.time_ingestion_partitioning, False, target_relation, compiled_code, language) }}\n      {%- endcall -%}\n\n  {% elif existing_relation.is_view %}\n      {#-- There's no way to atomically replace a view with a table on BQ --#}\n      {{ adapter.drop_relation(existing_relation) }}\n      {%- call statement('main', language=language) -%}\n        {{ bq_create_table_as(partition_by.time_ingestion_partitioning, False, target_relation, compiled_code, language) }}\n      {%- endcall -%}\n\n  {% elif full_refresh_mode %}\n      {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n      {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n          {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n          {{ adapter.drop_relation(existing_relation) }}\n      {% endif %}\n      {%- call statement('main', language=language) -%}\n        {{ bq_create_table_as(partition_by.time_ingestion_partitioning, False, target_relation, compiled_code, language) }}\n      {%- endcall -%}\n\n  {% else %}\n    {%- if language == 'python' and strategy == 'insert_overwrite' -%}\n      {#-- This lets us move forward assuming no python will be directly templated into a query --#}\n      {%- set python_unsupported_msg -%}\n        The 'insert_overwrite' strategy is not yet supported for python models.\n      {%- endset %}\n      {% do exceptions.raise_compiler_error(python_unsupported_msg) %}\n    {%- endif -%}\n\n    {% set tmp_relation_exists = false %}\n    {% if on_schema_change != 'ignore' or language == 'python' %}\n      {#-- Check first, since otherwise we may not build a temp table --#}\n      {#-- Python always needs to create a temp table --#}\n      {%- call statement('create_tmp_relation', language=language) -%}\n        {{ declare_dbt_max_partition(this, partition_by, compiled_code, language) +\n           bq_create_table_as(partition_by.time_ingestion_partitioning, True, tmp_relation, compiled_code, language)\n        }}\n      {%- endcall -%}\n      {% set tmp_relation_exists = true %}\n      {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n      {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n    {% endif %}\n\n    {% if not dest_columns %}\n      {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n    {% endif %}\n    {% if partition_by.time_ingestion_partitioning %}\n      {% set dest_columns = adapter.add_time_ingestion_partition_column(dest_columns) %}\n    {% endif %}\n    {% set build_sql = bq_generate_incremental_build_sql(\n        strategy, tmp_relation, target_relation, compiled_code, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, partition_by.copy_partitions, incremental_predicates\n    ) %}\n\n    {%- call statement('main') -%}\n      {{ build_sql }}\n    {% endcall %}\n\n    {%- if language == 'python' and tmp_relation -%}\n      {{ adapter.drop_relation(tmp_relation) }}\n    {%- endif -%}\n\n  {% endif %}\n\n  {{ run_hooks(post_hooks) }}\n\n  {% set target_relation = this.incorporate(type='table') %}\n\n  {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n  {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}",
       "depends_on": {
         "macros": [
           "macro.dbt.should_full_refresh",
@@ -1389,78 +1479,82 @@
           "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy",
           "macro.dbt.incremental_validate_on_schema_change",
           "macro.dbt.run_hooks",
-          "macro.dbt.create_table_as",
-          "macro.dbt.run_query",
+          "macro.dbt.statement",
+          "macro.dbt_bigquery.bq_create_table_as",
           "macro.dbt_bigquery.declare_dbt_max_partition",
           "macro.dbt.process_schema_changes",
           "macro.dbt_bigquery.bq_generate_incremental_build_sql",
-          "macro.dbt.statement",
+          "macro.dbt.should_revoke",
+          "macro.dbt.apply_grants",
           "macro.dbt.persist_docs"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.281773
+      "created_at": 1692200504.9394329,
+      "supported_languages": [
+        "sql",
+        "python"
+      ]
     },
     "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {
-      "unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments",
+      "name": "bigquery__snapshot_hash_arguments",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/snapshot.sql",
       "original_file_path": "macros/materializations/snapshot.sql",
-      "name": "bigquery__snapshot_hash_arguments",
+      "unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments",
       "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n  to_hex(md5(concat({%- for arg in args -%}\n    coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n  {%- endfor -%}\n  )))\n{%- endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2827342
+      "created_at": 1692200504.940355,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__create_columns": {
-      "unique_id": "macro.dbt_bigquery.bigquery__create_columns",
+      "name": "bigquery__create_columns",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/snapshot.sql",
       "original_file_path": "macros/materializations/snapshot.sql",
-      "name": "bigquery__create_columns",
+      "unique_id": "macro.dbt_bigquery.bigquery__create_columns",
       "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n  {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.283092
+      "created_at": 1692200504.940716,
+      "supported_languages": null
     },
     "macro.dbt_bigquery.bigquery__post_snapshot": {
-      "unique_id": "macro.dbt_bigquery.bigquery__post_snapshot",
+      "name": "bigquery__post_snapshot",
+      "resource_type": "macro",
       "package_name": "dbt_bigquery",
-      "root_path": "/var/dbt/include/bigquery",
       "path": "macros/materializations/snapshot.sql",
       "original_file_path": "macros/materializations/snapshot.sql",
-      "name": "bigquery__post_snapshot",
+      "unique_id": "macro.dbt_bigquery.bigquery__post_snapshot",
       "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n  -- Clean up the snapshot temp table\n  {% do drop_relation(staging_relation) %}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt.drop_relation"
@@ -1469,3400 +1563,7401 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2833972
+      "created_at": 1692200504.941029,
+      "supported_languages": null
     },
-    "macro.dbt.run_hooks": {
-      "unique_id": "macro.dbt.run_hooks",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/hooks.sql",
-      "original_file_path": "macros/materializations/hooks.sql",
-      "name": "run_hooks",
-      "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n  {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction)  %}\n    {% if not inside_transaction and loop.first %}\n      {% call statement(auto_begin=inside_transaction) %}\n        commit;\n      {% endcall %}\n    {% endif %}\n    {% set rendered = render(hook.get('sql')) | trim %}\n    {% if (rendered | length) > 0 %}\n      {% call statement(auto_begin=inside_transaction) %}\n        {{ rendered }}\n      {% endcall %}\n    {% endif %}\n  {% endfor %}\n{% endmacro %}",
+    "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql": {
+      "name": "bq_generate_incremental_merge_build_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/merge.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/merge.sql",
+      "unique_id": "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql",
+      "macro_sql": "{% macro bq_generate_incremental_merge_build_sql(\n    tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n) %}\n    {%- set source_sql -%}\n        {%- if tmp_relation_exists -%}\n        (\n        select\n        {% if partition_by.time_ingestion_partitioning -%}\n        _PARTITIONTIME,\n        {%- endif -%}\n        * from {{ tmp_relation }}\n        )\n        {%- else -%} {#-- wrap sql in parens to make it a subquery --#}\n        (\n            {%- if partition_by.time_ingestion_partitioning -%}\n            {{ wrap_with_time_ingestion_partitioning_sql(build_partition_time_exp(partition_by), sql, True) }}\n            {%- else -%}\n            {{sql}}\n            {%- endif %}\n        )\n        {%- endif -%}\n    {%- endset -%}\n\n    {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns, incremental_predicates) %}\n\n    {{ return(build_sql) }}\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.statement"
+          "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql",
+          "macro.dbt_bigquery.build_partition_time_exp",
+          "macro.dbt.get_merge_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.285708
+      "created_at": 1692200504.942964,
+      "supported_languages": null
     },
-    "macro.dbt.make_hook_config": {
-      "unique_id": "macro.dbt.make_hook_config",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/hooks.sql",
-      "original_file_path": "macros/materializations/hooks.sql",
-      "name": "make_hook_config",
-      "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n    {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}",
+    "macro.dbt_bigquery.build_partition_time_exp": {
+      "name": "build_partition_time_exp",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/common.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/common.sql",
+      "unique_id": "macro.dbt_bigquery.build_partition_time_exp",
+      "macro_sql": "{% macro build_partition_time_exp(partition_by) %}\n  {% if partition_by.data_type == 'timestamp' %}\n    {% set partition_value = partition_by.field %}\n  {% else %}\n    {% set partition_value = 'timestamp(' + partition_by.field + ')' %}\n  {% endif %}\n  {{ return({'value': partition_value, 'field': partition_by.field}) }}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.286155
+      "created_at": 1692200504.9449248,
+      "supported_languages": null
     },
-    "macro.dbt.before_begin": {
-      "unique_id": "macro.dbt.before_begin",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/hooks.sql",
-      "original_file_path": "macros/materializations/hooks.sql",
-      "name": "before_begin",
-      "macro_sql": "{% macro before_begin(sql) %}\n    {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}",
+    "macro.dbt_bigquery.declare_dbt_max_partition": {
+      "name": "declare_dbt_max_partition",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/common.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/common.sql",
+      "unique_id": "macro.dbt_bigquery.declare_dbt_max_partition",
+      "macro_sql": "{% macro declare_dbt_max_partition(relation, partition_by, compiled_code, language='sql') %}\n\n  {#-- TODO: revisit partitioning with python models --#}\n  {%- if '_dbt_max_partition' in compiled_code and language == 'sql' -%}\n\n    declare _dbt_max_partition {{ partition_by.data_type_for_partition() }} default (\n      select max({{ partition_by.field }}) from {{ this }}\n      where {{ partition_by.field }} is not null\n    );\n\n  {%- endif -%}\n\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.make_hook_config"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.286488
+      "created_at": 1692200504.94574,
+      "supported_languages": null
     },
-    "macro.dbt.in_transaction": {
-      "unique_id": "macro.dbt.in_transaction",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/hooks.sql",
-      "original_file_path": "macros/materializations/hooks.sql",
-      "name": "in_transaction",
-      "macro_sql": "{% macro in_transaction(sql) %}\n    {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}",
+    "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql": {
+      "name": "bq_generate_incremental_insert_overwrite_build_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "unique_id": "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql",
+      "macro_sql": "{% macro bq_generate_incremental_insert_overwrite_build_sql(\n    tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, on_schema_change, copy_partitions\n) %}\n    {% if partition_by is none %}\n      {% set missing_partition_msg -%}\n      The 'insert_overwrite' strategy requires the `partition_by` config.\n      {%- endset %}\n      {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n    {% endif %}\n\n    {% set build_sql = bq_insert_overwrite_sql(\n        tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, on_schema_change, copy_partitions\n    ) %}\n\n    {{ return(build_sql) }}\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.make_hook_config"
+          "macro.dbt_bigquery.bq_insert_overwrite_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.286819
+      "created_at": 1692200504.950429,
+      "supported_languages": null
     },
-    "macro.dbt.after_commit": {
-      "unique_id": "macro.dbt.after_commit",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/hooks.sql",
-      "original_file_path": "macros/materializations/hooks.sql",
-      "name": "after_commit",
-      "macro_sql": "{% macro after_commit(sql) %}\n    {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}",
+    "macro.dbt_bigquery.bq_copy_partitions": {
+      "name": "bq_copy_partitions",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "unique_id": "macro.dbt_bigquery.bq_copy_partitions",
+      "macro_sql": "{% macro bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n\n  {% for partition in partitions %}\n    {% if partition_by.granularity == 'hour' %}\n      {% set partition = partition.strftime(\"%Y%m%d%H\") %}\n    {% elif partition_by.granularity == 'day' %}\n      {% set partition = partition.strftime(\"%Y%m%d\") %}\n    {% elif partition_by.granularity == 'month' %}\n      {% set partition = partition.strftime(\"%Y%m\") %}\n    {% elif partition_by.granularity == 'year' %}\n      {% set partition = partition.strftime(\"%Y\") %}\n    {% endif %}\n    {% set tmp_relation_partitioned = api.Relation.create(database=tmp_relation.database, schema=tmp_relation.schema, identifier=tmp_relation.table ~ '$' ~ partition, type=tmp_relation.type) %}\n    {% set target_relation_partitioned = api.Relation.create(database=target_relation.database, schema=target_relation.schema, identifier=target_relation.table ~ '$' ~ partition, type=target_relation.type) %}\n    {% do adapter.copy_table(tmp_relation_partitioned, target_relation_partitioned, \"table\") %}\n  {% endfor %}\n\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.make_hook_config"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.287152
+      "created_at": 1692200504.9533498,
+      "supported_languages": null
     },
-    "macro.dbt.set_sql_header": {
-      "unique_id": "macro.dbt.set_sql_header",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/configs.sql",
-      "original_file_path": "macros/materializations/configs.sql",
-      "name": "set_sql_header",
-      "macro_sql": "{% macro set_sql_header(config) -%}\n  {{ config.set('sql_header', caller()) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bq_insert_overwrite_sql": {
+      "name": "bq_insert_overwrite_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "unique_id": "macro.dbt_bigquery.bq_insert_overwrite_sql",
+      "macro_sql": "{% macro bq_insert_overwrite_sql(\n    tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n  {% if partitions is not none and partitions != [] %} {# static #}\n      {{ bq_static_insert_overwrite_sql(tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, copy_partitions) }}\n  {% else %} {# dynamic #}\n      {{ bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n  {% endif %}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt_bigquery.bq_static_insert_overwrite_sql",
+          "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2880158
+      "created_at": 1692200504.954705,
+      "supported_languages": null
     },
-    "macro.dbt.should_full_refresh": {
-      "unique_id": "macro.dbt.should_full_refresh",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/configs.sql",
-      "original_file_path": "macros/materializations/configs.sql",
-      "name": "should_full_refresh",
-      "macro_sql": "{% macro should_full_refresh() %}\n  {% set config_full_refresh = config.get('full_refresh') %}\n  {% if config_full_refresh is none %}\n    {% set config_full_refresh = flags.FULL_REFRESH %}\n  {% endif %}\n  {% do return(config_full_refresh) %}\n{% endmacro %}",
+    "macro.dbt_bigquery.bq_static_insert_overwrite_sql": {
+      "name": "bq_static_insert_overwrite_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "unique_id": "macro.dbt_bigquery.bq_static_insert_overwrite_sql",
+      "macro_sql": "{% macro bq_static_insert_overwrite_sql(\n    tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, copy_partitions\n) %}\n\n      {% set predicate -%}\n          {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in (\n              {{ partitions | join (', ') }}\n          )\n      {%- endset %}\n\n      {%- set source_sql -%}\n        (\n          {%- if partition_by.time_ingestion_partitioning -%}\n          {{ wrap_with_time_ingestion_partitioning_sql(build_partition_time_exp(partition_by), sql, True) }}\n          {%- else -%}\n          {{sql}}\n          {%- endif -%}\n        )\n      {%- endset -%}\n\n      {% if copy_partitions %}\n          {% do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n      {% else %}\n\n      {#-- Because we're putting the model SQL _directly_ into the MERGE statement,\n         we need to prepend the MERGE statement with the user-configured sql_header,\n         which may be needed to resolve that model SQL (e.g. referencing a variable or UDF in the header)\n         in the \"dynamic\" case, we save the model SQL result as a temp table first, wherein the\n         sql_header is included by the create_table_as macro.\n      #}\n      {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n  {% endif %}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql",
+          "macro.dbt_bigquery.build_partition_time_exp",
+          "macro.dbt_bigquery.bq_copy_partitions",
+          "macro.dbt.get_insert_overwrite_merge_sql"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.2887092
+      "created_at": 1692200504.9565709,
+      "supported_languages": null
     },
-    "macro.dbt.should_store_failures": {
-      "unique_id": "macro.dbt.should_store_failures",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/configs.sql",
-      "original_file_path": "macros/materializations/configs.sql",
-      "name": "should_store_failures",
-      "macro_sql": "{% macro should_store_failures() %}\n  {% set config_store_failures = config.get('store_failures') %}\n  {% if config_store_failures is none %}\n    {% set config_store_failures = flags.STORE_FAILURES %}\n  {% endif %}\n  {% do return(config_store_failures) %}\n{% endmacro %}",
+    "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql": {
+      "name": "bq_dynamic_copy_partitions_insert_overwrite_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "unique_id": "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql",
+      "macro_sql": "{% macro bq_dynamic_copy_partitions_insert_overwrite_sql(\n  tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions\n  ) %}\n  {# We run temp table creation in a separated script to move to partitions copy #}\n  {%- call statement('create_tmp_relation_for_copy', language='sql') -%}\n    {{ declare_dbt_max_partition(this, partition_by, sql, 'sql') +\n     bq_create_table_as(partition_by.time_ingestion_partitioning, True, tmp_relation, sql, 'sql')\n  }}\n  {%- endcall %}\n  {%- set partitions_sql -%}\n    select distinct {{ partition_by.render_wrapped() }}\n    from {{ tmp_relation }}\n  {%- endset -%}\n  {%- set partitions = run_query(partitions_sql).columns[0].values() -%}\n  {# We copy the partitions #}\n  {%- do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) -%}\n  -- Clean up the temp table\n  drop table if exists {{ tmp_relation }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.statement",
+          "macro.dbt_bigquery.declare_dbt_max_partition",
+          "macro.dbt_bigquery.bq_create_table_as",
+          "macro.dbt.run_query",
+          "macro.dbt_bigquery.bq_copy_partitions"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.28941
+      "created_at": 1692200504.95822,
+      "supported_languages": null
     },
-    "macro.dbt.snapshot_merge_sql": {
-      "unique_id": "macro.dbt.snapshot_merge_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/snapshot_merge.sql",
-      "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql",
-      "name": "snapshot_merge_sql",
-      "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n  {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql": {
+      "name": "bq_dynamic_insert_overwrite_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql",
+      "unique_id": "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql",
+      "macro_sql": "{% macro bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) %}\n  {%- if copy_partitions is true %}\n     {{ bq_dynamic_copy_partitions_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n  {% else -%}\n      {% set predicate -%}\n          {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n      {%- endset %}\n\n      {%- set source_sql -%}\n      (\n        select\n        {% if partition_by.time_ingestion_partitioning -%}\n        _PARTITIONTIME,\n        {%- endif -%}\n        * from {{ tmp_relation }}\n      )\n      {%- endset -%}\n\n      -- generated script to merge partitions into {{ target_relation }}\n      declare dbt_partitions_for_replacement array<{{ partition_by.data_type_for_partition() }}>;\n\n      {# have we already created the temp table to check for schema changes? #}\n      {% if not tmp_relation_exists %}\n        {{ declare_dbt_max_partition(this, partition_by, sql) }}\n\n       -- 1. create a temp table with model data\n        {{ bq_create_table_as(partition_by.time_ingestion_partitioning, True, tmp_relation, sql, 'sql') }}\n      {% else %}\n        -- 1. temp table already exists, we used it to check for schema changes\n      {% endif %}\n\n      -- 2. define partitions to update\n      set (dbt_partitions_for_replacement) = (\n          select as struct\n              -- IGNORE NULLS: this needs to be aligned to _dbt_max_partition, which ignores null\n              array_agg(distinct {{ partition_by.render_wrapped() }} IGNORE NULLS)\n          from {{ tmp_relation }}\n      );\n\n      -- 3. run the merge statement\n      {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate]) }};\n\n      -- 4. clean up the temp table\n      drop table if exists {{ tmp_relation }}\n\n  {% endif %}\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__snapshot_merge_sql"
+          "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql",
+          "macro.dbt_bigquery.declare_dbt_max_partition",
+          "macro.dbt_bigquery.bq_create_table_as",
+          "macro.dbt.get_insert_overwrite_merge_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.290387
+      "created_at": 1692200504.961195,
+      "supported_languages": null
     },
-    "macro.dbt.default__snapshot_merge_sql": {
-      "unique_id": "macro.dbt.default__snapshot_merge_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/snapshot_merge.sql",
-      "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql",
-      "name": "default__snapshot_merge_sql",
-      "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n    {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n    merge into {{ target }} as DBT_INTERNAL_DEST\n    using {{ source }} as DBT_INTERNAL_SOURCE\n    on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n    when matched\n     and DBT_INTERNAL_DEST.dbt_valid_to is null\n     and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n        then update\n        set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n    when not matched\n     and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n        then insert ({{ insert_cols_csv }})\n        values ({{ insert_cols_csv }})\n\n{% endmacro %}",
+    "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql": {
+      "name": "wrap_with_time_ingestion_partitioning_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "unique_id": "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql",
+      "macro_sql": "{% macro wrap_with_time_ingestion_partitioning_sql(partition_time_exp, sql, is_nested) %}\n\n  select {{ partition_time_exp['value'] }} as _partitiontime, * EXCEPT({{ partition_time_exp['field'] }}) from (\n    {{ sql }}\n  ){%- if not is_nested -%};{%- endif -%}\n\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.29099
+      "created_at": 1692200504.9647481,
+      "supported_languages": null
     },
-    "macro.dbt.strategy_dispatch": {
-      "unique_id": "macro.dbt.strategy_dispatch",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "strategy_dispatch",
-      "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n  {% if '.' in name %}\n    {% set package_name, name = name.split(\".\", 1) %}\n  {% else %}\n    {% set package_name = none %}\n  {% endif %}\n\n  {% if package_name is none %}\n    {% set package_context = context %}\n  {% elif package_name in context %}\n    {% set package_context = context[package_name] %}\n  {% else %}\n    {% set error_msg %}\n        Could not find package '{{package_name}}', called with '{{original_name}}'\n    {% endset %}\n    {{ exceptions.raise_compiler_error(error_msg | trim) }}\n  {% endif %}\n\n  {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n  {% if search_name not in package_context %}\n    {% set error_msg %}\n        The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n    {% endset %}\n    {{ exceptions.raise_compiler_error(error_msg | trim) }}\n  {% endif %}\n  {{ return(package_context[search_name]) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.create_ingestion_time_partitioned_table_as_sql": {
+      "name": "create_ingestion_time_partitioned_table_as_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "unique_id": "macro.dbt_bigquery.create_ingestion_time_partitioned_table_as_sql",
+      "macro_sql": "{% macro create_ingestion_time_partitioned_table_as_sql(temporary, relation, sql) -%}\n  {%- set raw_partition_by = config.get('partition_by', none) -%}\n  {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n  {%- set sql_header = config.get('sql_header', none) -%}\n\n  {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\n  {%- set columns = get_columns_with_types_in_query_sql(sql) -%}\n  {%- set table_dest_columns_csv = columns_without_partition_fields_csv(partition_config, columns) -%}\n\n  {{ sql_header if sql_header is not none }}\n\n  {% set ingestion_time_partition_config_raw = fromjson(tojson(raw_partition_by)) %}\n  {% do ingestion_time_partition_config_raw.update({'field':'_PARTITIONTIME'}) %}\n\n  {%- set ingestion_time_partition_config = adapter.parse_partition_by(ingestion_time_partition_config_raw) -%}\n\n  create or replace table {{ relation }} ({{table_dest_columns_csv}})\n  {{ partition_by(ingestion_time_partition_config) }}\n  {{ cluster_by(raw_cluster_by) }}\n  {{ bigquery_table_options(config, model, temporary) }}\n\n{%- endmacro -%}\n\n",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt_bigquery.get_columns_with_types_in_query_sql",
+          "macro.dbt_bigquery.columns_without_partition_fields_csv",
+          "macro.dbt_bigquery.partition_by",
+          "macro.dbt_bigquery.cluster_by",
+          "macro.dbt_bigquery.bigquery_table_options"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.297226
+      "created_at": 1692200504.966963,
+      "supported_languages": null
     },
-    "macro.dbt.snapshot_hash_arguments": {
-      "unique_id": "macro.dbt.snapshot_hash_arguments",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "snapshot_hash_arguments",
-      "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n  {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.get_quoted_with_types_csv": {
+      "name": "get_quoted_with_types_csv",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "unique_id": "macro.dbt_bigquery.get_quoted_with_types_csv",
+      "macro_sql": "{% macro get_quoted_with_types_csv(columns) %}\n    {% set quoted = [] %}\n    {% for col in columns -%}\n        {%- do quoted.append(adapter.quote(col.name) ~ \" \" ~ col.data_type) -%}\n    {%- endfor %}\n    {%- set dest_cols_csv = quoted | join(', ') -%}\n    {{ return(dest_cols_csv) }}\n\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt_bigquery.bigquery__snapshot_hash_arguments"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.297606
+      "created_at": 1692200504.96795,
+      "supported_languages": null
     },
-    "macro.dbt.default__snapshot_hash_arguments": {
-      "unique_id": "macro.dbt.default__snapshot_hash_arguments",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "default__snapshot_hash_arguments",
-      "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n    md5({%- for arg in args -%}\n        coalesce(cast({{ arg }} as varchar ), '')\n        {% if not loop.last %} || '|' || {% endif %}\n    {%- endfor -%})\n{%- endmacro %}",
+    "macro.dbt_bigquery.columns_without_partition_fields_csv": {
+      "name": "columns_without_partition_fields_csv",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "unique_id": "macro.dbt_bigquery.columns_without_partition_fields_csv",
+      "macro_sql": "{% macro columns_without_partition_fields_csv(partition_config, columns) -%}\n  {%- set columns_no_partition = partition_config.reject_partition_field_column(columns) -%}\n  {% set columns_names = get_quoted_with_types_csv(columns_no_partition) %}\n  {{ return(columns_names) }}\n\n{%- endmacro -%}\n\n",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt_bigquery.get_quoted_with_types_csv"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.298115
+      "created_at": 1692200504.9685361,
+      "supported_languages": null
     },
-    "macro.dbt.snapshot_get_time": {
-      "unique_id": "macro.dbt.snapshot_get_time",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "snapshot_get_time",
-      "macro_sql": "{% macro snapshot_get_time() -%}\n  {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql": {
+      "name": "bq_insert_into_ingestion_time_partitioned_table_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "unique_id": "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql",
+      "macro_sql": "{% macro bq_insert_into_ingestion_time_partitioned_table_sql(target_relation, sql) -%}\n  {%- set partition_by = config.get('partition_by', none) -%}\n  {% set dest_columns = adapter.get_columns_in_relation(target_relation) %}\n  {%- set dest_columns_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n  insert into {{ target_relation }} (_partitiontime, {{ dest_columns_csv }})\n    {{ wrap_with_time_ingestion_partitioning_sql(build_partition_time_exp(partition_by), sql, False) }}\n\n{%- endmacro -%}\n\n",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__snapshot_get_time"
+          "macro.dbt.get_quoted_csv",
+          "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql",
+          "macro.dbt_bigquery.build_partition_time_exp"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.298444
+      "created_at": 1692200504.96954,
+      "supported_languages": null
     },
-    "macro.dbt.default__snapshot_get_time": {
-      "unique_id": "macro.dbt.default__snapshot_get_time",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "default__snapshot_get_time",
-      "macro_sql": "{% macro default__snapshot_get_time() -%}\n  {{ current_timestamp() }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.get_columns_with_types_in_query_sql": {
+      "name": "get_columns_with_types_in_query_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql",
+      "unique_id": "macro.dbt_bigquery.get_columns_with_types_in_query_sql",
+      "macro_sql": "{% macro get_columns_with_types_in_query_sql(select_sql) %}\n  {% set sql %}\n    select * from (\n      {{ select_sql }}\n    ) as __dbt_sbq\n    where false\n    limit 0\n  {% endset %}\n  {{ return(adapter.get_columns_in_select_sql(sql)) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.current_timestamp"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.29867
+      "created_at": 1692200504.970059,
+      "supported_languages": null
     },
-    "macro.dbt.snapshot_timestamp_strategy": {
-      "unique_id": "macro.dbt.snapshot_timestamp_strategy",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "snapshot_timestamp_strategy",
-      "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n    {% set primary_key = config['unique_key'] %}\n    {% set updated_at = config['updated_at'] %}\n    {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n    {#/*\n        The snapshot relation might not have an {{ updated_at }} value if the\n        snapshot strategy is changed from `check` to `timestamp`. We\n        should use a dbt-created column for the comparison in the snapshot\n        table instead of assuming that the user-supplied {{ updated_at }}\n        will be present in the historical data.\n\n        See https://github.com/dbt-labs/dbt-core/issues/2350\n    */ #}\n    {% set row_changed_expr -%}\n        ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n    {%- endset %}\n\n    {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n    {% do return({\n        \"unique_key\": primary_key,\n        \"updated_at\": updated_at,\n        \"row_changed\": row_changed_expr,\n        \"scd_id\": scd_id_expr,\n        \"invalidate_hard_deletes\": invalidate_hard_deletes\n    }) %}\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__except": {
+      "name": "bigquery__except",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/except.sql",
+      "original_file_path": "macros/utils/except.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__except",
+      "macro_sql": "{% macro bigquery__except() %}\n\n    except distinct\n\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.snapshot_hash_arguments"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3004422
+      "created_at": 1692200504.970464,
+      "supported_languages": null
     },
-    "macro.dbt.snapshot_string_as_time": {
-      "unique_id": "macro.dbt.snapshot_string_as_time",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "snapshot_string_as_time",
-      "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n    {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__dateadd": {
+      "name": "bigquery__dateadd",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/dateadd.sql",
+      "original_file_path": "macros/utils/dateadd.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__dateadd",
+      "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n        datetime_add(\n            cast( {{ from_date_or_timestamp }} as datetime),\n        interval {{ interval }} {{ datepart }}\n        )\n\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt_bigquery.bigquery__snapshot_string_as_time"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.300822
+      "created_at": 1692200504.971266,
+      "supported_languages": null
     },
-    "macro.dbt.default__snapshot_string_as_time": {
-      "unique_id": "macro.dbt.default__snapshot_string_as_time",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "default__snapshot_string_as_time",
-      "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n    {% do exceptions.raise_not_implemented(\n        'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n    ) %}\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__current_timestamp": {
+      "name": "bigquery__current_timestamp",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/timestamps.sql",
+      "original_file_path": "macros/utils/timestamps.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp",
+      "macro_sql": "{% macro bigquery__current_timestamp() -%}\n  current_timestamp()\n{%- endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3012102
+      "created_at": 1692200504.9716249,
+      "supported_languages": null
     },
-    "macro.dbt.snapshot_check_all_get_existing_columns": {
-      "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "snapshot_check_all_get_existing_columns",
-      "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists) -%}\n    {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n    {%- if not target_exists -%}\n        {# no table yet -> return whatever the query does #}\n        {{ return([false, query_columns]) }}\n    {%- endif -%}\n    {# handle any schema changes #}\n    {%- set target_table = node.get('alias', node.get('name')) -%}\n    {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=target_table) -%}\n    {%- set existing_cols = get_columns_in_query('select * from ' ~ target_relation) -%}\n    {%- set ns = namespace() -%} {# handle for-loop scoping with a namespace #}\n    {%- set ns.column_added = false -%}\n\n    {%- set intersection = [] -%}\n    {%- for col in query_columns -%}\n        {%- if col in existing_cols -%}\n            {%- do intersection.append(col) -%}\n        {%- else -%}\n            {% set ns.column_added = true %}\n        {%- endif -%}\n    {%- endfor -%}\n    {{ return([ns.column_added, intersection]) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {
+      "name": "bigquery__snapshot_string_as_time",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/timestamps.sql",
+      "original_file_path": "macros/utils/timestamps.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time",
+      "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n    {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n    {{ return(result) }}\n{%- endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.get_columns_in_query"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3034081
+      "created_at": 1692200504.972091,
+      "supported_languages": null
     },
-    "macro.dbt.snapshot_check_strategy": {
-      "unique_id": "macro.dbt.snapshot_check_strategy",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/strategies.sql",
-      "original_file_path": "macros/materializations/snapshots/strategies.sql",
-      "name": "snapshot_check_strategy",
-      "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n    {% set check_cols_config = config['check_cols'] %}\n    {% set primary_key = config['unique_key'] %}\n    {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n    \n    {% set select_current_time -%}\n        select {{ snapshot_get_time() }} as snapshot_start\n    {%- endset %}\n\n    {#-- don't access the column by name, to avoid dealing with casing issues on snowflake #}\n    {%- set now = run_query(select_current_time)[0][0] -%}\n    {% if now is none or now is undefined -%}\n        {%- do exceptions.raise_compiler_error('Could not get a snapshot start time from the database') -%}\n    {%- endif %}\n    {% set updated_at = config.get('updated_at', snapshot_string_as_time(now)) %}\n\n    {% set column_added = false %}\n\n    {% if check_cols_config == 'all' %}\n        {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists) %}\n    {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n        {% set check_cols = check_cols_config %}\n    {% else %}\n        {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n    {% endif %}\n\n    {%- set row_changed_expr -%}\n    (\n    {%- if column_added -%}\n        TRUE\n    {%- else -%}\n    {%- for col in check_cols -%}\n        {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n        or\n        (\n            (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n            or\n            ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n        )\n        {%- if not loop.last %} or {% endif -%}\n    {%- endfor -%}\n    {%- endif -%}\n    )\n    {%- endset %}\n\n    {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n    {% do return({\n        \"unique_key\": primary_key,\n        \"updated_at\": updated_at,\n        \"row_changed\": row_changed_expr,\n        \"scd_id\": scd_id_expr,\n        \"invalidate_hard_deletes\": invalidate_hard_deletes\n    }) %}\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__current_timestamp_backcompat": {
+      "name": "bigquery__current_timestamp_backcompat",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/timestamps.sql",
+      "original_file_path": "macros/utils/timestamps.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp_backcompat",
+      "macro_sql": "{% macro bigquery__current_timestamp_backcompat() -%}\n  current_timestamp\n{%- endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.snapshot_get_time",
-          "macro.dbt.run_query",
-          "macro.dbt.snapshot_string_as_time",
-          "macro.dbt.snapshot_check_all_get_existing_columns",
-          "macro.dbt.snapshot_hash_arguments"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3076322
+      "created_at": 1692200504.972329,
+      "supported_languages": null
     },
-    "macro.dbt.create_columns": {
-      "unique_id": "macro.dbt.create_columns",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/helpers.sql",
-      "original_file_path": "macros/materializations/snapshots/helpers.sql",
-      "name": "create_columns",
-      "macro_sql": "{% macro create_columns(relation, columns) %}\n  {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__intersect": {
+      "name": "bigquery__intersect",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/intersect.sql",
+      "original_file_path": "macros/utils/intersect.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__intersect",
+      "macro_sql": "{% macro bigquery__intersect() %}\n\n    intersect distinct\n\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt_bigquery.bigquery__create_columns"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.312842
+      "created_at": 1692200504.972579,
+      "supported_languages": null
     },
-    "macro.dbt.default__create_columns": {
-      "unique_id": "macro.dbt.default__create_columns",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/helpers.sql",
-      "original_file_path": "macros/materializations/snapshots/helpers.sql",
-      "name": "default__create_columns",
-      "macro_sql": "{% macro default__create_columns(relation, columns) %}\n  {% for column in columns %}\n    {% call statement() %}\n      alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n    {% endcall %}\n  {% endfor %}\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__escape_single_quotes": {
+      "name": "bigquery__escape_single_quotes",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/escape_single_quotes.sql",
+      "original_file_path": "macros/utils/escape_single_quotes.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__escape_single_quotes",
+      "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.statement"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3135092
+      "created_at": 1692200504.9730618,
+      "supported_languages": null
     },
-    "macro.dbt.post_snapshot": {
-      "unique_id": "macro.dbt.post_snapshot",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/helpers.sql",
-      "original_file_path": "macros/materializations/snapshots/helpers.sql",
-      "name": "post_snapshot",
-      "macro_sql": "{% macro post_snapshot(staging_relation) %}\n  {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__format_column": {
+      "name": "bigquery__format_column",
       "resource_type": "macro",
-      "tags": [],
-      "depends_on": {
-        "macros": [
-          "macro.dbt_bigquery.bigquery__post_snapshot"
-        ]
-      },
-      "description": "",
-      "meta": {},
-      "docs": {
-        "show": true
-      },
-      "patch_path": null,
-      "arguments": [],
-      "created_at": 1644333973.313917
-    },
-    "macro.dbt.default__post_snapshot": {
-      "unique_id": "macro.dbt.default__post_snapshot",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/helpers.sql",
-      "original_file_path": "macros/materializations/snapshots/helpers.sql",
-      "name": "default__post_snapshot",
-      "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n    {# no-op #}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/get_columns_spec_ddl.sql",
+      "original_file_path": "macros/utils/get_columns_spec_ddl.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__format_column",
+      "macro_sql": "{% macro bigquery__format_column(column) -%}\n  {% set data_type = column.data_type %}\n  {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n  {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}\n\n",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.314125
+      "created_at": 1692200504.9746869,
+      "supported_languages": null
     },
-    "macro.dbt.snapshot_staging_table": {
-      "unique_id": "macro.dbt.snapshot_staging_table",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/helpers.sql",
-      "original_file_path": "macros/materializations/snapshots/helpers.sql",
-      "name": "snapshot_staging_table",
-      "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n  {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__get_empty_schema_sql": {
+      "name": "bigquery__get_empty_schema_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/get_columns_spec_ddl.sql",
+      "original_file_path": "macros/utils/get_columns_spec_ddl.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__get_empty_schema_sql",
+      "macro_sql": "{% macro bigquery__get_empty_schema_sql(columns) %}\n    {%- set col_err = [] -%}\n    {% for col in columns.values() %}\n      {%- if col['data_type'] is not defined -%}\n        {{ col_err.append(col['name']) }}\n      {%- endif -%}\n    {%- endfor -%}\n    {%- if (col_err | length) > 0 -%}\n      {{ exceptions.column_type_missing(column_names=col_err) }}\n    {%- endif -%}\n\n    {%- set columns = adapter.nest_column_data_types(columns) -%}\n    {{ return(dbt.default__get_empty_schema_sql(columns)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__snapshot_staging_table"
+          "macro.dbt.default__get_empty_schema_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.314593
+      "created_at": 1692200504.976097,
+      "supported_languages": null
     },
-    "macro.dbt.default__snapshot_staging_table": {
-      "unique_id": "macro.dbt.default__snapshot_staging_table",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/helpers.sql",
-      "original_file_path": "macros/materializations/snapshots/helpers.sql",
-      "name": "default__snapshot_staging_table",
-      "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n    with snapshot_query as (\n\n        {{ source_sql }}\n\n    ),\n\n    snapshotted_data as (\n\n        select *,\n            {{ strategy.unique_key }} as dbt_unique_key\n\n        from {{ target_relation }}\n        where dbt_valid_to is null\n\n    ),\n\n    insertions_source_data as (\n\n        select\n            *,\n            {{ strategy.unique_key }} as dbt_unique_key,\n            {{ strategy.updated_at }} as dbt_updated_at,\n            {{ strategy.updated_at }} as dbt_valid_from,\n            nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n            {{ strategy.scd_id }} as dbt_scd_id\n\n        from snapshot_query\n    ),\n\n    updates_source_data as (\n\n        select\n            *,\n            {{ strategy.unique_key }} as dbt_unique_key,\n            {{ strategy.updated_at }} as dbt_updated_at,\n            {{ strategy.updated_at }} as dbt_valid_from,\n            {{ strategy.updated_at }} as dbt_valid_to\n\n        from snapshot_query\n    ),\n\n    {%- if strategy.invalidate_hard_deletes %}\n\n    deletes_source_data as (\n\n        select \n            *,\n            {{ strategy.unique_key }} as dbt_unique_key\n        from snapshot_query\n    ),\n    {% endif %}\n\n    insertions as (\n\n        select\n            'insert' as dbt_change_type,\n            source_data.*\n\n        from insertions_source_data as source_data\n        left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n        where snapshotted_data.dbt_unique_key is null\n           or (\n                snapshotted_data.dbt_unique_key is not null\n            and (\n                {{ strategy.row_changed }}\n            )\n        )\n\n    ),\n\n    updates as (\n\n        select\n            'update' as dbt_change_type,\n            source_data.*,\n            snapshotted_data.dbt_scd_id\n\n        from updates_source_data as source_data\n        join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n        where (\n            {{ strategy.row_changed }}\n        )\n    )\n\n    {%- if strategy.invalidate_hard_deletes -%}\n    ,\n\n    deletes as (\n    \n        select\n            'delete' as dbt_change_type,\n            source_data.*,\n            {{ snapshot_get_time() }} as dbt_valid_from,\n            {{ snapshot_get_time() }} as dbt_updated_at,\n            {{ snapshot_get_time() }} as dbt_valid_to,\n            snapshotted_data.dbt_scd_id\n    \n        from snapshotted_data\n        left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n        where source_data.dbt_unique_key is null\n    )\n    {%- endif %}\n\n    select * from insertions\n    union all\n    select * from updates\n    {%- if strategy.invalidate_hard_deletes %}\n    union all\n    select * from deletes\n    {%- endif %}\n\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__get_select_subquery": {
+      "name": "bigquery__get_select_subquery",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/get_columns_spec_ddl.sql",
+      "original_file_path": "macros/utils/get_columns_spec_ddl.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__get_select_subquery",
+      "macro_sql": "{% macro bigquery__get_select_subquery(sql) %}\n    select {{ adapter.dispatch('get_column_names')() }}\n    from (\n        {{ sql }}\n    ) as model_subq\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.snapshot_get_time"
+          "macro.dbt_bigquery.bigquery__get_column_names"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.316499
+      "created_at": 1692200504.976597,
+      "supported_languages": null
     },
-    "macro.dbt.build_snapshot_table": {
-      "unique_id": "macro.dbt.build_snapshot_table",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/helpers.sql",
-      "original_file_path": "macros/materializations/snapshots/helpers.sql",
-      "name": "build_snapshot_table",
-      "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n  {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__get_column_names": {
+      "name": "bigquery__get_column_names",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/get_columns_spec_ddl.sql",
+      "original_file_path": "macros/utils/get_columns_spec_ddl.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__get_column_names",
+      "macro_sql": "{% macro bigquery__get_column_names() %}\n  {#- loop through nested user_provided_columns to get column names -#}\n    {%- set user_provided_columns = adapter.nest_column_data_types(model['columns']) -%}\n    {%- for i in user_provided_columns %}\n      {%- set col = user_provided_columns[i] -%}\n      {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n      {{ col_name }}{{ \", \" if not loop.last }}\n    {%- endfor -%}\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.default__build_snapshot_table"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.316931
+      "created_at": 1692200504.9779918,
+      "supported_languages": null
     },
-    "macro.dbt.default__build_snapshot_table": {
-      "unique_id": "macro.dbt.default__build_snapshot_table",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/helpers.sql",
-      "original_file_path": "macros/materializations/snapshots/helpers.sql",
-      "name": "default__build_snapshot_table",
-      "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n    select *,\n        {{ strategy.scd_id }} as dbt_scd_id,\n        {{ strategy.updated_at }} as dbt_updated_at,\n        {{ strategy.updated_at }} as dbt_valid_from,\n        nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n    from (\n        {{ sql }}\n    ) sbq\n\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__right": {
+      "name": "bigquery__right",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/right.sql",
+      "original_file_path": "macros/utils/right.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__right",
+      "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n    case when {{ length_expression }} = 0\n        then ''\n    else\n        substr(\n            {{ string_text }},\n            -1 * ({{ length_expression }})\n        )\n    end\n\n{%- endmacro -%}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3176682
+      "created_at": 1692200504.978723,
+      "supported_languages": null
     },
-    "macro.dbt.build_snapshot_staging_table": {
-      "unique_id": "macro.dbt.build_snapshot_staging_table",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/helpers.sql",
-      "original_file_path": "macros/materializations/snapshots/helpers.sql",
-      "name": "build_snapshot_staging_table",
-      "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n    {% set tmp_relation = make_temp_relation(target_relation) %}\n\n    {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n    {% call statement('build_snapshot_staging_relation') %}\n        {{ create_table_as(True, tmp_relation, select) }}\n    {% endcall %}\n\n    {% do return(tmp_relation) %}\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__listagg": {
+      "name": "bigquery__listagg",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/listagg.sql",
+      "original_file_path": "macros/utils/listagg.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__listagg",
+      "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n    string_agg(\n        {{ measure }},\n        {{ delimiter_text }}\n        {% if order_by_clause -%}\n        {{ order_by_clause }}\n        {%- endif %}\n        {% if limit_num -%}\n        limit {{ limit_num }}\n        {%- endif %}\n        )\n\n{%- endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.make_temp_relation",
-          "macro.dbt.snapshot_staging_table",
-          "macro.dbt.statement",
-          "macro.dbt.create_table_as"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.318673
+      "created_at": 1692200504.979603,
+      "supported_languages": null
     },
-    "macro.dbt.materialization_snapshot_default": {
-      "unique_id": "macro.dbt.materialization_snapshot_default",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/snapshots/snapshot.sql",
-      "original_file_path": "macros/materializations/snapshots/snapshot.sql",
-      "name": "materialization_snapshot_default",
-      "macro_sql": "{% materialization snapshot, default %}\n  {%- set config = model['config'] -%}\n\n  {%- set target_table = model.get('alias', model.get('name')) -%}\n\n  {%- set strategy_name = config.get('strategy') -%}\n  {%- set unique_key = config.get('unique_key') %}\n\n  {% if not adapter.check_schema_exists(model.database, model.schema) %}\n    {% do create_schema(model.database, model.schema) %}\n  {% endif %}\n\n  {% set target_relation_exists, target_relation = get_or_create_relation(\n          database=model.database,\n          schema=model.schema,\n          identifier=target_table,\n          type='table') -%}\n\n  {%- if not target_relation.is_table -%}\n    {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n  {%- endif -%}\n\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  {% set strategy_macro = strategy_dispatch(strategy_name) %}\n  {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n  {% if not target_relation_exists %}\n\n      {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n      {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n  {% else %}\n\n      {{ adapter.valid_snapshot_target(target_relation) }}\n\n      {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n      -- this may no-op if the database does not require column expansion\n      {% do adapter.expand_target_column_types(from_relation=staging_table,\n                                               to_relation=target_relation) %}\n\n      {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n                                   | rejectattr('name', 'equalto', 'dbt_change_type')\n                                   | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n                                   | rejectattr('name', 'equalto', 'dbt_unique_key')\n                                   | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n                                   | list %}\n\n      {% do create_columns(target_relation, missing_columns) %}\n\n      {% set source_columns = adapter.get_columns_in_relation(staging_table)\n                                   | rejectattr('name', 'equalto', 'dbt_change_type')\n                                   | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n                                   | rejectattr('name', 'equalto', 'dbt_unique_key')\n                                   | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n                                   | list %}\n\n      {% set quoted_source_columns = [] %}\n      {% for column in source_columns %}\n        {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n      {% endfor %}\n\n      {% set final_sql = snapshot_merge_sql(\n            target = target_relation,\n            source = staging_table,\n            insert_cols = quoted_source_columns\n         )\n      %}\n\n  {% endif %}\n\n  {% call statement('main') %}\n      {{ final_sql }}\n  {% endcall %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {% if not target_relation_exists %}\n    {% do create_indexes(target_relation) %}\n  {% endif %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  {{ adapter.commit() }}\n\n  {% if staging_table is defined %}\n      {% do post_snapshot(staging_table) %}\n  {% endif %}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}",
+    "macro.dbt_bigquery.bigquery__datediff": {
+      "name": "bigquery__datediff",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/datediff.sql",
+      "original_file_path": "macros/utils/datediff.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__datediff",
+      "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n  {% if dbt_version[0] == 1 and dbt_version[2] >= 2 %}\n    {{ return(dbt.datediff(first_date, second_date, datepart)) }}\n  {% else %}\n\n    datetime_diff(\n        cast({{second_date}} as datetime),\n        cast({{first_date}} as datetime),\n        {{datepart}}\n    )\n\n  {% endif %}\n\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.create_schema",
-          "macro.dbt.get_or_create_relation",
-          "macro.dbt.run_hooks",
-          "macro.dbt.strategy_dispatch",
-          "macro.dbt.build_snapshot_table",
-          "macro.dbt.create_table_as",
-          "macro.dbt.build_snapshot_staging_table",
-          "macro.dbt.create_columns",
-          "macro.dbt.snapshot_merge_sql",
-          "macro.dbt.statement",
-          "macro.dbt.persist_docs",
-          "macro.dbt.create_indexes",
-          "macro.dbt.post_snapshot"
+          "macro.dbt.datediff"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.330456
+      "created_at": 1692200504.980816,
+      "supported_languages": null
     },
-    "macro.dbt.materialization_test_default": {
-      "unique_id": "macro.dbt.materialization_test_default",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/tests/test.sql",
-      "original_file_path": "macros/materializations/tests/test.sql",
-      "name": "materialization_test_default",
-      "macro_sql": "{%- materialization test, default -%}\n\n  {% set relations = [] %}\n\n  {% if should_store_failures() %}\n\n    {% set identifier = model['alias'] %}\n    {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n    {% set target_relation = api.Relation.create(\n        identifier=identifier, schema=schema, database=database, type='table') -%} %}\n    \n    {% if old_relation %}\n        {% do adapter.drop_relation(old_relation) %}\n    {% endif %}\n    \n    {% call statement(auto_begin=True) %}\n        {{ create_table_as(False, target_relation, sql) }}\n    {% endcall %}\n    \n    {% do relations.append(target_relation) %}\n  \n    {% set main_sql %}\n        select *\n        from {{ target_relation }}\n    {% endset %}\n    \n    {{ adapter.commit() }}\n  \n  {% else %}\n\n      {% set main_sql = sql %}\n  \n  {% endif %}\n\n  {% set limit = config.get('limit') %}\n  {% set fail_calc = config.get('fail_calc') %}\n  {% set warn_if = config.get('warn_if') %}\n  {% set error_if = config.get('error_if') %}\n\n  {% call statement('main', fetch_result=True) -%}\n\n    {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n  {%- endcall %}\n  \n  {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}",
+    "macro.dbt_bigquery.bigquery__safe_cast": {
+      "name": "bigquery__safe_cast",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/safe_cast.sql",
+      "original_file_path": "macros/utils/safe_cast.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__safe_cast",
+      "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n    safe_cast({{field}} as {{type}})\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.should_store_failures",
-          "macro.dbt.statement",
-          "macro.dbt.create_table_as",
-          "macro.dbt.get_test_sql"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.334879
+      "created_at": 1692200504.9812229,
+      "supported_languages": null
     },
-    "macro.dbt.get_test_sql": {
-      "unique_id": "macro.dbt.get_test_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/tests/helpers.sql",
-      "original_file_path": "macros/materializations/tests/helpers.sql",
-      "name": "get_test_sql",
-      "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n  {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__hash": {
+      "name": "bigquery__hash",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/hash.sql",
+      "original_file_path": "macros/utils/hash.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__hash",
+      "macro_sql": "{% macro bigquery__hash(field) -%}\n    to_hex({{dbt.default__hash(field)}})\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__get_test_sql"
+          "macro.dbt.default__hash"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.335917
+      "created_at": 1692200504.981602,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_test_sql": {
-      "unique_id": "macro.dbt.default__get_test_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/tests/helpers.sql",
-      "original_file_path": "macros/materializations/tests/helpers.sql",
-      "name": "default__get_test_sql",
-      "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n    select\n      {{ fail_calc }} as failures,\n      {{ fail_calc }} {{ warn_if }} as should_warn,\n      {{ fail_calc }} {{ error_if }} as should_error\n    from (\n      {{ main_sql }}\n      {{ \"limit \" ~ limit if limit != none }}\n    ) dbt_internal_test\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__position": {
+      "name": "bigquery__position",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/position.sql",
+      "original_file_path": "macros/utils/position.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__position",
+      "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n    strpos(\n        {{ string_text }},\n        {{ substring_text }}\n\n    )\n\n{%- endmacro -%}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3366249
+      "created_at": 1692200504.982018,
+      "supported_languages": null
     },
-    "macro.dbt.get_where_subquery": {
-      "unique_id": "macro.dbt.get_where_subquery",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/tests/where_subquery.sql",
-      "original_file_path": "macros/materializations/tests/where_subquery.sql",
-      "name": "get_where_subquery",
-      "macro_sql": "{% macro get_where_subquery(relation) -%}\n    {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__array_concat": {
+      "name": "bigquery__array_concat",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/array_concat.sql",
+      "original_file_path": "macros/utils/array_concat.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__array_concat",
+      "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n    array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.default__get_where_subquery"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.337507
+      "created_at": 1692200504.982432,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_where_subquery": {
-      "unique_id": "macro.dbt.default__get_where_subquery",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/tests/where_subquery.sql",
-      "original_file_path": "macros/materializations/tests/where_subquery.sql",
-      "name": "default__get_where_subquery",
-      "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n    {% set where = config.get('where', '') %}\n    {% if where %}\n        {%- set filtered -%}\n            (select * from {{ relation }} where {{ where }}) dbt_subquery\n        {%- endset -%}\n        {% do return(filtered) %}\n    {%- else -%}\n        {% do return(relation) %}\n    {%- endif -%}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__bool_or": {
+      "name": "bigquery__bool_or",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/bool_or.sql",
+      "original_file_path": "macros/utils/bool_or.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__bool_or",
+      "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n\n    logical_or({{ expression }})\n\n{%- endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.338378
+      "created_at": 1692200504.982759,
+      "supported_languages": null
     },
-    "macro.dbt.get_quoted_csv": {
-      "unique_id": "macro.dbt.get_quoted_csv",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/column_helpers.sql",
-      "original_file_path": "macros/materializations/models/incremental/column_helpers.sql",
-      "name": "get_quoted_csv",
-      "macro_sql": "{% macro get_quoted_csv(column_names) %}\n    \n    {% set quoted = [] %}\n    {% for col in column_names -%}\n        {%- do quoted.append(adapter.quote(col)) -%}\n    {%- endfor %}\n\n    {%- set dest_cols_csv = quoted | join(', ') -%}\n    {{ return(dest_cols_csv) }}\n\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__split_part": {
+      "name": "bigquery__split_part",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/split_part.sql",
+      "original_file_path": "macros/utils/split_part.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__split_part",
+      "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n  {% if part_number >= 0 %}\n    split(\n        {{ string_text }},\n        {{ delimiter_text }}\n        )[safe_offset({{ part_number - 1 }})]\n  {% else %}\n    split(\n        {{ string_text }},\n        {{ delimiter_text }}\n        )[safe_offset(\n          length({{ string_text }})\n          - length(\n              replace({{ string_text }},  {{ delimiter_text }}, '')\n          ) + 1\n        )]\n  {% endif %}\n\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.340101
+      "created_at": 1692200504.984027,
+      "supported_languages": null
     },
-    "macro.dbt.diff_columns": {
-      "unique_id": "macro.dbt.diff_columns",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/column_helpers.sql",
-      "original_file_path": "macros/materializations/models/incremental/column_helpers.sql",
-      "name": "diff_columns",
-      "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n  {% set result = [] %}\n  {% set source_names = source_columns | map(attribute = 'column') | list %}\n  {% set target_names = target_columns | map(attribute = 'column') | list %}\n   \n   {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n   {% for sc in source_columns %}\n     {% if sc.name not in target_names %}\n        {{ result.append(sc) }}\n     {% endif %}\n   {% endfor %}\n  \n  {{ return(result) }}\n\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__date_trunc": {
+      "name": "bigquery__date_trunc",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/date_trunc.sql",
+      "original_file_path": "macros/utils/date_trunc.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__date_trunc",
+      "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n    timestamp_trunc(\n        cast({{date}} as timestamp),\n        {{datepart}}\n    )\n\n{%- endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.341353
+      "created_at": 1692200504.984475,
+      "supported_languages": null
     },
-    "macro.dbt.diff_column_data_types": {
-      "unique_id": "macro.dbt.diff_column_data_types",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/column_helpers.sql",
-      "original_file_path": "macros/materializations/models/incremental/column_helpers.sql",
-      "name": "diff_column_data_types",
-      "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n  \n  {% set result = [] %}\n  {% for sc in source_columns %}\n    {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n    {% if tc %}\n      {% if sc.data_type != tc.data_type %}\n        {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }} \n      {% endif %}\n    {% endif %}\n  {% endfor %}\n\n  {{ return(result) }}\n\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__array_construct": {
+      "name": "bigquery__array_construct",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/array_construct.sql",
+      "original_file_path": "macros/utils/array_construct.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__array_construct",
+      "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n    {% if inputs|length > 0 %}\n    [ {{ inputs|join(' , ') }} ]\n    {% else %}\n    ARRAY<{{data_type}}>[]\n    {% endif %}\n{%- endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.342745
+      "created_at": 1692200504.985203,
+      "supported_languages": null
     },
-    "macro.dbt.get_merge_sql": {
-      "unique_id": "macro.dbt.get_merge_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/merge.sql",
-      "original_file_path": "macros/materializations/models/incremental/merge.sql",
-      "name": "get_merge_sql",
-      "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n  {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__array_append": {
+      "name": "bigquery__array_append",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/utils/array_append.sql",
+      "original_file_path": "macros/utils/array_append.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__array_append",
+      "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n    {{ array_concat(array, array_construct([new_element])) }}\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__get_merge_sql"
+          "macro.dbt.array_concat",
+          "macro.dbt.array_construct"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.347557
+      "created_at": 1692200504.985749,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_merge_sql": {
-      "unique_id": "macro.dbt.default__get_merge_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/merge.sql",
-      "original_file_path": "macros/materializations/models/incremental/merge.sql",
-      "name": "default__get_merge_sql",
-      "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n    {%- set predicates = [] if predicates is none else [] + predicates -%}\n    {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n    {%- set update_columns = config.get('merge_update_columns', default = dest_columns | map(attribute=\"quoted\") | list) -%}\n    {%- set sql_header = config.get('sql_header', none) -%}\n\n    {% if unique_key %}\n        {% set unique_key_match %}\n            DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n        {% endset %}\n        {% do predicates.append(unique_key_match) %}\n    {% else %}\n        {% do predicates.append('FALSE') %}\n    {% endif %}\n\n    {{ sql_header if sql_header is not none }}\n\n    merge into {{ target }} as DBT_INTERNAL_DEST\n        using {{ source }} as DBT_INTERNAL_SOURCE\n        on {{ predicates | join(' and ') }}\n\n    {% if unique_key %}\n    when matched then update set\n        {% for column_name in update_columns -%}\n            {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n            {%- if not loop.last %}, {%- endif %}\n        {%- endfor %}\n    {% endif %}\n\n    when not matched then insert\n        ({{ dest_cols_csv }})\n    values\n        ({{ dest_cols_csv }})\n\n{% endmacro %}",
+    "macro.dbt_bigquery.bigquery__get_show_grant_sql": {
+      "name": "bigquery__get_show_grant_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__get_show_grant_sql",
+      "macro_sql": "{% macro bigquery__get_show_grant_sql(relation) %}\n    {% set location = adapter.get_dataset_location(relation) %}\n    {% set relation = relation.incorporate(location=location) %}\n\n    select privilege_type, grantee\n    from {{ relation.information_schema(\"OBJECT_PRIVILEGES\") }}\n    where object_schema = \"{{ relation.dataset }}\"\n      and object_name = \"{{ relation.identifier }}\"\n      -- filter out current user\n      and split(grantee, ':')[offset(1)] != session_user()\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.get_quoted_csv"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.350158
+      "created_at": 1692200504.9872189,
+      "supported_languages": null
     },
-    "macro.dbt.get_delete_insert_merge_sql": {
-      "unique_id": "macro.dbt.get_delete_insert_merge_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/merge.sql",
-      "original_file_path": "macros/materializations/models/incremental/merge.sql",
-      "name": "get_delete_insert_merge_sql",
-      "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n  {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__get_grant_sql": {
+      "name": "bigquery__get_grant_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__get_grant_sql",
+      "macro_sql": "\n\n\n{%- macro bigquery__get_grant_sql(relation, privilege, grantee) -%}\n    grant `{{ privilege }}` on {{ relation.type }} {{ relation }} to {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}\n\n",
       "depends_on": {
-        "macros": [
-          "macro.dbt.default__get_delete_insert_merge_sql"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.350688
+      "created_at": 1692200504.9878342,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_delete_insert_merge_sql": {
-      "unique_id": "macro.dbt.default__get_delete_insert_merge_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/merge.sql",
-      "original_file_path": "macros/materializations/models/incremental/merge.sql",
-      "name": "default__get_delete_insert_merge_sql",
-      "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n    {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n    {% if unique_key is not none %}\n    delete from {{ target }}\n    where ({{ unique_key }}) in (\n        select ({{ unique_key }})\n        from {{ source }}\n    );\n    {% endif %}\n\n    insert into {{ target }} ({{ dest_cols_csv }})\n    (\n        select {{ dest_cols_csv }}\n        from {{ source }}\n    )\n\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__get_revoke_sql": {
+      "name": "bigquery__get_revoke_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__get_revoke_sql",
+      "macro_sql": "{%- macro bigquery__get_revoke_sql(relation, privilege, grantee) -%}\n    revoke `{{ privilege }}` on {{ relation.type }} {{ relation }} from {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.get_quoted_csv"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.351664
+      "created_at": 1692200504.988457,
+      "supported_languages": null
     },
-    "macro.dbt.get_insert_overwrite_merge_sql": {
-      "unique_id": "macro.dbt.get_insert_overwrite_merge_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/merge.sql",
-      "original_file_path": "macros/materializations/models/incremental/merge.sql",
-      "name": "get_insert_overwrite_merge_sql",
-      "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n  {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}",
+    "macro.dbt_bigquery.bigquery__resolve_model_name": {
+      "name": "bigquery__resolve_model_name",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt_bigquery",
+      "path": "macros/python_model/python.sql",
+      "original_file_path": "macros/python_model/python.sql",
+      "unique_id": "macro.dbt_bigquery.bigquery__resolve_model_name",
+      "macro_sql": "{% macro bigquery__resolve_model_name(input_model_name) -%}\n    {{ input_model_name | string | replace('`', '') | replace('\"', '\\\"') }}\n{%- endmacro -%}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.default__get_insert_overwrite_merge_sql"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.352532
+      "created_at": 1692200504.989027,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_insert_overwrite_merge_sql": {
-      "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/merge.sql",
-      "original_file_path": "macros/materializations/models/incremental/merge.sql",
-      "name": "default__get_insert_overwrite_merge_sql",
-      "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n    {%- set predicates = [] if predicates is none else [] + predicates -%}\n    {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n    {%- set sql_header = config.get('sql_header', none) -%}\n\n    {{ sql_header if sql_header is not none and include_sql_header }}\n\n    merge into {{ target }} as DBT_INTERNAL_DEST\n        using {{ source }} as DBT_INTERNAL_SOURCE\n        on FALSE\n\n    when not matched by source\n        {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n        then delete\n\n    when not matched then insert\n        ({{ dest_cols_csv }})\n    values\n        ({{ dest_cols_csv }})\n\n{% endmacro %}",
+    "macro.dbt.run_hooks": {
+      "name": "run_hooks",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/materializations/hooks.sql",
+      "original_file_path": "macros/materializations/hooks.sql",
+      "unique_id": "macro.dbt.run_hooks",
+      "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n  {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction)  %}\n    {% if not inside_transaction and loop.first %}\n      {% call statement(auto_begin=inside_transaction) %}\n        commit;\n      {% endcall %}\n    {% endif %}\n    {% set rendered = render(hook.get('sql')) | trim %}\n    {% if (rendered | length) > 0 %}\n      {% call statement(auto_begin=inside_transaction) %}\n        {{ rendered }}\n      {% endcall %}\n    {% endif %}\n  {% endfor %}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.get_quoted_csv"
+          "macro.dbt.statement"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3539681
+      "created_at": 1692200504.991325,
+      "supported_languages": null
     },
-    "macro.dbt.is_incremental": {
-      "unique_id": "macro.dbt.is_incremental",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
+    "macro.dbt.make_hook_config": {
+      "name": "make_hook_config",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/hooks.sql",
+      "original_file_path": "macros/materializations/hooks.sql",
+      "unique_id": "macro.dbt.make_hook_config",
+      "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n    {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.991769,
+      "supported_languages": null
+    },
+    "macro.dbt.before_begin": {
+      "name": "before_begin",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/hooks.sql",
+      "original_file_path": "macros/materializations/hooks.sql",
+      "unique_id": "macro.dbt.before_begin",
+      "macro_sql": "{% macro before_begin(sql) %}\n    {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.make_hook_config"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.992107,
+      "supported_languages": null
+    },
+    "macro.dbt.in_transaction": {
+      "name": "in_transaction",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/hooks.sql",
+      "original_file_path": "macros/materializations/hooks.sql",
+      "unique_id": "macro.dbt.in_transaction",
+      "macro_sql": "{% macro in_transaction(sql) %}\n    {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.make_hook_config"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.992453,
+      "supported_languages": null
+    },
+    "macro.dbt.after_commit": {
+      "name": "after_commit",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/hooks.sql",
+      "original_file_path": "macros/materializations/hooks.sql",
+      "unique_id": "macro.dbt.after_commit",
+      "macro_sql": "{% macro after_commit(sql) %}\n    {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.make_hook_config"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.992788,
+      "supported_languages": null
+    },
+    "macro.dbt.set_sql_header": {
+      "name": "set_sql_header",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/configs.sql",
+      "original_file_path": "macros/materializations/configs.sql",
+      "unique_id": "macro.dbt.set_sql_header",
+      "macro_sql": "{% macro set_sql_header(config) -%}\n  {{ config.set('sql_header', caller()) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.993531,
+      "supported_languages": null
+    },
+    "macro.dbt.should_full_refresh": {
+      "name": "should_full_refresh",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/configs.sql",
+      "original_file_path": "macros/materializations/configs.sql",
+      "unique_id": "macro.dbt.should_full_refresh",
+      "macro_sql": "{% macro should_full_refresh() %}\n  {% set config_full_refresh = config.get('full_refresh') %}\n  {% if config_full_refresh is none %}\n    {% set config_full_refresh = flags.FULL_REFRESH %}\n  {% endif %}\n  {% do return(config_full_refresh) %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.9943712,
+      "supported_languages": null
+    },
+    "macro.dbt.should_store_failures": {
+      "name": "should_store_failures",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/configs.sql",
+      "original_file_path": "macros/materializations/configs.sql",
+      "unique_id": "macro.dbt.should_store_failures",
+      "macro_sql": "{% macro should_store_failures() %}\n  {% set config_store_failures = config.get('store_failures') %}\n  {% if config_store_failures is none %}\n    {% set config_store_failures = flags.STORE_FAILURES %}\n  {% endif %}\n  {% do return(config_store_failures) %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.995063,
+      "supported_languages": null
+    },
+    "macro.dbt.snapshot_merge_sql": {
+      "name": "snapshot_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/snapshot_merge.sql",
+      "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql",
+      "unique_id": "macro.dbt.snapshot_merge_sql",
+      "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n  {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__snapshot_merge_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.996087,
+      "supported_languages": null
+    },
+    "macro.dbt.default__snapshot_merge_sql": {
+      "name": "default__snapshot_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/snapshot_merge.sql",
+      "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql",
+      "unique_id": "macro.dbt.default__snapshot_merge_sql",
+      "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n    {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n    merge into {{ target }} as DBT_INTERNAL_DEST\n    using {{ source }} as DBT_INTERNAL_SOURCE\n    on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n    when matched\n     and DBT_INTERNAL_DEST.dbt_valid_to is null\n     and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n        then update\n        set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n    when not matched\n     and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n        then insert ({{ insert_cols_csv }})\n        values ({{ insert_cols_csv }})\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200504.996695,
+      "supported_languages": null
+    },
+    "macro.dbt.strategy_dispatch": {
+      "name": "strategy_dispatch",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/strategies.sql",
+      "original_file_path": "macros/materializations/snapshots/strategies.sql",
+      "unique_id": "macro.dbt.strategy_dispatch",
+      "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n  {% if '.' in name %}\n    {% set package_name, name = name.split(\".\", 1) %}\n  {% else %}\n    {% set package_name = none %}\n  {% endif %}\n\n  {% if package_name is none %}\n    {% set package_context = context %}\n  {% elif package_name in context %}\n    {% set package_context = context[package_name] %}\n  {% else %}\n    {% set error_msg %}\n        Could not find package '{{package_name}}', called with '{{original_name}}'\n    {% endset %}\n    {{ exceptions.raise_compiler_error(error_msg | trim) }}\n  {% endif %}\n\n  {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n  {% if search_name not in package_context %}\n    {% set error_msg %}\n        The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n    {% endset %}\n    {{ exceptions.raise_compiler_error(error_msg | trim) }}\n  {% endif %}\n  {{ return(package_context[search_name]) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.00327,
+      "supported_languages": null
+    },
+    "macro.dbt.snapshot_hash_arguments": {
+      "name": "snapshot_hash_arguments",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/strategies.sql",
+      "original_file_path": "macros/materializations/snapshots/strategies.sql",
+      "unique_id": "macro.dbt.snapshot_hash_arguments",
+      "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n  {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__snapshot_hash_arguments"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.003693,
+      "supported_languages": null
+    },
+    "macro.dbt.default__snapshot_hash_arguments": {
+      "name": "default__snapshot_hash_arguments",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/strategies.sql",
+      "original_file_path": "macros/materializations/snapshots/strategies.sql",
+      "unique_id": "macro.dbt.default__snapshot_hash_arguments",
+      "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n    md5({%- for arg in args -%}\n        coalesce(cast({{ arg }} as varchar ), '')\n        {% if not loop.last %} || '|' || {% endif %}\n    {%- endfor -%})\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0042188,
+      "supported_languages": null
+    },
+    "macro.dbt.snapshot_timestamp_strategy": {
+      "name": "snapshot_timestamp_strategy",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/strategies.sql",
+      "original_file_path": "macros/materializations/snapshots/strategies.sql",
+      "unique_id": "macro.dbt.snapshot_timestamp_strategy",
+      "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n    {% set primary_key = config['unique_key'] %}\n    {% set updated_at = config['updated_at'] %}\n    {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n    {#/*\n        The snapshot relation might not have an {{ updated_at }} value if the\n        snapshot strategy is changed from `check` to `timestamp`. We\n        should use a dbt-created column for the comparison in the snapshot\n        table instead of assuming that the user-supplied {{ updated_at }}\n        will be present in the historical data.\n\n        See https://github.com/dbt-labs/dbt-core/issues/2350\n    */ #}\n    {% set row_changed_expr -%}\n        ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n    {%- endset %}\n\n    {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n    {% do return({\n        \"unique_key\": primary_key,\n        \"updated_at\": updated_at,\n        \"row_changed\": row_changed_expr,\n        \"scd_id\": scd_id_expr,\n        \"invalidate_hard_deletes\": invalidate_hard_deletes\n    }) %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.snapshot_hash_arguments"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.005823,
+      "supported_languages": null
+    },
+    "macro.dbt.snapshot_string_as_time": {
+      "name": "snapshot_string_as_time",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/strategies.sql",
+      "original_file_path": "macros/materializations/snapshots/strategies.sql",
+      "unique_id": "macro.dbt.snapshot_string_as_time",
+      "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n    {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__snapshot_string_as_time"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.00621,
+      "supported_languages": null
+    },
+    "macro.dbt.default__snapshot_string_as_time": {
+      "name": "default__snapshot_string_as_time",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/strategies.sql",
+      "original_file_path": "macros/materializations/snapshots/strategies.sql",
+      "unique_id": "macro.dbt.default__snapshot_string_as_time",
+      "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n    {% do exceptions.raise_not_implemented(\n        'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n    ) %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0066109,
+      "supported_languages": null
+    },
+    "macro.dbt.snapshot_check_all_get_existing_columns": {
+      "name": "snapshot_check_all_get_existing_columns",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/strategies.sql",
+      "original_file_path": "macros/materializations/snapshots/strategies.sql",
+      "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns",
+      "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n    {%- if not target_exists -%}\n        {#-- no table yet -> return whatever the query does --#}\n        {{ return((false, query_columns)) }}\n    {%- endif -%}\n\n    {#-- handle any schema changes --#}\n    {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n    {% if check_cols_config == 'all' %}\n        {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n    {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n        {#-- query for proper casing/quoting, to support comparison below --#}\n        {%- set select_check_cols_from_target -%}\n            {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n            {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n            select {{ check_cols_config | join(', ') }} from (\n                {{ node['compiled_code'] }}\n            ) subq\n        {%- endset -%}\n        {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n    {% else %}\n        {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n    {% endif %}\n\n    {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n    {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n    {%- set ns.column_added = false -%}\n\n    {%- set intersection = [] -%}\n    {%- for col in query_columns -%}\n        {%- if col in existing_cols -%}\n            {%- do intersection.append(adapter.quote(col)) -%}\n        {%- else -%}\n            {% set ns.column_added = true %}\n        {%- endif -%}\n    {%- endfor -%}\n    {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_columns_in_query"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0098948,
+      "supported_languages": null
+    },
+    "macro.dbt.snapshot_check_strategy": {
+      "name": "snapshot_check_strategy",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/strategies.sql",
+      "original_file_path": "macros/materializations/snapshots/strategies.sql",
+      "unique_id": "macro.dbt.snapshot_check_strategy",
+      "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n    {% set check_cols_config = config['check_cols'] %}\n    {% set primary_key = config['unique_key'] %}\n    {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n    {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n    {% set column_added = false %}\n\n    {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n    {%- set row_changed_expr -%}\n    (\n    {%- if column_added -%}\n        {{ get_true_sql() }}\n    {%- else -%}\n    {%- for col in check_cols -%}\n        {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n        or\n        (\n            (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n            or\n            ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n        )\n        {%- if not loop.last %} or {% endif -%}\n    {%- endfor -%}\n    {%- endif -%}\n    )\n    {%- endset %}\n\n    {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n    {% do return({\n        \"unique_key\": primary_key,\n        \"updated_at\": updated_at,\n        \"row_changed\": row_changed_expr,\n        \"scd_id\": scd_id_expr,\n        \"invalidate_hard_deletes\": invalidate_hard_deletes\n    }) %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.snapshot_get_time",
+          "macro.dbt.snapshot_check_all_get_existing_columns",
+          "macro.dbt.get_true_sql",
+          "macro.dbt.snapshot_hash_arguments"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.013802,
+      "supported_languages": null
+    },
+    "macro.dbt.create_columns": {
+      "name": "create_columns",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.create_columns",
+      "macro_sql": "{% macro create_columns(relation, columns) %}\n  {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__create_columns"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.020548,
+      "supported_languages": null
+    },
+    "macro.dbt.default__create_columns": {
+      "name": "default__create_columns",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.default__create_columns",
+      "macro_sql": "{% macro default__create_columns(relation, columns) %}\n  {% for column in columns %}\n    {% call statement() %}\n      alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n    {% endcall %}\n  {% endfor %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.statement"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.021208,
+      "supported_languages": null
+    },
+    "macro.dbt.post_snapshot": {
+      "name": "post_snapshot",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.post_snapshot",
+      "macro_sql": "{% macro post_snapshot(staging_relation) %}\n  {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__post_snapshot"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.021594,
+      "supported_languages": null
+    },
+    "macro.dbt.default__post_snapshot": {
+      "name": "default__post_snapshot",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.default__post_snapshot",
+      "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n    {# no-op #}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.021811,
+      "supported_languages": null
+    },
+    "macro.dbt.get_true_sql": {
+      "name": "get_true_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.get_true_sql",
+      "macro_sql": "{% macro get_true_sql() %}\n  {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_true_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.022153,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_true_sql": {
+      "name": "default__get_true_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.default__get_true_sql",
+      "macro_sql": "{% macro default__get_true_sql() %}\n    {{ return('TRUE') }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.022434,
+      "supported_languages": null
+    },
+    "macro.dbt.snapshot_staging_table": {
+      "name": "snapshot_staging_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.snapshot_staging_table",
+      "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n  {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__snapshot_staging_table"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.022902,
+      "supported_languages": null
+    },
+    "macro.dbt.default__snapshot_staging_table": {
+      "name": "default__snapshot_staging_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.default__snapshot_staging_table",
+      "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n    with snapshot_query as (\n\n        {{ source_sql }}\n\n    ),\n\n    snapshotted_data as (\n\n        select *,\n            {{ strategy.unique_key }} as dbt_unique_key\n\n        from {{ target_relation }}\n        where dbt_valid_to is null\n\n    ),\n\n    insertions_source_data as (\n\n        select\n            *,\n            {{ strategy.unique_key }} as dbt_unique_key,\n            {{ strategy.updated_at }} as dbt_updated_at,\n            {{ strategy.updated_at }} as dbt_valid_from,\n            nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n            {{ strategy.scd_id }} as dbt_scd_id\n\n        from snapshot_query\n    ),\n\n    updates_source_data as (\n\n        select\n            *,\n            {{ strategy.unique_key }} as dbt_unique_key,\n            {{ strategy.updated_at }} as dbt_updated_at,\n            {{ strategy.updated_at }} as dbt_valid_from,\n            {{ strategy.updated_at }} as dbt_valid_to\n\n        from snapshot_query\n    ),\n\n    {%- if strategy.invalidate_hard_deletes %}\n\n    deletes_source_data as (\n\n        select\n            *,\n            {{ strategy.unique_key }} as dbt_unique_key\n        from snapshot_query\n    ),\n    {% endif %}\n\n    insertions as (\n\n        select\n            'insert' as dbt_change_type,\n            source_data.*\n\n        from insertions_source_data as source_data\n        left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n        where snapshotted_data.dbt_unique_key is null\n           or (\n                snapshotted_data.dbt_unique_key is not null\n            and (\n                {{ strategy.row_changed }}\n            )\n        )\n\n    ),\n\n    updates as (\n\n        select\n            'update' as dbt_change_type,\n            source_data.*,\n            snapshotted_data.dbt_scd_id\n\n        from updates_source_data as source_data\n        join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n        where (\n            {{ strategy.row_changed }}\n        )\n    )\n\n    {%- if strategy.invalidate_hard_deletes -%}\n    ,\n\n    deletes as (\n\n        select\n            'delete' as dbt_change_type,\n            source_data.*,\n            {{ snapshot_get_time() }} as dbt_valid_from,\n            {{ snapshot_get_time() }} as dbt_updated_at,\n            {{ snapshot_get_time() }} as dbt_valid_to,\n            snapshotted_data.dbt_scd_id\n\n        from snapshotted_data\n        left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n        where source_data.dbt_unique_key is null\n    )\n    {%- endif %}\n\n    select * from insertions\n    union all\n    select * from updates\n    {%- if strategy.invalidate_hard_deletes %}\n    union all\n    select * from deletes\n    {%- endif %}\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.snapshot_get_time"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0247989,
+      "supported_languages": null
+    },
+    "macro.dbt.build_snapshot_table": {
+      "name": "build_snapshot_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.build_snapshot_table",
+      "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n  {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__build_snapshot_table"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.025228,
+      "supported_languages": null
+    },
+    "macro.dbt.default__build_snapshot_table": {
+      "name": "default__build_snapshot_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.default__build_snapshot_table",
+      "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n    select *,\n        {{ strategy.scd_id }} as dbt_scd_id,\n        {{ strategy.updated_at }} as dbt_updated_at,\n        {{ strategy.updated_at }} as dbt_valid_from,\n        nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n    from (\n        {{ sql }}\n    ) sbq\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0258062,
+      "supported_languages": null
+    },
+    "macro.dbt.build_snapshot_staging_table": {
+      "name": "build_snapshot_staging_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/helpers.sql",
+      "original_file_path": "macros/materializations/snapshots/helpers.sql",
+      "unique_id": "macro.dbt.build_snapshot_staging_table",
+      "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n    {% set temp_relation = make_temp_relation(target_relation) %}\n\n    {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n    {% call statement('build_snapshot_staging_relation') %}\n        {{ create_table_as(True, temp_relation, select) }}\n    {% endcall %}\n\n    {% do return(temp_relation) %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.make_temp_relation",
+          "macro.dbt.snapshot_staging_table",
+          "macro.dbt.statement",
+          "macro.dbt.create_table_as"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.026763,
+      "supported_languages": null
+    },
+    "macro.dbt.materialization_snapshot_default": {
+      "name": "materialization_snapshot_default",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/snapshots/snapshot.sql",
+      "original_file_path": "macros/materializations/snapshots/snapshot.sql",
+      "unique_id": "macro.dbt.materialization_snapshot_default",
+      "macro_sql": "{% materialization snapshot, default %}\n  {%- set config = model['config'] -%}\n\n  {%- set target_table = model.get('alias', model.get('name')) -%}\n\n  {%- set strategy_name = config.get('strategy') -%}\n  {%- set unique_key = config.get('unique_key') %}\n  -- grab current tables grants config for comparision later on\n  {%- set grant_config = config.get('grants') -%}\n\n  {% set target_relation_exists, target_relation = get_or_create_relation(\n          database=model.database,\n          schema=model.schema,\n          identifier=target_table,\n          type='table') -%}\n\n  {%- if not target_relation.is_table -%}\n    {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n  {%- endif -%}\n\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  {% set strategy_macro = strategy_dispatch(strategy_name) %}\n  {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n  {% if not target_relation_exists %}\n\n      {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n      {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n  {% else %}\n\n      {{ adapter.valid_snapshot_target(target_relation) }}\n\n      {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n      -- this may no-op if the database does not require column expansion\n      {% do adapter.expand_target_column_types(from_relation=staging_table,\n                                               to_relation=target_relation) %}\n\n      {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n                                   | rejectattr('name', 'equalto', 'dbt_change_type')\n                                   | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n                                   | rejectattr('name', 'equalto', 'dbt_unique_key')\n                                   | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n                                   | list %}\n\n      {% do create_columns(target_relation, missing_columns) %}\n\n      {% set source_columns = adapter.get_columns_in_relation(staging_table)\n                                   | rejectattr('name', 'equalto', 'dbt_change_type')\n                                   | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n                                   | rejectattr('name', 'equalto', 'dbt_unique_key')\n                                   | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n                                   | list %}\n\n      {% set quoted_source_columns = [] %}\n      {% for column in source_columns %}\n        {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n      {% endfor %}\n\n      {% set final_sql = snapshot_merge_sql(\n            target = target_relation,\n            source = staging_table,\n            insert_cols = quoted_source_columns\n         )\n      %}\n\n  {% endif %}\n\n  {% call statement('main') %}\n      {{ final_sql }}\n  {% endcall %}\n\n  {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n  {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {% if not target_relation_exists %}\n    {% do create_indexes(target_relation) %}\n  {% endif %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  {{ adapter.commit() }}\n\n  {% if staging_table is defined %}\n      {% do post_snapshot(staging_table) %}\n  {% endif %}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_or_create_relation",
+          "macro.dbt.run_hooks",
+          "macro.dbt.strategy_dispatch",
+          "macro.dbt.build_snapshot_table",
+          "macro.dbt.create_table_as",
+          "macro.dbt.build_snapshot_staging_table",
+          "macro.dbt.create_columns",
+          "macro.dbt.snapshot_merge_sql",
+          "macro.dbt.statement",
+          "macro.dbt.should_revoke",
+          "macro.dbt.apply_grants",
+          "macro.dbt.persist_docs",
+          "macro.dbt.create_indexes",
+          "macro.dbt.post_snapshot"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.038872,
+      "supported_languages": [
+        "sql"
+      ]
+    },
+    "macro.dbt.materialization_test_default": {
+      "name": "materialization_test_default",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/tests/test.sql",
+      "original_file_path": "macros/materializations/tests/test.sql",
+      "unique_id": "macro.dbt.materialization_test_default",
+      "macro_sql": "{%- materialization test, default -%}\n\n  {% set relations = [] %}\n\n  {% if should_store_failures() %}\n\n    {% set identifier = model['alias'] %}\n    {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n    {% set target_relation = api.Relation.create(\n        identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n    {% if old_relation %}\n        {% do adapter.drop_relation(old_relation) %}\n    {% endif %}\n\n    {% call statement(auto_begin=True) %}\n        {{ create_table_as(False, target_relation, sql) }}\n    {% endcall %}\n\n    {% do relations.append(target_relation) %}\n\n    {% set main_sql %}\n        select *\n        from {{ target_relation }}\n    {% endset %}\n\n    {{ adapter.commit() }}\n\n  {% else %}\n\n      {% set main_sql = sql %}\n\n  {% endif %}\n\n  {% set limit = config.get('limit') %}\n  {% set fail_calc = config.get('fail_calc') %}\n  {% set warn_if = config.get('warn_if') %}\n  {% set error_if = config.get('error_if') %}\n\n  {% call statement('main', fetch_result=True) -%}\n\n    {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n  {%- endcall %}\n\n  {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.should_store_failures",
+          "macro.dbt.statement",
+          "macro.dbt.create_table_as",
+          "macro.dbt.get_test_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0435572,
+      "supported_languages": [
+        "sql"
+      ]
+    },
+    "macro.dbt.get_test_sql": {
+      "name": "get_test_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/tests/helpers.sql",
+      "original_file_path": "macros/materializations/tests/helpers.sql",
+      "unique_id": "macro.dbt.get_test_sql",
+      "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n  {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_test_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0450728,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_test_sql": {
+      "name": "default__get_test_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/tests/helpers.sql",
+      "original_file_path": "macros/materializations/tests/helpers.sql",
+      "unique_id": "macro.dbt.default__get_test_sql",
+      "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n    select\n      {{ fail_calc }} as failures,\n      {{ fail_calc }} {{ warn_if }} as should_warn,\n      {{ fail_calc }} {{ error_if }} as should_error\n    from (\n      {{ main_sql }}\n      {{ \"limit \" ~ limit if limit != none }}\n    ) dbt_internal_test\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.045801,
+      "supported_languages": null
+    },
+    "macro.dbt.get_where_subquery": {
+      "name": "get_where_subquery",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/tests/where_subquery.sql",
+      "original_file_path": "macros/materializations/tests/where_subquery.sql",
+      "unique_id": "macro.dbt.get_where_subquery",
+      "macro_sql": "{% macro get_where_subquery(relation) -%}\n    {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_where_subquery"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.046571,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_where_subquery": {
+      "name": "default__get_where_subquery",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/tests/where_subquery.sql",
+      "original_file_path": "macros/materializations/tests/where_subquery.sql",
+      "unique_id": "macro.dbt.default__get_where_subquery",
+      "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n    {% set where = config.get('where', '') %}\n    {% if where %}\n        {%- set filtered -%}\n            (select * from {{ relation }} where {{ where }}) dbt_subquery\n        {%- endset -%}\n        {% do return(filtered) %}\n    {%- else -%}\n        {% do return(relation) %}\n    {%- endif -%}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.047426,
+      "supported_languages": null
+    },
+    "macro.dbt.get_quoted_csv": {
+      "name": "get_quoted_csv",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/column_helpers.sql",
+      "original_file_path": "macros/materializations/models/incremental/column_helpers.sql",
+      "unique_id": "macro.dbt.get_quoted_csv",
+      "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n    {% set quoted = [] %}\n    {% for col in column_names -%}\n        {%- do quoted.append(adapter.quote(col)) -%}\n    {%- endfor %}\n\n    {%- set dest_cols_csv = quoted | join(', ') -%}\n    {{ return(dest_cols_csv) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0503838,
+      "supported_languages": null
+    },
+    "macro.dbt.diff_columns": {
+      "name": "diff_columns",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/column_helpers.sql",
+      "original_file_path": "macros/materializations/models/incremental/column_helpers.sql",
+      "unique_id": "macro.dbt.diff_columns",
+      "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n  {% set result = [] %}\n  {% set source_names = source_columns | map(attribute = 'column') | list %}\n  {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n   {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n   {% for sc in source_columns %}\n     {% if sc.name not in target_names %}\n        {{ result.append(sc) }}\n     {% endif %}\n   {% endfor %}\n\n  {{ return(result) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.051617,
+      "supported_languages": null
+    },
+    "macro.dbt.diff_column_data_types": {
+      "name": "diff_column_data_types",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/column_helpers.sql",
+      "original_file_path": "macros/materializations/models/incremental/column_helpers.sql",
+      "unique_id": "macro.dbt.diff_column_data_types",
+      "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n  {% set result = [] %}\n  {% for sc in source_columns %}\n    {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n    {% if tc %}\n      {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n        {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n      {% endif %}\n    {% endif %}\n  {% endfor %}\n\n  {{ return(result) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0531042,
+      "supported_languages": null
+    },
+    "macro.dbt.get_merge_update_columns": {
+      "name": "get_merge_update_columns",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/column_helpers.sql",
+      "original_file_path": "macros/materializations/models/incremental/column_helpers.sql",
+      "unique_id": "macro.dbt.get_merge_update_columns",
+      "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n  {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_merge_update_columns"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0536299,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_merge_update_columns": {
+      "name": "default__get_merge_update_columns",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/column_helpers.sql",
+      "original_file_path": "macros/materializations/models/incremental/column_helpers.sql",
+      "unique_id": "macro.dbt.default__get_merge_update_columns",
+      "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n  {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n  {%- if merge_update_columns and merge_exclude_columns -%}\n    {{ exceptions.raise_compiler_error(\n        'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n    )}}\n  {%- elif merge_update_columns -%}\n    {%- set update_columns = merge_update_columns -%}\n  {%- elif merge_exclude_columns -%}\n    {%- set update_columns = [] -%}\n    {%- for column in dest_columns -%}\n      {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n        {%- do update_columns.append(column.quoted) -%}\n      {% endif %}\n    {%- endfor -%}\n  {%- else -%}\n    {%- set update_columns = default_cols -%}\n  {%- endif -%}\n\n  {{ return(update_columns) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.055221,
+      "supported_languages": null
+    },
+    "macro.dbt.get_merge_sql": {
+      "name": "get_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/merge.sql",
+      "original_file_path": "macros/materializations/models/incremental/merge.sql",
+      "unique_id": "macro.dbt.get_merge_sql",
+      "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n   -- back compat for old kwarg name\n  {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n  {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_merge_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0662222,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_merge_sql": {
+      "name": "default__get_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/merge.sql",
+      "original_file_path": "macros/materializations/models/incremental/merge.sql",
+      "unique_id": "macro.dbt.default__get_merge_sql",
+      "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n    {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n    {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n    {%- set merge_update_columns = config.get('merge_update_columns') -%}\n    {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n    {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n    {%- set sql_header = config.get('sql_header', none) -%}\n\n    {% if unique_key %}\n        {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n            {% for key in unique_key %}\n                {% set this_key_match %}\n                    DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n                {% endset %}\n                {% do predicates.append(this_key_match) %}\n            {% endfor %}\n        {% else %}\n            {% set unique_key_match %}\n                DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n            {% endset %}\n            {% do predicates.append(unique_key_match) %}\n        {% endif %}\n    {% else %}\n        {% do predicates.append('FALSE') %}\n    {% endif %}\n\n    {{ sql_header if sql_header is not none }}\n\n    merge into {{ target }} as DBT_INTERNAL_DEST\n        using {{ source }} as DBT_INTERNAL_SOURCE\n        on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n    {% if unique_key %}\n    when matched then update set\n        {% for column_name in update_columns -%}\n            {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n            {%- if not loop.last %}, {%- endif %}\n        {%- endfor %}\n    {% endif %}\n\n    when not matched then insert\n        ({{ dest_cols_csv }})\n    values\n        ({{ dest_cols_csv }})\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_quoted_csv",
+          "macro.dbt.get_merge_update_columns"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.070024,
+      "supported_languages": null
+    },
+    "macro.dbt.get_delete_insert_merge_sql": {
+      "name": "get_delete_insert_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/merge.sql",
+      "original_file_path": "macros/materializations/models/incremental/merge.sql",
+      "unique_id": "macro.dbt.get_delete_insert_merge_sql",
+      "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n  {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_delete_insert_merge_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.070642,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_delete_insert_merge_sql": {
+      "name": "default__get_delete_insert_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/merge.sql",
+      "original_file_path": "macros/materializations/models/incremental/merge.sql",
+      "unique_id": "macro.dbt.default__get_delete_insert_merge_sql",
+      "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n    {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n    {% if unique_key %}\n        {% if unique_key is sequence and unique_key is not string %}\n            delete from {{target }}\n            using {{ source }}\n            where (\n                {% for key in unique_key %}\n                    {{ source }}.{{ key }} = {{ target }}.{{ key }}\n                    {{ \"and \" if not loop.last}}\n                {% endfor %}\n                {% if incremental_predicates %}\n                    {% for predicate in incremental_predicates %}\n                        and {{ predicate }}\n                    {% endfor %}\n                {% endif %}\n            );\n        {% else %}\n            delete from {{ target }}\n            where (\n                {{ unique_key }}) in (\n                select ({{ unique_key }})\n                from {{ source }}\n            )\n            {%- if incremental_predicates %}\n                {% for predicate in incremental_predicates %}\n                    and {{ predicate }}\n                {% endfor %}\n            {%- endif -%};\n\n        {% endif %}\n    {% endif %}\n\n    insert into {{ target }} ({{ dest_cols_csv }})\n    (\n        select {{ dest_cols_csv }}\n        from {{ source }}\n    )\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_quoted_csv"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.072929,
+      "supported_languages": null
+    },
+    "macro.dbt.get_insert_overwrite_merge_sql": {
+      "name": "get_insert_overwrite_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/merge.sql",
+      "original_file_path": "macros/materializations/models/incremental/merge.sql",
+      "unique_id": "macro.dbt.get_insert_overwrite_merge_sql",
+      "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n  {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_insert_overwrite_merge_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.073552,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_insert_overwrite_merge_sql": {
+      "name": "default__get_insert_overwrite_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/merge.sql",
+      "original_file_path": "macros/materializations/models/incremental/merge.sql",
+      "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql",
+      "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n    {#-- The only time include_sql_header is True: --#}\n    {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n    {#-- We should consider including the sql header at the materialization level instead --#}\n\n    {%- set predicates = [] if predicates is none else [] + predicates -%}\n    {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n    {%- set sql_header = config.get('sql_header', none) -%}\n\n    {{ sql_header if sql_header is not none and include_sql_header }}\n\n    merge into {{ target }} as DBT_INTERNAL_DEST\n        using {{ source }} as DBT_INTERNAL_SOURCE\n        on FALSE\n\n    when not matched by source\n        {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n        then delete\n\n    when not matched then insert\n        ({{ dest_cols_csv }})\n    values\n        ({{ dest_cols_csv }})\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_quoted_csv"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.074993,
+      "supported_languages": null
+    },
+    "macro.dbt.is_incremental": {
+      "name": "is_incremental",
+      "resource_type": "macro",
+      "package_name": "dbt",
       "path": "macros/materializations/models/incremental/is_incremental.sql",
       "original_file_path": "macros/materializations/models/incremental/is_incremental.sql",
-      "name": "is_incremental",
+      "unique_id": "macro.dbt.is_incremental",
       "macro_sql": "{% macro is_incremental() %}\n    {#-- do not run introspective queries in parsing #}\n    {% if not execute %}\n        {{ return(False) }}\n    {% else %}\n        {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n        {{ return(relation is not none\n                  and relation.type == 'table'\n                  and model.config.materialized == 'incremental'\n                  and not should_full_refresh()) }}\n    {% endif %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.should_full_refresh"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0765471,
+      "supported_languages": null
+    },
+    "macro.dbt.get_incremental_append_sql": {
+      "name": "get_incremental_append_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.get_incremental_append_sql",
+      "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n  {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_incremental_append_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0787861,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_incremental_append_sql": {
+      "name": "default__get_incremental_append_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.default__get_incremental_append_sql",
+      "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n  {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_insert_into_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.07935,
+      "supported_languages": null
+    },
+    "macro.dbt.get_incremental_delete_insert_sql": {
+      "name": "get_incremental_delete_insert_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.get_incremental_delete_insert_sql",
+      "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n  {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_incremental_delete_insert_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.07978,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_incremental_delete_insert_sql": {
+      "name": "default__get_incremental_delete_insert_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql",
+      "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n  {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_delete_insert_merge_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.080447,
+      "supported_languages": null
+    },
+    "macro.dbt.get_incremental_merge_sql": {
+      "name": "get_incremental_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.get_incremental_merge_sql",
+      "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n  {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_incremental_merge_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.080877,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_incremental_merge_sql": {
+      "name": "default__get_incremental_merge_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.default__get_incremental_merge_sql",
+      "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n  {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_merge_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.08154,
+      "supported_languages": null
+    },
+    "macro.dbt.get_incremental_insert_overwrite_sql": {
+      "name": "get_incremental_insert_overwrite_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql",
+      "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n  {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_incremental_insert_overwrite_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.081967,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_incremental_insert_overwrite_sql": {
+      "name": "default__get_incremental_insert_overwrite_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql",
+      "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n  {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_insert_overwrite_merge_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0825741,
+      "supported_languages": null
+    },
+    "macro.dbt.get_incremental_default_sql": {
+      "name": "get_incremental_default_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.get_incremental_default_sql",
+      "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n  {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_incremental_default_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.083013,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_incremental_default_sql": {
+      "name": "default__get_incremental_default_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.default__get_incremental_default_sql",
+      "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n  {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_incremental_append_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.08347,
+      "supported_languages": null
+    },
+    "macro.dbt.get_insert_into_sql": {
+      "name": "get_insert_into_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/strategies.sql",
+      "original_file_path": "macros/materializations/models/incremental/strategies.sql",
+      "unique_id": "macro.dbt.get_insert_into_sql",
+      "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n    {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n    insert into {{ target_relation }} ({{ dest_cols_csv }})\n    (\n        select {{ dest_cols_csv }}\n        from {{ temp_relation }}\n    )\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_quoted_csv"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.084131,
+      "supported_languages": null
+    },
+    "macro.dbt.materialization_incremental_default": {
+      "name": "materialization_incremental_default",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/incremental.sql",
+      "original_file_path": "macros/materializations/models/incremental/incremental.sql",
+      "unique_id": "macro.dbt.materialization_incremental_default",
+      "macro_sql": "{% materialization incremental, default -%}\n\n  -- relations\n  {%- set existing_relation = load_cached_relation(this) -%}\n  {%- set target_relation = this.incorporate(type='table') -%}\n  {%- set temp_relation = make_temp_relation(target_relation)-%}\n  {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n  {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n  {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n  -- configs\n  {%- set unique_key = config.get('unique_key') -%}\n  {%- set full_refresh_mode = (should_full_refresh()  or existing_relation.is_view) -%}\n  {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n  -- the temp_ and backup_ relations should not already exist in the database; get_relation\n  -- will return None in that case. Otherwise, we get a relation that we can drop\n  -- later, before we try to use this name for the current operation. This has to happen before\n  -- BEGIN, in a separate transaction\n  {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n  {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n   -- grab current tables grants config for comparision later on\n  {% set grant_config = config.get('grants') %}\n  {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n  {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  -- `BEGIN` happens here:\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  {% set to_drop = [] %}\n\n  {% if existing_relation is none %}\n      {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n  {% elif full_refresh_mode %}\n      {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n      {% set need_swap = true %}\n  {% else %}\n    {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n    {% do adapter.expand_target_column_types(\n             from_relation=temp_relation,\n             to_relation=target_relation) %}\n    {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n    {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n    {% if not dest_columns %}\n      {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n    {% endif %}\n\n    {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n    {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n    {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n    {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n    {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n    {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n  {% endif %}\n\n  {% call statement(\"main\") %}\n      {{ build_sql }}\n  {% endcall %}\n\n  {% if need_swap %}\n      {% do adapter.rename_relation(target_relation, backup_relation) %}\n      {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n      {% do to_drop.append(backup_relation) %}\n  {% endif %}\n\n  {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n  {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n    {% do create_indexes(target_relation) %}\n  {% endif %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  -- `COMMIT` happens here\n  {% do adapter.commit() %}\n\n  {% for rel in to_drop %}\n      {% do adapter.drop_relation(rel) %}\n  {% endfor %}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.load_cached_relation",
+          "macro.dbt.make_temp_relation",
+          "macro.dbt.make_intermediate_relation",
+          "macro.dbt.make_backup_relation",
+          "macro.dbt.should_full_refresh",
+          "macro.dbt.incremental_validate_on_schema_change",
+          "macro.dbt.drop_relation_if_exists",
+          "macro.dbt.run_hooks",
+          "macro.dbt.get_create_table_as_sql",
+          "macro.dbt.run_query",
+          "macro.dbt.process_schema_changes",
+          "macro.dbt.statement",
+          "macro.dbt.should_revoke",
+          "macro.dbt.apply_grants",
+          "macro.dbt.persist_docs",
+          "macro.dbt.create_indexes"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.0943732,
+      "supported_languages": [
+        "sql"
+      ]
+    },
+    "macro.dbt.incremental_validate_on_schema_change": {
+      "name": "incremental_validate_on_schema_change",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/on_schema_change.sql",
+      "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql",
+      "unique_id": "macro.dbt.incremental_validate_on_schema_change",
+      "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n   {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n     {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n     {% do log(log_message) %}\n\n     {{ return(default) }}\n\n   {% else %}\n\n     {{ return(on_schema_change) }}\n\n   {% endif %}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.10421,
+      "supported_languages": null
+    },
+    "macro.dbt.check_for_schema_changes": {
+      "name": "check_for_schema_changes",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/on_schema_change.sql",
+      "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql",
+      "unique_id": "macro.dbt.check_for_schema_changes",
+      "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n  {% set schema_changed = False %}\n\n  {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n  {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n  {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n  {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n  {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n  {% if source_not_in_target != [] %}\n    {% set schema_changed = True %}\n  {% elif target_not_in_source != [] or new_target_types != [] %}\n    {% set schema_changed = True %}\n  {% elif new_target_types != [] %}\n    {% set schema_changed = True %}\n  {% endif %}\n\n  {% set changes_dict = {\n    'schema_changed': schema_changed,\n    'source_not_in_target': source_not_in_target,\n    'target_not_in_source': target_not_in_source,\n    'source_columns': source_columns,\n    'target_columns': target_columns,\n    'new_target_types': new_target_types\n  } %}\n\n  {% set msg %}\n    In {{ target_relation }}:\n        Schema changed: {{ schema_changed }}\n        Source columns not in target: {{ source_not_in_target }}\n        Target columns not in source: {{ target_not_in_source }}\n        New column types: {{ new_target_types }}\n  {% endset %}\n\n  {% do log(msg) %}\n\n  {{ return(changes_dict) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.diff_columns",
+          "macro.dbt.diff_column_data_types"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1070101,
+      "supported_languages": null
+    },
+    "macro.dbt.sync_column_schemas": {
+      "name": "sync_column_schemas",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/on_schema_change.sql",
+      "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql",
+      "unique_id": "macro.dbt.sync_column_schemas",
+      "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n  {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n  {%- if on_schema_change == 'append_new_columns'-%}\n     {%- if add_to_target_arr | length > 0 -%}\n       {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n     {%- endif -%}\n\n  {% elif on_schema_change == 'sync_all_columns' %}\n     {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n     {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n     {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n       {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n     {% endif %}\n\n     {% if new_target_types != [] %}\n       {% for ntt in new_target_types %}\n         {% set column_name = ntt['column_name'] %}\n         {% set new_type = ntt['new_type'] %}\n         {% do alter_column_type(target_relation, column_name, new_type) %}\n       {% endfor %}\n     {% endif %}\n\n  {% endif %}\n\n  {% set schema_change_message %}\n    In {{ target_relation }}:\n        Schema change approach: {{ on_schema_change }}\n        Columns added: {{ add_to_target_arr }}\n        Columns removed: {{ remove_from_target_arr }}\n        Data types changed: {{ new_target_types }}\n  {% endset %}\n\n  {% do log(schema_change_message) %}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.alter_relation_add_remove_columns",
+          "macro.dbt.alter_column_type"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.109864,
+      "supported_languages": null
+    },
+    "macro.dbt.process_schema_changes": {
+      "name": "process_schema_changes",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/incremental/on_schema_change.sql",
+      "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql",
+      "unique_id": "macro.dbt.process_schema_changes",
+      "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n    {% if on_schema_change == 'ignore' %}\n\n     {{ return({}) }}\n\n    {% else %}\n\n      {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n      {% if schema_changes_dict['schema_changed'] %}\n\n        {% if on_schema_change == 'fail' %}\n\n          {% set fail_msg %}\n              The source and target schemas on this incremental model are out of sync!\n              They can be reconciled in several ways:\n                - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n                - Re-run the incremental model with `full_refresh: True` to update the target schema.\n                - update the schema manually and re-run the process.\n\n              Additional troubleshooting context:\n                 Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n                 Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n                 New column types: {{ schema_changes_dict['new_target_types'] }}\n          {% endset %}\n\n          {% do exceptions.raise_compiler_error(fail_msg) %}\n\n        {# -- unless we ignore, run the sync operation per the config #}\n        {% else %}\n\n          {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n        {% endif %}\n\n      {% endif %}\n\n      {{ return(schema_changes_dict['source_columns']) }}\n\n    {% endif %}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.check_for_schema_changes",
+          "macro.dbt.sync_column_schemas"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1123672,
+      "supported_languages": null
+    },
+    "macro.dbt.get_table_columns_and_constraints": {
+      "name": "get_table_columns_and_constraints",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "unique_id": "macro.dbt.get_table_columns_and_constraints",
+      "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n  {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_table_columns_and_constraints"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.114263,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_table_columns_and_constraints": {
+      "name": "default__get_table_columns_and_constraints",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "unique_id": "macro.dbt.default__get_table_columns_and_constraints",
+      "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n  {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.table_columns_and_constraints"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.114594,
+      "supported_languages": null
+    },
+    "macro.dbt.table_columns_and_constraints": {
+      "name": "table_columns_and_constraints",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "unique_id": "macro.dbt.table_columns_and_constraints",
+      "macro_sql": "{% macro table_columns_and_constraints() %}\n  {# loop through user_provided_columns to create DDL with data types and constraints #}\n    {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n    {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n    (\n    {% for c in raw_column_constraints -%}\n      {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n    {% endfor %}\n    {% for c in raw_model_constraints -%}\n        {{ c }}{{ \",\" if not loop.last }}\n    {% endfor -%}\n    )\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1157959,
+      "supported_languages": null
+    },
+    "macro.dbt.get_assert_columns_equivalent": {
+      "name": "get_assert_columns_equivalent",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "unique_id": "macro.dbt.get_assert_columns_equivalent",
+      "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n  {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_assert_columns_equivalent"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.116176,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_assert_columns_equivalent": {
+      "name": "default__get_assert_columns_equivalent",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "unique_id": "macro.dbt.default__get_assert_columns_equivalent",
+      "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n  {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.assert_columns_equivalent"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.116528,
+      "supported_languages": null
+    },
+    "macro.dbt.assert_columns_equivalent": {
+      "name": "assert_columns_equivalent",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "unique_id": "macro.dbt.assert_columns_equivalent",
+      "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n  {#-- First ensure the user has defined 'columns' in yaml specification --#}\n  {%- set user_defined_columns = model['columns'] -%}\n  {%- if not user_defined_columns -%}\n      {{ exceptions.raise_contract_error([], []) }}\n  {%- endif -%}\n\n  {#-- Obtain the column schema provided by sql file. #}\n  {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n  {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n  {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n  {#-- create dictionaries with name and formatted data type and strings for exception #}\n  {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n  {%- set yaml_columns = format_columns(schema_file_provided_columns)  -%}\n\n  {%- if sql_columns|length != yaml_columns|length -%}\n    {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n  {%- endif -%}\n\n  {%- for sql_col in sql_columns -%}\n    {%- set yaml_col = [] -%}\n    {%- for this_col in yaml_columns -%}\n      {%- if this_col['name'] == sql_col['name'] -%}\n        {%- do yaml_col.append(this_col) -%}\n        {%- break -%}\n      {%- endif -%}\n    {%- endfor -%}\n    {%- if not yaml_col -%}\n      {#-- Column with name not found in yaml #}\n      {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n    {%- endif -%}\n    {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n      {#-- Column data types don't match #}\n      {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n    {%- endif -%}\n  {%- endfor -%}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_column_schema_from_query",
+          "macro.dbt.get_empty_schema_sql",
+          "macro.dbt.format_columns"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.119356,
+      "supported_languages": null
+    },
+    "macro.dbt.format_columns": {
+      "name": "format_columns",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "unique_id": "macro.dbt.format_columns",
+      "macro_sql": "{% macro format_columns(columns) %}\n  {% set formatted_columns = [] %}\n  {% for column in columns %}\n    {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n    {%- do formatted_columns.append(formatted_column) -%}\n  {% endfor %}\n  {{ return(formatted_columns) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__format_column"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.120223,
+      "supported_languages": null
+    },
+    "macro.dbt.default__format_column": {
+      "name": "default__format_column",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql",
+      "unique_id": "macro.dbt.default__format_column",
+      "macro_sql": "{% macro default__format_column(column) -%}\n  {% set data_type = column.dtype %}\n  {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n  {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.121,
+      "supported_languages": null
+    },
+    "macro.dbt.materialization_table_default": {
+      "name": "materialization_table_default",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/table.sql",
+      "original_file_path": "macros/materializations/models/table/table.sql",
+      "unique_id": "macro.dbt.materialization_table_default",
+      "macro_sql": "{% materialization table, default %}\n\n  {%- set existing_relation = load_cached_relation(this) -%}\n  {%- set target_relation = this.incorporate(type='table') %}\n  {%- set intermediate_relation =  make_intermediate_relation(target_relation) -%}\n  -- the intermediate_relation should not already exist in the database; get_relation\n  -- will return None in that case. Otherwise, we get a relation that we can drop\n  -- later, before we try to use this name for the current operation\n  {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n  /*\n      See ../view/view.sql for more information about this relation.\n  */\n  {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n  {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n  -- as above, the backup_relation should not already exist\n  {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n  -- grab current tables grants config for comparision later on\n  {% set grant_config = config.get('grants') %}\n\n  -- drop the temp relations if they exist already in the database\n  {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n  {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  -- `BEGIN` happens here:\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  -- build model\n  {% call statement('main') -%}\n    {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n  {%- endcall %}\n\n  -- cleanup\n  {% if existing_relation is not none %}\n    /* Do the equivalent of rename_if_exists */\n    {% set existing_relation = load_cached_relation(existing_relation) %}\n    {% if existing_relation is not none %}\n        {{ adapter.rename_relation(existing_relation, backup_relation) }}\n    {% endif %}\n  {% endif %}\n\n  {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n  {% do create_indexes(target_relation) %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n  {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  -- `COMMIT` happens here\n  {{ adapter.commit() }}\n\n  -- finally, drop the existing/backup relation after the commit\n  {{ drop_relation_if_exists(backup_relation) }}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.load_cached_relation",
+          "macro.dbt.make_intermediate_relation",
+          "macro.dbt.make_backup_relation",
+          "macro.dbt.drop_relation_if_exists",
+          "macro.dbt.run_hooks",
+          "macro.dbt.statement",
+          "macro.dbt.get_create_table_as_sql",
+          "macro.dbt.create_indexes",
+          "macro.dbt.should_revoke",
+          "macro.dbt.apply_grants",
+          "macro.dbt.persist_docs"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.126785,
+      "supported_languages": [
+        "sql"
+      ]
+    },
+    "macro.dbt.get_create_table_as_sql": {
+      "name": "get_create_table_as_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/create_table_as.sql",
+      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
+      "unique_id": "macro.dbt.get_create_table_as_sql",
+      "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n  {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_create_table_as_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.128387,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_create_table_as_sql": {
+      "name": "default__get_create_table_as_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/create_table_as.sql",
+      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
+      "unique_id": "macro.dbt.default__get_create_table_as_sql",
+      "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n  {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.create_table_as"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.128808,
+      "supported_languages": null
+    },
+    "macro.dbt.create_table_as": {
+      "name": "create_table_as",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/create_table_as.sql",
+      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
+      "unique_id": "macro.dbt.create_table_as",
+      "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n  {# backward compatibility for create_table_as that does not support language #}\n  {% if language == \"sql\" %}\n    {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n  {% else %}\n    {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n  {% endif %}\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__create_table_as"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.129935,
+      "supported_languages": null
+    },
+    "macro.dbt.default__create_table_as": {
+      "name": "default__create_table_as",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/create_table_as.sql",
+      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
+      "unique_id": "macro.dbt.default__create_table_as",
+      "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n  {%- set sql_header = config.get('sql_header', none) -%}\n\n  {{ sql_header if sql_header is not none }}\n\n  create {% if temporary: -%}temporary{%- endif %} table\n    {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n  {% set contract_config = config.get('contract') %}\n  {% if contract_config.enforced %}\n    {{ get_assert_columns_equivalent(sql) }}\n    {{ get_table_columns_and_constraints() }}\n    {%- set sql = get_select_subquery(sql) %}\n  {% endif %}\n  as (\n    {{ sql }}\n  );\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_assert_columns_equivalent",
+          "macro.dbt.get_table_columns_and_constraints",
+          "macro.dbt.get_select_subquery"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.131433,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_column_names": {
+      "name": "default__get_column_names",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/create_table_as.sql",
+      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
+      "unique_id": "macro.dbt.default__get_column_names",
+      "macro_sql": "{% macro default__get_column_names() %}\n  {#- loop through user_provided_columns to get column names -#}\n    {%- set user_provided_columns = model['columns'] -%}\n    {%- for i in user_provided_columns %}\n      {%- set col = user_provided_columns[i] -%}\n      {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n      {{ col_name }}{{ \", \" if not loop.last }}\n    {%- endfor -%}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.132472,
+      "supported_languages": null
+    },
+    "macro.dbt.get_select_subquery": {
+      "name": "get_select_subquery",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/create_table_as.sql",
+      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
+      "unique_id": "macro.dbt.get_select_subquery",
+      "macro_sql": "{% macro get_select_subquery(sql) %}\n  {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__get_select_subquery"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1329029,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_select_subquery": {
+      "name": "default__get_select_subquery",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/table/create_table_as.sql",
+      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
+      "unique_id": "macro.dbt.default__get_select_subquery",
+      "macro_sql": "{% macro default__get_select_subquery(sql) %}\n    select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n    from (\n        {{ sql }}\n    ) as model_subq\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__get_column_names"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.133313,
+      "supported_languages": null
+    },
+    "macro.dbt.materialization_view_default": {
+      "name": "materialization_view_default",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/view/view.sql",
+      "original_file_path": "macros/materializations/models/view/view.sql",
+      "unique_id": "macro.dbt.materialization_view_default",
+      "macro_sql": "{%- materialization view, default -%}\n\n  {%- set existing_relation = load_cached_relation(this) -%}\n  {%- set target_relation = this.incorporate(type='view') -%}\n  {%- set intermediate_relation =  make_intermediate_relation(target_relation) -%}\n\n  -- the intermediate_relation should not already exist in the database; get_relation\n  -- will return None in that case. Otherwise, we get a relation that we can drop\n  -- later, before we try to use this name for the current operation\n  {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n  /*\n     This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n     a previous run, and we're going to try to drop it immediately. At the end of this\n     materialization, we're going to rename the \"existing_relation\" to this identifier,\n     and then we're going to drop it. In order to make sure we run the correct one of:\n       - drop view ...\n       - drop table ...\n\n     We need to set the type of this relation to be the type of the existing_relation, if it exists,\n     or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n     exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n     this relation will be effectively unused.\n  */\n  {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n  {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n  -- as above, the backup_relation should not already exist\n  {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n  -- grab current tables grants config for comparision later on\n  {% set grant_config = config.get('grants') %}\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  -- drop the temp relations if they exist already in the database\n  {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n  {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n  -- `BEGIN` happens here:\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  -- build model\n  {% call statement('main') -%}\n    {{ get_create_view_as_sql(intermediate_relation, sql) }}\n  {%- endcall %}\n\n  -- cleanup\n  -- move the existing view out of the way\n  {% if existing_relation is not none %}\n    /* Do the equivalent of rename_if_exists */\n    {% set existing_relation = load_cached_relation(existing_relation) %}\n    {% if existing_relation is not none %}\n      {{ adapter.rename_relation(existing_relation, backup_relation) }}\n    {% endif %}\n  {% endif %}\n  {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n  {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n  {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  {{ adapter.commit() }}\n\n  {{ drop_relation_if_exists(backup_relation) }}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.load_cached_relation",
+          "macro.dbt.make_intermediate_relation",
+          "macro.dbt.make_backup_relation",
+          "macro.dbt.run_hooks",
+          "macro.dbt.drop_relation_if_exists",
+          "macro.dbt.statement",
+          "macro.dbt.get_create_view_as_sql",
+          "macro.dbt.should_revoke",
+          "macro.dbt.apply_grants",
+          "macro.dbt.persist_docs"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.139023,
+      "supported_languages": [
+        "sql"
+      ]
+    },
+    "macro.dbt.handle_existing_table": {
+      "name": "handle_existing_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/view/helpers.sql",
+      "original_file_path": "macros/materializations/models/view/helpers.sql",
+      "unique_id": "macro.dbt.handle_existing_table",
+      "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n    {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__handle_existing_table"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1397371,
+      "supported_languages": null
+    },
+    "macro.dbt.default__handle_existing_table": {
+      "name": "default__handle_existing_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/view/helpers.sql",
+      "original_file_path": "macros/materializations/models/view/helpers.sql",
+      "unique_id": "macro.dbt.default__handle_existing_table",
+      "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n    {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n    {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.140254,
+      "supported_languages": null
+    },
+    "macro.dbt.create_or_replace_view": {
+      "name": "create_or_replace_view",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/view/create_or_replace_view.sql",
+      "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql",
+      "unique_id": "macro.dbt.create_or_replace_view",
+      "macro_sql": "{% macro create_or_replace_view() %}\n  {%- set identifier = model['alias'] -%}\n\n  {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n  {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n  {%- set target_relation = api.Relation.create(\n      identifier=identifier, schema=schema, database=database,\n      type='view') -%}\n  {% set grant_config = config.get('grants') %}\n\n  {{ run_hooks(pre_hooks) }}\n\n  -- If there's a table with the same name and we weren't told to full refresh,\n  -- that's an error. If we were told to full refresh, drop it. This behavior differs\n  -- for Snowflake and BigQuery, so multiple dispatch is used.\n  {%- if old_relation is not none and old_relation.is_table -%}\n    {{ handle_existing_table(should_full_refresh(), old_relation) }}\n  {%- endif -%}\n\n  -- build model\n  {% call statement('main') -%}\n    {{ get_create_view_as_sql(target_relation, sql) }}\n  {%- endcall %}\n\n  {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n  {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n  {{ run_hooks(post_hooks) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.run_hooks",
+          "macro.dbt.handle_existing_table",
+          "macro.dbt.should_full_refresh",
+          "macro.dbt.statement",
+          "macro.dbt.get_create_view_as_sql",
+          "macro.dbt.should_revoke",
+          "macro.dbt.apply_grants"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1436439,
+      "supported_languages": null
+    },
+    "macro.dbt.get_create_view_as_sql": {
+      "name": "get_create_view_as_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/view/create_view_as.sql",
+      "original_file_path": "macros/materializations/models/view/create_view_as.sql",
+      "unique_id": "macro.dbt.get_create_view_as_sql",
+      "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n  {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_create_view_as_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.145195,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_create_view_as_sql": {
+      "name": "default__get_create_view_as_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/view/create_view_as.sql",
+      "original_file_path": "macros/materializations/models/view/create_view_as.sql",
+      "unique_id": "macro.dbt.default__get_create_view_as_sql",
+      "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n  {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.create_view_as"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.145598,
+      "supported_languages": null
+    },
+    "macro.dbt.create_view_as": {
+      "name": "create_view_as",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/view/create_view_as.sql",
+      "original_file_path": "macros/materializations/models/view/create_view_as.sql",
+      "unique_id": "macro.dbt.create_view_as",
+      "macro_sql": "{% macro create_view_as(relation, sql) -%}\n  {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__create_view_as"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.146019,
+      "supported_languages": null
+    },
+    "macro.dbt.default__create_view_as": {
+      "name": "default__create_view_as",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/models/view/create_view_as.sql",
+      "original_file_path": "macros/materializations/models/view/create_view_as.sql",
+      "unique_id": "macro.dbt.default__create_view_as",
+      "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n  {%- set sql_header = config.get('sql_header', none) -%}\n\n  {{ sql_header if sql_header is not none }}\n  create view {{ relation }}\n    {% set contract_config = config.get('contract') %}\n    {% if contract_config.enforced %}\n      {{ get_assert_columns_equivalent(sql) }}\n    {%- endif %}\n  as (\n    {{ sql }}\n  );\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_assert_columns_equivalent"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.146985,
+      "supported_languages": null
+    },
+    "macro.dbt.materialization_seed_default": {
+      "name": "materialization_seed_default",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/seed.sql",
+      "original_file_path": "macros/materializations/seeds/seed.sql",
+      "unique_id": "macro.dbt.materialization_seed_default",
+      "macro_sql": "{% materialization seed, default %}\n\n  {%- set identifier = model['alias'] -%}\n  {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n  {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n  {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n  {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n  {%- set grant_config = config.get('grants') -%}\n  {%- set agate_table = load_agate_table() -%}\n  -- grab current tables grants config for comparision later on\n\n  {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  -- `BEGIN` happens here:\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  -- build model\n  {% set create_table_sql = \"\" %}\n  {% if exists_as_view %}\n    {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n  {% elif exists_as_table %}\n    {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n  {% else %}\n    {% set create_table_sql = create_csv_table(model, agate_table) %}\n  {% endif %}\n\n  {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n  {% set rows_affected = (agate_table.rows | length) %}\n  {% set sql = load_csv_rows(model, agate_table) %}\n\n  {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n    {{ get_csv_sql(create_table_sql, sql) }};\n  {% endcall %}\n\n  {% set target_relation = this.incorporate(type='table') %}\n\n  {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n  {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {% if full_refresh_mode or not exists_as_table %}\n    {% do create_indexes(target_relation) %}\n  {% endif %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  -- `COMMIT` happens here\n  {{ adapter.commit() }}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.should_full_refresh",
+          "macro.dbt.run_hooks",
+          "macro.dbt.reset_csv_table",
+          "macro.dbt.create_csv_table",
+          "macro.dbt.load_csv_rows",
+          "macro.dbt.noop_statement",
+          "macro.dbt.get_csv_sql",
+          "macro.dbt.should_revoke",
+          "macro.dbt.apply_grants",
+          "macro.dbt.persist_docs",
+          "macro.dbt.create_indexes"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.153645,
+      "supported_languages": [
+        "sql"
+      ]
+    },
+    "macro.dbt.create_csv_table": {
+      "name": "create_csv_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.create_csv_table",
+      "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n  {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__create_csv_table"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.161658,
+      "supported_languages": null
+    },
+    "macro.dbt.default__create_csv_table": {
+      "name": "default__create_csv_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.default__create_csv_table",
+      "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n  {%- set column_override = model['config'].get('column_types', {}) -%}\n  {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n  {% set sql %}\n    create table {{ this.render() }} (\n        {%- for col_name in agate_table.column_names -%}\n            {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n            {%- set type = column_override.get(col_name, inferred_type) -%}\n            {%- set column_name = (col_name | string) -%}\n            {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n        {%- endfor -%}\n    )\n  {% endset %}\n\n  {% call statement('_') -%}\n    {{ sql }}\n  {%- endcall %}\n\n  {{ return(sql) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.statement"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1639,
+      "supported_languages": null
+    },
+    "macro.dbt.reset_csv_table": {
+      "name": "reset_csv_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.reset_csv_table",
+      "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n  {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__reset_csv_table"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.164439,
+      "supported_languages": null
+    },
+    "macro.dbt.default__reset_csv_table": {
+      "name": "default__reset_csv_table",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.default__reset_csv_table",
+      "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n    {% set sql = \"\" %}\n    {% if full_refresh %}\n        {{ adapter.drop_relation(old_relation) }}\n        {% set sql = create_csv_table(model, agate_table) %}\n    {% else %}\n        {{ adapter.truncate_relation(old_relation) }}\n        {% set sql = \"truncate table \" ~ old_relation %}\n    {% endif %}\n\n    {{ return(sql) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.create_csv_table"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.165536,
+      "supported_languages": null
+    },
+    "macro.dbt.get_csv_sql": {
+      "name": "get_csv_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.get_csv_sql",
+      "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n    {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_csv_sql"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.165976,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_csv_sql": {
+      "name": "default__get_csv_sql",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.default__get_csv_sql",
+      "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n    {{ create_or_truncate_sql }};\n    -- dbt seed --\n    {{ insert_sql }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1662898,
+      "supported_languages": null
+    },
+    "macro.dbt.get_binding_char": {
+      "name": "get_binding_char",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.get_binding_char",
+      "macro_sql": "{% macro get_binding_char() -%}\n  {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_binding_char"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.166616,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_binding_char": {
+      "name": "default__get_binding_char",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.default__get_binding_char",
+      "macro_sql": "{% macro default__get_binding_char() %}\n  {{ return('%s') }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.166891,
+      "supported_languages": null
+    },
+    "macro.dbt.get_batch_size": {
+      "name": "get_batch_size",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.get_batch_size",
+      "macro_sql": "{% macro get_batch_size() -%}\n  {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__get_batch_size"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1672692,
+      "supported_languages": null
+    },
+    "macro.dbt.default__get_batch_size": {
+      "name": "default__get_batch_size",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.default__get_batch_size",
+      "macro_sql": "{% macro default__get_batch_size() %}\n  {{ return(10000) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.167549,
+      "supported_languages": null
+    },
+    "macro.dbt.get_seed_column_quoted_csv": {
+      "name": "get_seed_column_quoted_csv",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.get_seed_column_quoted_csv",
+      "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n  {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n    {% set quoted = [] %}\n    {% for col in column_names -%}\n        {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n    {%- endfor %}\n\n    {%- set dest_cols_csv = quoted | join(', ') -%}\n    {{ return(dest_cols_csv) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.168619,
+      "supported_languages": null
+    },
+    "macro.dbt.load_csv_rows": {
+      "name": "load_csv_rows",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.load_csv_rows",
+      "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n  {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__load_csv_rows"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.169044,
+      "supported_languages": null
+    },
+    "macro.dbt.default__load_csv_rows": {
+      "name": "default__load_csv_rows",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/materializations/seeds/helpers.sql",
+      "original_file_path": "macros/materializations/seeds/helpers.sql",
+      "unique_id": "macro.dbt.default__load_csv_rows",
+      "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n  {% set batch_size = get_batch_size() %}\n\n  {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n  {% set bindings = [] %}\n\n  {% set statements = [] %}\n\n  {% for chunk in agate_table.rows | batch(batch_size) %}\n      {% set bindings = [] %}\n\n      {% for row in chunk %}\n          {% do bindings.extend(row) %}\n      {% endfor %}\n\n      {% set sql %}\n          insert into {{ this.render() }} ({{ cols_sql }}) values\n          {% for row in chunk -%}\n              ({%- for column in agate_table.column_names -%}\n                  {{ get_binding_char() }}\n                  {%- if not loop.last%},{%- endif %}\n              {%- endfor -%})\n              {%- if not loop.last%},{%- endif %}\n          {%- endfor %}\n      {% endset %}\n\n      {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n      {% if loop.index0 == 0 %}\n          {% do statements.append(sql) %}\n      {% endif %}\n  {% endfor %}\n\n  {# Return SQL so we can render it out into the compiled files #}\n  {{ return(statements[0]) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.get_batch_size",
+          "macro.dbt.get_seed_column_quoted_csv",
+          "macro.dbt.get_binding_char"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.171933,
+      "supported_languages": null
+    },
+    "macro.dbt.generate_alias_name": {
+      "name": "generate_alias_name",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/get_custom_name/get_custom_alias.sql",
+      "original_file_path": "macros/get_custom_name/get_custom_alias.sql",
+      "unique_id": "macro.dbt.generate_alias_name",
+      "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n    {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__generate_alias_name"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1728399,
+      "supported_languages": null
+    },
+    "macro.dbt.default__generate_alias_name": {
+      "name": "default__generate_alias_name",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/get_custom_name/get_custom_alias.sql",
+      "original_file_path": "macros/get_custom_name/get_custom_alias.sql",
+      "unique_id": "macro.dbt.default__generate_alias_name",
+      "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n    {%- if custom_alias_name -%}\n\n        {{ custom_alias_name | trim }}\n\n    {%- elif node.version -%}\n\n        {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n    {%- else -%}\n\n        {{ node.name }}\n\n    {%- endif -%}\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.173695,
+      "supported_languages": null
+    },
+    "macro.dbt.generate_schema_name": {
+      "name": "generate_schema_name",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/get_custom_name/get_custom_schema.sql",
+      "original_file_path": "macros/get_custom_name/get_custom_schema.sql",
+      "unique_id": "macro.dbt.generate_schema_name",
+      "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n    {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__generate_schema_name"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1747189,
+      "supported_languages": null
+    },
+    "macro.dbt.default__generate_schema_name": {
+      "name": "default__generate_schema_name",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/get_custom_name/get_custom_schema.sql",
+      "original_file_path": "macros/get_custom_name/get_custom_schema.sql",
+      "unique_id": "macro.dbt.default__generate_schema_name",
+      "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n    {%- set default_schema = target.schema -%}\n    {%- if custom_schema_name is none -%}\n\n        {{ default_schema }}\n\n    {%- else -%}\n\n        {{ default_schema }}_{{ custom_schema_name | trim }}\n\n    {%- endif -%}\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.175371,
+      "supported_languages": null
+    },
+    "macro.dbt.generate_schema_name_for_env": {
+      "name": "generate_schema_name_for_env",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/get_custom_name/get_custom_schema.sql",
+      "original_file_path": "macros/get_custom_name/get_custom_schema.sql",
+      "unique_id": "macro.dbt.generate_schema_name_for_env",
+      "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n    {%- set default_schema = target.schema -%}\n    {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n        {{ custom_schema_name | trim }}\n\n    {%- else -%}\n\n        {{ default_schema }}\n\n    {%- endif -%}\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.176018,
+      "supported_languages": null
+    },
+    "macro.dbt.generate_database_name": {
+      "name": "generate_database_name",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/get_custom_name/get_custom_database.sql",
+      "original_file_path": "macros/get_custom_name/get_custom_database.sql",
+      "unique_id": "macro.dbt.generate_database_name",
+      "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n    {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__generate_database_name"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.176821,
+      "supported_languages": null
+    },
+    "macro.dbt.default__generate_database_name": {
+      "name": "default__generate_database_name",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/get_custom_name/get_custom_database.sql",
+      "original_file_path": "macros/get_custom_name/get_custom_database.sql",
+      "unique_id": "macro.dbt.default__generate_database_name",
+      "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n    {%- set default_database = target.database -%}\n    {%- if custom_database_name is none -%}\n\n        {{ default_database }}\n\n    {%- else -%}\n\n        {{ custom_database_name }}\n\n    {%- endif -%}\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1773949,
+      "supported_languages": null
+    },
+    "macro.dbt.default__test_relationships": {
+      "name": "default__test_relationships",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/generic_test_sql/relationships.sql",
+      "original_file_path": "macros/generic_test_sql/relationships.sql",
+      "unique_id": "macro.dbt.default__test_relationships",
+      "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n    select {{ column_name }} as from_field\n    from {{ model }}\n    where {{ column_name }} is not null\n),\n\nparent as (\n    select {{ field }} as to_field\n    from {{ to }}\n)\n\nselect\n    from_field\n\nfrom child\nleft join parent\n    on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.178144,
+      "supported_languages": null
+    },
+    "macro.dbt.default__test_not_null": {
+      "name": "default__test_not_null",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/generic_test_sql/not_null.sql",
+      "original_file_path": "macros/generic_test_sql/not_null.sql",
+      "unique_id": "macro.dbt.default__test_not_null",
+      "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.should_store_failures"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.178803,
+      "supported_languages": null
+    },
+    "macro.dbt.default__test_unique": {
+      "name": "default__test_unique",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/generic_test_sql/unique.sql",
+      "original_file_path": "macros/generic_test_sql/unique.sql",
+      "unique_id": "macro.dbt.default__test_unique",
+      "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n    {{ column_name }} as unique_field,\n    count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1793401,
+      "supported_languages": null
+    },
+    "macro.dbt.default__test_accepted_values": {
+      "name": "default__test_accepted_values",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/generic_test_sql/accepted_values.sql",
+      "original_file_path": "macros/generic_test_sql/accepted_values.sql",
+      "unique_id": "macro.dbt.default__test_accepted_values",
+      "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n    select\n        {{ column_name }} as value_field,\n        count(*) as n_records\n\n    from {{ model }}\n    group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n    {% for value in values -%}\n        {% if quote -%}\n        '{{ value }}'\n        {%- else -%}\n        {{ value }}\n        {%- endif -%}\n        {%- if not loop.last -%},{%- endif %}\n    {%- endfor %}\n)\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.180532,
+      "supported_languages": null
+    },
+    "macro.dbt.statement": {
+      "name": "statement",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/etc/statement.sql",
+      "original_file_path": "macros/etc/statement.sql",
+      "unique_id": "macro.dbt.statement",
+      "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n  {%- if execute: -%}\n    {%- set compiled_code = caller() -%}\n\n    {%- if name == 'main' -%}\n      {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n      {{ write(compiled_code) }}\n    {%- endif -%}\n    {%- if language == 'sql'-%}\n      {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n    {%- elif language == 'python' -%}\n      {%- set res = submit_python_job(model, compiled_code) -%}\n      {#-- TODO: What should table be for python models? --#}\n      {%- set table = None -%}\n    {%- else -%}\n      {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n    {%- endif -%}\n\n    {%- if name is not none -%}\n      {{ store_result(name, response=res, agate_table=table) }}\n    {%- endif -%}\n\n  {%- endif -%}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.18353,
+      "supported_languages": null
+    },
+    "macro.dbt.noop_statement": {
+      "name": "noop_statement",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/etc/statement.sql",
+      "original_file_path": "macros/etc/statement.sql",
+      "unique_id": "macro.dbt.noop_statement",
+      "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n  {%- set sql = caller() -%}\n\n  {%- if name == 'main' -%}\n    {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n    {{ write(sql) }}\n  {%- endif -%}\n\n  {%- if name is not none -%}\n    {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n  {%- endif -%}\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.185042,
+      "supported_languages": null
+    },
+    "macro.dbt.run_query": {
+      "name": "run_query",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/etc/statement.sql",
+      "original_file_path": "macros/etc/statement.sql",
+      "unique_id": "macro.dbt.run_query",
+      "macro_sql": "{% macro run_query(sql) %}\n  {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n    {{ sql }}\n  {% endcall %}\n\n  {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.statement"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.185696,
+      "supported_languages": null
+    },
+    "macro.dbt.convert_datetime": {
+      "name": "convert_datetime",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/etc/datetime.sql",
+      "original_file_path": "macros/etc/datetime.sql",
+      "unique_id": "macro.dbt.convert_datetime",
+      "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n  {% set error_msg -%}\n      The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n  {%- endset %}\n\n  {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n  {{ return(res) }}\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.188875,
+      "supported_languages": null
+    },
+    "macro.dbt.dates_in_range": {
+      "name": "dates_in_range",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/etc/datetime.sql",
+      "original_file_path": "macros/etc/datetime.sql",
+      "unique_id": "macro.dbt.dates_in_range",
+      "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n    {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n    {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n    {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n    {% set day_count = (end_date - start_date).days %}\n    {% if day_count < 0 %}\n        {% set msg -%}\n            Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n        {%- endset %}\n\n        {{ exceptions.raise_compiler_error(msg, model) }}\n    {% endif %}\n\n    {% set date_list = [] %}\n    {% for i in range(0, day_count + 1) %}\n        {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n        {% if not out_fmt %}\n            {% set _ = date_list.append(the_date) %}\n        {% else %}\n            {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n        {% endif %}\n    {% endfor %}\n\n    {{ return(date_list) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.convert_datetime"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.191495,
+      "supported_languages": null
+    },
+    "macro.dbt.partition_range": {
+      "name": "partition_range",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/etc/datetime.sql",
+      "original_file_path": "macros/etc/datetime.sql",
+      "unique_id": "macro.dbt.partition_range",
+      "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n    {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n    {% if (partition_range | length) == 1 %}\n      {% set start_date = partition_range[0] %}\n      {% set end_date = none %}\n    {% elif (partition_range | length) == 2 %}\n      {% set start_date = partition_range[0] %}\n      {% set end_date = partition_range[1] %}\n    {% else %}\n      {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n    {% endif %}\n\n    {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.dates_in_range"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.193156,
+      "supported_languages": null
+    },
+    "macro.dbt.py_current_timestring": {
+      "name": "py_current_timestring",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/etc/datetime.sql",
+      "original_file_path": "macros/etc/datetime.sql",
+      "unique_id": "macro.dbt.py_current_timestring",
+      "macro_sql": "{% macro py_current_timestring() %}\n    {% set dt = modules.datetime.datetime.now() %}\n    {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1936839,
+      "supported_languages": null
+    },
+    "macro.dbt.except": {
+      "name": "except",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/except.sql",
+      "original_file_path": "macros/utils/except.sql",
+      "unique_id": "macro.dbt.except",
+      "macro_sql": "{% macro except() %}\n  {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__except"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1942232,
+      "supported_languages": null
+    },
+    "macro.dbt.default__except": {
+      "name": "default__except",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/except.sql",
+      "original_file_path": "macros/utils/except.sql",
+      "unique_id": "macro.dbt.default__except",
+      "macro_sql": "{% macro default__except() %}\n\n    except\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1944058,
+      "supported_languages": null
+    },
+    "macro.dbt.replace": {
+      "name": "replace",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/replace.sql",
+      "original_file_path": "macros/utils/replace.sql",
+      "unique_id": "macro.dbt.replace",
+      "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n    {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__replace"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.195088,
+      "supported_languages": null
+    },
+    "macro.dbt.default__replace": {
+      "name": "default__replace",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/replace.sql",
+      "original_file_path": "macros/utils/replace.sql",
+      "unique_id": "macro.dbt.default__replace",
+      "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n    replace(\n        {{ field }},\n        {{ old_chars }},\n        {{ new_chars }}\n    )\n\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.195466,
+      "supported_languages": null
+    },
+    "macro.dbt.concat": {
+      "name": "concat",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/concat.sql",
+      "original_file_path": "macros/utils/concat.sql",
+      "unique_id": "macro.dbt.concat",
+      "macro_sql": "{% macro concat(fields) -%}\n  {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__concat"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.196002,
+      "supported_languages": null
+    },
+    "macro.dbt.default__concat": {
+      "name": "default__concat",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/concat.sql",
+      "original_file_path": "macros/utils/concat.sql",
+      "unique_id": "macro.dbt.default__concat",
+      "macro_sql": "{% macro default__concat(fields) -%}\n    {{ fields|join(' || ') }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.196295,
+      "supported_languages": null
+    },
+    "macro.dbt.length": {
+      "name": "length",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/length.sql",
+      "original_file_path": "macros/utils/length.sql",
+      "unique_id": "macro.dbt.length",
+      "macro_sql": "{% macro length(expression) -%}\n    {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__length"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.196845,
+      "supported_languages": null
+    },
+    "macro.dbt.default__length": {
+      "name": "default__length",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/length.sql",
+      "original_file_path": "macros/utils/length.sql",
+      "unique_id": "macro.dbt.default__length",
+      "macro_sql": "{% macro default__length(expression) %}\n\n    length(\n        {{ expression }}\n    )\n\n{%- endmacro -%}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.197101,
+      "supported_languages": null
+    },
+    "macro.dbt.dateadd": {
+      "name": "dateadd",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/dateadd.sql",
+      "original_file_path": "macros/utils/dateadd.sql",
+      "unique_id": "macro.dbt.dateadd",
+      "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n  {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__dateadd"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1978161,
+      "supported_languages": null
+    },
+    "macro.dbt.default__dateadd": {
+      "name": "default__dateadd",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/dateadd.sql",
+      "original_file_path": "macros/utils/dateadd.sql",
+      "unique_id": "macro.dbt.default__dateadd",
+      "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n    dateadd(\n        {{ datepart }},\n        {{ interval }},\n        {{ from_date_or_timestamp }}\n        )\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.198206,
+      "supported_languages": null
+    },
+    "macro.dbt.intersect": {
+      "name": "intersect",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/intersect.sql",
+      "original_file_path": "macros/utils/intersect.sql",
+      "unique_id": "macro.dbt.intersect",
+      "macro_sql": "{% macro intersect() %}\n  {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__intersect"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1987042,
+      "supported_languages": null
+    },
+    "macro.dbt.default__intersect": {
+      "name": "default__intersect",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/intersect.sql",
+      "original_file_path": "macros/utils/intersect.sql",
+      "unique_id": "macro.dbt.default__intersect",
+      "macro_sql": "{% macro default__intersect() %}\n\n    intersect\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.1988952,
+      "supported_languages": null
+    },
+    "macro.dbt.escape_single_quotes": {
+      "name": "escape_single_quotes",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/escape_single_quotes.sql",
+      "original_file_path": "macros/utils/escape_single_quotes.sql",
+      "unique_id": "macro.dbt.escape_single_quotes",
+      "macro_sql": "{% macro escape_single_quotes(expression) %}\n      {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__escape_single_quotes"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.199469,
+      "supported_languages": null
+    },
+    "macro.dbt.default__escape_single_quotes": {
+      "name": "default__escape_single_quotes",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/escape_single_quotes.sql",
+      "original_file_path": "macros/utils/escape_single_quotes.sql",
+      "unique_id": "macro.dbt.default__escape_single_quotes",
+      "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.199797,
+      "supported_languages": null
+    },
+    "macro.dbt.right": {
+      "name": "right",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/right.sql",
+      "original_file_path": "macros/utils/right.sql",
+      "unique_id": "macro.dbt.right",
+      "macro_sql": "{% macro right(string_text, length_expression) -%}\n    {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__right"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.200432,
+      "supported_languages": null
+    },
+    "macro.dbt.default__right": {
+      "name": "default__right",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/right.sql",
+      "original_file_path": "macros/utils/right.sql",
+      "unique_id": "macro.dbt.default__right",
+      "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n    right(\n        {{ string_text }},\n        {{ length_expression }}\n    )\n\n{%- endmacro -%}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.200858,
+      "supported_languages": null
+    },
+    "macro.dbt.listagg": {
+      "name": "listagg",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/listagg.sql",
+      "original_file_path": "macros/utils/listagg.sql",
+      "unique_id": "macro.dbt.listagg",
+      "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n    {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__listagg"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2020512,
+      "supported_languages": null
+    },
+    "macro.dbt.default__listagg": {
+      "name": "default__listagg",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/listagg.sql",
+      "original_file_path": "macros/utils/listagg.sql",
+      "unique_id": "macro.dbt.default__listagg",
+      "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n    {% if limit_num -%}\n    array_to_string(\n        array_slice(\n            array_agg(\n                {{ measure }}\n            ){% if order_by_clause -%}\n            within group ({{ order_by_clause }})\n            {%- endif %}\n            ,0\n            ,{{ limit_num }}\n        ),\n        {{ delimiter_text }}\n        )\n    {%- else %}\n    listagg(\n        {{ measure }},\n        {{ delimiter_text }}\n        )\n        {% if order_by_clause -%}\n        within group ({{ order_by_clause }})\n        {%- endif %}\n    {%- endif %}\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.202959,
+      "supported_languages": null
+    },
+    "macro.dbt.datediff": {
+      "name": "datediff",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/datediff.sql",
+      "original_file_path": "macros/utils/datediff.sql",
+      "unique_id": "macro.dbt.datediff",
+      "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n  {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__datediff"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.20366,
+      "supported_languages": null
+    },
+    "macro.dbt.default__datediff": {
+      "name": "default__datediff",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/datediff.sql",
+      "original_file_path": "macros/utils/datediff.sql",
+      "unique_id": "macro.dbt.default__datediff",
+      "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n    datediff(\n        {{ datepart }},\n        {{ first_date }},\n        {{ second_date }}\n        )\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2040389,
+      "supported_languages": null
+    },
+    "macro.dbt.safe_cast": {
+      "name": "safe_cast",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/safe_cast.sql",
+      "original_file_path": "macros/utils/safe_cast.sql",
+      "unique_id": "macro.dbt.safe_cast",
+      "macro_sql": "{% macro safe_cast(field, type) %}\n  {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__safe_cast"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2046819,
+      "supported_languages": null
+    },
+    "macro.dbt.default__safe_cast": {
+      "name": "default__safe_cast",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/safe_cast.sql",
+      "original_file_path": "macros/utils/safe_cast.sql",
+      "unique_id": "macro.dbt.default__safe_cast",
+      "macro_sql": "{% macro default__safe_cast(field, type) %}\n    {# most databases don't support this function yet\n    so we just need to use cast #}\n    cast({{field}} as {{type}})\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2050061,
+      "supported_languages": null
+    },
+    "macro.dbt.hash": {
+      "name": "hash",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/hash.sql",
+      "original_file_path": "macros/utils/hash.sql",
+      "unique_id": "macro.dbt.hash",
+      "macro_sql": "{% macro hash(field) -%}\n  {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__hash"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.205559,
+      "supported_languages": null
+    },
+    "macro.dbt.default__hash": {
+      "name": "default__hash",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/hash.sql",
+      "original_file_path": "macros/utils/hash.sql",
+      "unique_id": "macro.dbt.default__hash",
+      "macro_sql": "{% macro default__hash(field) -%}\n    md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.205924,
+      "supported_languages": null
+    },
+    "macro.dbt.cast_bool_to_text": {
+      "name": "cast_bool_to_text",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/cast_bool_to_text.sql",
+      "original_file_path": "macros/utils/cast_bool_to_text.sql",
+      "unique_id": "macro.dbt.cast_bool_to_text",
+      "macro_sql": "{% macro cast_bool_to_text(field) %}\n  {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__cast_bool_to_text"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.206455,
+      "supported_languages": null
+    },
+    "macro.dbt.default__cast_bool_to_text": {
+      "name": "default__cast_bool_to_text",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/cast_bool_to_text.sql",
+      "original_file_path": "macros/utils/cast_bool_to_text.sql",
+      "unique_id": "macro.dbt.default__cast_bool_to_text",
+      "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n    cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2068229,
+      "supported_languages": null
+    },
+    "macro.dbt.any_value": {
+      "name": "any_value",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/any_value.sql",
+      "original_file_path": "macros/utils/any_value.sql",
+      "unique_id": "macro.dbt.any_value",
+      "macro_sql": "{% macro any_value(expression) -%}\n    {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__any_value"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.207361,
+      "supported_languages": null
+    },
+    "macro.dbt.default__any_value": {
+      "name": "default__any_value",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/any_value.sql",
+      "original_file_path": "macros/utils/any_value.sql",
+      "unique_id": "macro.dbt.default__any_value",
+      "macro_sql": "{% macro default__any_value(expression) -%}\n\n    any_value({{ expression }})\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.207607,
+      "supported_languages": null
+    },
+    "macro.dbt.position": {
+      "name": "position",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/position.sql",
+      "original_file_path": "macros/utils/position.sql",
+      "unique_id": "macro.dbt.position",
+      "macro_sql": "{% macro position(substring_text, string_text) -%}\n    {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt_bigquery.bigquery__position"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2082229,
+      "supported_languages": null
+    },
+    "macro.dbt.default__position": {
+      "name": "default__position",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/position.sql",
+      "original_file_path": "macros/utils/position.sql",
+      "unique_id": "macro.dbt.default__position",
+      "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n    position(\n        {{ substring_text }} in {{ string_text }}\n    )\n\n{%- endmacro -%}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.208537,
+      "supported_languages": null
+    },
+    "macro.dbt.string_literal": {
+      "name": "string_literal",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/literal.sql",
+      "original_file_path": "macros/utils/literal.sql",
+      "unique_id": "macro.dbt.string_literal",
+      "macro_sql": "{%- macro string_literal(value) -%}\n  {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__string_literal"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.209064,
+      "supported_languages": null
+    },
+    "macro.dbt.default__string_literal": {
+      "name": "default__string_literal",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/literal.sql",
+      "original_file_path": "macros/utils/literal.sql",
+      "unique_id": "macro.dbt.default__string_literal",
+      "macro_sql": "{% macro default__string_literal(value) -%}\n    '{{ value }}'\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.209318,
+      "supported_languages": null
+    },
+    "macro.dbt.type_string": {
+      "name": "type_string",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.type_string",
+      "macro_sql": "\n\n{%- macro type_string() -%}\n  {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__type_string"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.211055,
+      "supported_languages": null
+    },
+    "macro.dbt.default__type_string": {
+      "name": "default__type_string",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.default__type_string",
+      "macro_sql": "{% macro default__type_string() %}\n    {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2114089,
+      "supported_languages": null
+    },
+    "macro.dbt.type_timestamp": {
+      "name": "type_timestamp",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.type_timestamp",
+      "macro_sql": "\n\n{%- macro type_timestamp() -%}\n  {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__type_timestamp"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2120588,
+      "supported_languages": null
+    },
+    "macro.dbt.default__type_timestamp": {
+      "name": "default__type_timestamp",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.default__type_timestamp",
+      "macro_sql": "{% macro default__type_timestamp() %}\n    {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.212418,
+      "supported_languages": null
+    },
+    "macro.dbt.type_float": {
+      "name": "type_float",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.type_float",
+      "macro_sql": "\n\n{%- macro type_float() -%}\n  {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__type_float"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2127879,
+      "supported_languages": null
+    },
+    "macro.dbt.default__type_float": {
+      "name": "default__type_float",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.default__type_float",
+      "macro_sql": "{% macro default__type_float() %}\n    {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.213135,
+      "supported_languages": null
+    },
+    "macro.dbt.type_numeric": {
+      "name": "type_numeric",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.type_numeric",
+      "macro_sql": "\n\n{%- macro type_numeric() -%}\n  {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__type_numeric"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.213503,
+      "supported_languages": null
+    },
+    "macro.dbt.default__type_numeric": {
+      "name": "default__type_numeric",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.default__type_numeric",
+      "macro_sql": "{% macro default__type_numeric() %}\n    {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.213902,
+      "supported_languages": null
+    },
+    "macro.dbt.type_bigint": {
+      "name": "type_bigint",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.type_bigint",
+      "macro_sql": "\n\n{%- macro type_bigint() -%}\n  {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.default__type_bigint"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.214268,
+      "supported_languages": null
+    },
+    "macro.dbt.default__type_bigint": {
+      "name": "default__type_bigint",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.default__type_bigint",
+      "macro_sql": "{% macro default__type_bigint() %}\n    {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.214615,
+      "supported_languages": null
+    },
+    "macro.dbt.type_int": {
+      "name": "type_int",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.type_int",
+      "macro_sql": "\n\n{%- macro type_int() -%}\n  {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n",
       "depends_on": {
         "macros": [
-          "macro.dbt.should_full_refresh"
+          "macro.dbt.default__type_int"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3554618
+      "created_at": 1692200505.2149801,
+      "supported_languages": null
     },
-    "macro.dbt.materialization_incremental_default": {
-      "unique_id": "macro.dbt.materialization_incremental_default",
+    "macro.dbt.default__type_int": {
+      "name": "default__type_int",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/incremental.sql",
-      "original_file_path": "macros/materializations/models/incremental/incremental.sql",
-      "name": "materialization_incremental_default",
-      "macro_sql": "{% materialization incremental, default -%}\n\n  {% set unique_key = config.get('unique_key') %}\n\n  {% set target_relation = this.incorporate(type='table') %}\n  {% set existing_relation = load_relation(this) %}\n  {% set tmp_relation = make_temp_relation(target_relation) %}\n  {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n  {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n  {% set tmp_identifier = model['name'] + '__dbt_tmp' %}\n  {% set backup_identifier = model['name'] + \"__dbt_backup\" %}\n\n  -- the intermediate_ and backup_ relations should not already exist in the database; get_relation\n  -- will return None in that case. Otherwise, we get a relation that we can drop\n  -- later, before we try to use this name for the current operation. This has to happen before\n  -- BEGIN, in a separate transaction\n  {% set preexisting_intermediate_relation = adapter.get_relation(identifier=tmp_identifier, \n                                                                  schema=schema,\n                                                                  database=database) %}                                               \n  {% set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n                                                            schema=schema,\n                                                            database=database) %}\n  {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n  {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  -- `BEGIN` happens here:\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  {% set to_drop = [] %}\n\n  {# -- first check whether we want to full refresh for source view or config reasons #}\n  {% set trigger_full_refresh = (full_refresh_mode or existing_relation.is_view) %}\n\n  {% if existing_relation is none %}\n      {% set build_sql = create_table_as(False, target_relation, sql) %}\n{% elif trigger_full_refresh %}\n      {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}\n      {% set tmp_identifier = model['name'] + '__dbt_tmp' %}\n      {% set backup_identifier = model['name'] + '__dbt_backup' %}\n      {% set intermediate_relation = existing_relation.incorporate(path={\"identifier\": tmp_identifier}) %}\n      {% set backup_relation = existing_relation.incorporate(path={\"identifier\": backup_identifier}) %}\n\n      {% set build_sql = create_table_as(False, intermediate_relation, sql) %}\n      {% set need_swap = true %}\n      {% do to_drop.append(backup_relation) %}\n  {% else %}\n    {% do run_query(create_table_as(True, tmp_relation, sql)) %}\n    {% do adapter.expand_target_column_types(\n             from_relation=tmp_relation,\n             to_relation=target_relation) %}\n    {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n    {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n    {% if not dest_columns %}\n      {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n    {% endif %}\n    {% set build_sql = get_delete_insert_merge_sql(target_relation, tmp_relation, unique_key, dest_columns) %}\n  \n  {% endif %}\n\n  {% call statement(\"main\") %}\n      {{ build_sql }}\n  {% endcall %}\n\n  {% if need_swap %} \n      {% do adapter.rename_relation(target_relation, backup_relation) %} \n      {% do adapter.rename_relation(intermediate_relation, target_relation) %} \n  {% endif %}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n    {% do create_indexes(target_relation) %}\n  {% endif %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  -- `COMMIT` happens here\n  {% do adapter.commit() %}\n\n  {% for rel in to_drop %}\n      {% do adapter.drop_relation(rel) %}\n  {% endfor %}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.default__type_int",
+      "macro_sql": "{%- macro default__type_int() -%}\n  {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.215313,
+      "supported_languages": null
+    },
+    "macro.dbt.type_boolean": {
+      "name": "type_boolean",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.type_boolean",
+      "macro_sql": "\n\n{%- macro type_boolean() -%}\n  {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n",
       "depends_on": {
         "macros": [
-          "macro.dbt.load_relation",
-          "macro.dbt.make_temp_relation",
-          "macro.dbt.should_full_refresh",
-          "macro.dbt.incremental_validate_on_schema_change",
-          "macro.dbt.drop_relation_if_exists",
-          "macro.dbt.run_hooks",
-          "macro.dbt.create_table_as",
-          "macro.dbt.run_query",
-          "macro.dbt.process_schema_changes",
-          "macro.dbt.get_delete_insert_merge_sql",
-          "macro.dbt.statement",
-          "macro.dbt.persist_docs",
-          "macro.dbt.create_indexes"
+          "macro.dbt.default__type_boolean"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.365685
+      "created_at": 1692200505.21568,
+      "supported_languages": null
     },
-    "macro.dbt.incremental_validate_on_schema_change": {
-      "unique_id": "macro.dbt.incremental_validate_on_schema_change",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/on_schema_change.sql",
-      "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql",
-      "name": "incremental_validate_on_schema_change",
-      "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n   \n   {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n     \n     {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n     {% do log(log_message) %}\n     \n     {{ return(default) }}\n\n   {% else %}\n\n     {{ return(on_schema_change) }}\n   \n   {% endif %}\n\n{% endmacro %}",
+    "macro.dbt.default__type_boolean": {
+      "name": "default__type_boolean",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/data_types.sql",
+      "original_file_path": "macros/utils/data_types.sql",
+      "unique_id": "macro.dbt.default__type_boolean",
+      "macro_sql": "{%- macro default__type_boolean() -%}\n  {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.373944
+      "created_at": 1692200505.216012,
+      "supported_languages": null
     },
-    "macro.dbt.check_for_schema_changes": {
-      "unique_id": "macro.dbt.check_for_schema_changes",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/on_schema_change.sql",
-      "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql",
-      "name": "check_for_schema_changes",
-      "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n  \n  {% set schema_changed = False %}\n  \n  {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n  {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n  {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n  {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n  {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n  {% if source_not_in_target != [] %}\n    {% set schema_changed = True %}\n  {% elif target_not_in_source != [] or new_target_types != [] %}\n    {% set schema_changed = True %}\n  {% elif new_target_types != [] %}\n    {% set schema_changed = True %}\n  {% endif %}\n  \n  {% set changes_dict = {\n    'schema_changed': schema_changed,\n    'source_not_in_target': source_not_in_target,\n    'target_not_in_source': target_not_in_source,\n    'source_columns': source_columns,\n    'target_columns': target_columns,\n    'new_target_types': new_target_types\n  } %}\n\n  {% set msg %}\n    In {{ target_relation }}:\n        Schema changed: {{ schema_changed }}\n        Source columns not in target: {{ source_not_in_target }}\n        Target columns not in source: {{ target_not_in_source }}\n        New column types: {{ new_target_types }}\n  {% endset %}\n  \n  {% do log(msg) %}\n\n  {{ return(changes_dict) }}\n\n{% endmacro %}",
+    "macro.dbt.array_concat": {
+      "name": "array_concat",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/array_concat.sql",
+      "original_file_path": "macros/utils/array_concat.sql",
+      "unique_id": "macro.dbt.array_concat",
+      "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n  {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.diff_columns",
-          "macro.dbt.diff_column_data_types"
+          "macro.dbt_bigquery.bigquery__array_concat"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3767622
+      "created_at": 1692200505.216605,
+      "supported_languages": null
     },
-    "macro.dbt.sync_column_schemas": {
-      "unique_id": "macro.dbt.sync_column_schemas",
+    "macro.dbt.default__array_concat": {
+      "name": "default__array_concat",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/on_schema_change.sql",
-      "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql",
-      "name": "sync_column_schemas",
-      "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n  \n  {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n  {%- if on_schema_change == 'append_new_columns'-%}\n     {%- if add_to_target_arr | length > 0 -%}\n       {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n     {%- endif -%}\n  \n  {% elif on_schema_change == 'sync_all_columns' %}\n     {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n     {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n  \n     {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %} \n       {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n     {% endif %}\n\n     {% if new_target_types != [] %}\n       {% for ntt in new_target_types %}\n         {% set column_name = ntt['column_name'] %}\n         {% set new_type = ntt['new_type'] %}\n         {% do alter_column_type(target_relation, column_name, new_type) %}\n       {% endfor %}\n     {% endif %}\n  \n  {% endif %}\n\n  {% set schema_change_message %}\n    In {{ target_relation }}:\n        Schema change approach: {{ on_schema_change }}\n        Columns added: {{ add_to_target_arr }}\n        Columns removed: {{ remove_from_target_arr }}\n        Data types changed: {{ new_target_types }}\n  {% endset %}\n  \n  {% do log(schema_change_message) %}\n  \n{% endmacro %}",
+      "path": "macros/utils/array_concat.sql",
+      "original_file_path": "macros/utils/array_concat.sql",
+      "unique_id": "macro.dbt.default__array_concat",
+      "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n    array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.216914,
+      "supported_languages": null
+    },
+    "macro.dbt.bool_or": {
+      "name": "bool_or",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/bool_or.sql",
+      "original_file_path": "macros/utils/bool_or.sql",
+      "unique_id": "macro.dbt.bool_or",
+      "macro_sql": "{% macro bool_or(expression) -%}\n    {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.alter_relation_add_remove_columns",
-          "macro.dbt.alter_column_type"
+          "macro.dbt_bigquery.bigquery__bool_or"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.379337
+      "created_at": 1692200505.21745,
+      "supported_languages": null
     },
-    "macro.dbt.process_schema_changes": {
-      "unique_id": "macro.dbt.process_schema_changes",
+    "macro.dbt.default__bool_or": {
+      "name": "default__bool_or",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/incremental/on_schema_change.sql",
-      "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql",
-      "name": "process_schema_changes",
-      "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n    \n    {% if on_schema_change == 'ignore' %}\n\n     {{ return({}) }}\n\n    {% else %}\n    \n      {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n      \n      {% if schema_changes_dict['schema_changed'] %}\n    \n        {% if on_schema_change == 'fail' %}\n        \n          {% set fail_msg %}\n              The source and target schemas on this incremental model are out of sync!\n              They can be reconciled in several ways: \n                - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n                - Re-run the incremental model with `full_refresh: True` to update the target schema.\n                - update the schema manually and re-run the process.\n          {% endset %}\n          \n          {% do exceptions.raise_compiler_error(fail_msg) %}\n        \n        {# -- unless we ignore, run the sync operation per the config #}\n        {% else %}\n          \n          {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n        \n        {% endif %}\n      \n      {% endif %}\n\n      {{ return(schema_changes_dict['source_columns']) }}\n    \n    {% endif %}\n\n{% endmacro %}",
+      "path": "macros/utils/bool_or.sql",
+      "original_file_path": "macros/utils/bool_or.sql",
+      "unique_id": "macro.dbt.default__bool_or",
+      "macro_sql": "{% macro default__bool_or(expression) -%}\n\n    bool_or({{ expression }})\n\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.217697,
+      "supported_languages": null
+    },
+    "macro.dbt.last_day": {
+      "name": "last_day",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/last_day.sql",
+      "original_file_path": "macros/utils/last_day.sql",
+      "unique_id": "macro.dbt.last_day",
+      "macro_sql": "{% macro last_day(date, datepart) %}\n  {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.check_for_schema_changes",
-          "macro.dbt.sync_column_schemas"
+          "macro.dbt.default__last_day"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.380908
+      "created_at": 1692200505.218405,
+      "supported_languages": null
     },
-    "macro.dbt.materialization_table_default": {
-      "unique_id": "macro.dbt.materialization_table_default",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/table/table.sql",
-      "original_file_path": "macros/materializations/models/table/table.sql",
-      "name": "materialization_table_default",
-      "macro_sql": "{% materialization table, default %}\n  {%- set identifier = model['alias'] -%}\n  {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n  {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n  {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n  {%- set target_relation = api.Relation.create(identifier=identifier,\n                                                schema=schema,\n                                                database=database,\n                                                type='table') -%}\n  {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n                                                      schema=schema,\n                                                      database=database,\n                                                      type='table') -%}\n  -- the intermediate_relation should not already exist in the database; get_relation\n  -- will return None in that case. Otherwise, we get a relation that we can drop\n  -- later, before we try to use this name for the current operation\n  {%- set preexisting_intermediate_relation = adapter.get_relation(identifier=tmp_identifier, \n                                                                   schema=schema,\n                                                                   database=database) -%}\n  /*\n      See ../view/view.sql for more information about this relation.\n  */\n  {%- set backup_relation_type = 'table' if old_relation is none else old_relation.type -%}\n  {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n                                                schema=schema,\n                                                database=database,\n                                                type=backup_relation_type) -%}\n  -- as above, the backup_relation should not already exist\n  {%- set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n                                                             schema=schema,\n                                                             database=database) -%}\n\n\n  -- drop the temp relations if they exist already in the database\n  {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n  {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  -- `BEGIN` happens here:\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  -- build model\n  {% call statement('main') -%}\n    {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n  {%- endcall %}\n\n  -- cleanup\n  {% if old_relation is not none %}\n      {{ adapter.rename_relation(old_relation, backup_relation) }}\n  {% endif %}\n\n  {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n  {% do create_indexes(target_relation) %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  {% do persist_docs(target_relation, model) %}\n\n  -- `COMMIT` happens here\n  {{ adapter.commit() }}\n\n  -- finally, drop the existing/backup relation after the commit\n  {{ drop_relation_if_exists(backup_relation) }}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}",
+    "macro.dbt.default_last_day": {
+      "name": "default_last_day",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/last_day.sql",
+      "original_file_path": "macros/utils/last_day.sql",
+      "unique_id": "macro.dbt.default_last_day",
+      "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n    cast(\n        {{dbt.dateadd('day', '-1',\n        dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n        )}}\n        as date)\n{%- endmacro -%}\n\n",
       "depends_on": {
         "macros": [
-          "macro.dbt.drop_relation_if_exists",
-          "macro.dbt.run_hooks",
-          "macro.dbt.statement",
-          "macro.dbt.get_create_table_as_sql",
-          "macro.dbt.create_indexes",
-          "macro.dbt.persist_docs"
+          "macro.dbt.dateadd",
+          "macro.dbt.date_trunc"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.387743
+      "created_at": 1692200505.218996,
+      "supported_languages": null
     },
-    "macro.dbt.get_create_table_as_sql": {
-      "unique_id": "macro.dbt.get_create_table_as_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/table/create_table_as.sql",
-      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
-      "name": "get_create_table_as_sql",
-      "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n  {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}",
+    "macro.dbt.default__last_day": {
+      "name": "default__last_day",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/last_day.sql",
+      "original_file_path": "macros/utils/last_day.sql",
+      "unique_id": "macro.dbt.default__last_day",
+      "macro_sql": "{% macro default__last_day(date, datepart) -%}\n    {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__get_create_table_as_sql"
+          "macro.dbt.default_last_day"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3886862
+      "created_at": 1692200505.219334,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_create_table_as_sql": {
-      "unique_id": "macro.dbt.default__get_create_table_as_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/table/create_table_as.sql",
-      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
-      "name": "default__get_create_table_as_sql",
-      "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n  {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}",
+    "macro.dbt.split_part": {
+      "name": "split_part",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/split_part.sql",
+      "original_file_path": "macros/utils/split_part.sql",
+      "unique_id": "macro.dbt.split_part",
+      "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n  {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.create_table_as"
+          "macro.dbt_bigquery.bigquery__split_part"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.389083
+      "created_at": 1692200505.220333,
+      "supported_languages": null
     },
-    "macro.dbt.create_table_as": {
-      "unique_id": "macro.dbt.create_table_as",
+    "macro.dbt.default__split_part": {
+      "name": "default__split_part",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/table/create_table_as.sql",
-      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
-      "name": "create_table_as",
-      "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n  {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}",
+      "path": "macros/utils/split_part.sql",
+      "original_file_path": "macros/utils/split_part.sql",
+      "unique_id": "macro.dbt.default__split_part",
+      "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n    split_part(\n        {{ string_text }},\n        {{ delimiter_text }},\n        {{ part_number }}\n        )\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.220717,
+      "supported_languages": null
+    },
+    "macro.dbt._split_part_negative": {
+      "name": "_split_part_negative",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/split_part.sql",
+      "original_file_path": "macros/utils/split_part.sql",
+      "unique_id": "macro.dbt._split_part_negative",
+      "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n    split_part(\n        {{ string_text }},\n        {{ delimiter_text }},\n          length({{ string_text }})\n          - length(\n              replace({{ string_text }},  {{ delimiter_text }}, '')\n          ) + 2 {{ part_number }}\n        )\n\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.221334,
+      "supported_languages": null
+    },
+    "macro.dbt.date_trunc": {
+      "name": "date_trunc",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/utils/date_trunc.sql",
+      "original_file_path": "macros/utils/date_trunc.sql",
+      "unique_id": "macro.dbt.date_trunc",
+      "macro_sql": "{% macro date_trunc(datepart, date) -%}\n  {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__create_table_as"
+          "macro.dbt_bigquery.bigquery__date_trunc"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3895822
+      "created_at": 1692200505.221929,
+      "supported_languages": null
     },
-    "macro.dbt.default__create_table_as": {
-      "unique_id": "macro.dbt.default__create_table_as",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/table/create_table_as.sql",
-      "original_file_path": "macros/materializations/models/table/create_table_as.sql",
-      "name": "default__create_table_as",
-      "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n  {%- set sql_header = config.get('sql_header', none) -%}\n  \n  {{ sql_header if sql_header is not none }}\n  \n  create {% if temporary: -%}temporary{%- endif %} table\n    {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n  as (\n    {{ sql }}\n  );\n{%- endmacro %}",
+    "macro.dbt.default__date_trunc": {
+      "name": "default__date_trunc",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/date_trunc.sql",
+      "original_file_path": "macros/utils/date_trunc.sql",
+      "unique_id": "macro.dbt.default__date_trunc",
+      "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n    date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.390631
+      "created_at": 1692200505.222234,
+      "supported_languages": null
     },
-    "macro.dbt.materialization_view_default": {
-      "unique_id": "macro.dbt.materialization_view_default",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/view/view.sql",
-      "original_file_path": "macros/materializations/models/view/view.sql",
-      "name": "materialization_view_default",
-      "macro_sql": "{%- materialization view, default -%}\n\n  {%- set identifier = model['alias'] -%}\n  {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n  {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n  {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n  {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, database=database,\n                                                type='view') -%}\n  {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n                                                      schema=schema, database=database, type='view') -%}\n  -- the intermediate_relation should not already exist in the database; get_relation\n  -- will return None in that case. Otherwise, we get a relation that we can drop\n  -- later, before we try to use this name for the current operation\n  {%- set preexisting_intermediate_relation = adapter.get_relation(identifier=tmp_identifier, \n                                                                   schema=schema,\n                                                                   database=database) -%}\n  /*\n     This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n     a previous run, and we're going to try to drop it immediately. At the end of this\n     materialization, we're going to rename the \"old_relation\" to this identifier,\n     and then we're going to drop it. In order to make sure we run the correct one of:\n       - drop view ...\n       - drop table ...\n\n     We need to set the type of this relation to be the type of the old_relation, if it exists,\n     or else \"view\" as a sane default if it does not. Note that if the old_relation does not\n     exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n     this relation will be effectively unused.\n  */\n  {%- set backup_relation_type = 'view' if old_relation is none else old_relation.type -%}\n  {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n                                                schema=schema, database=database,\n                                                type=backup_relation_type) -%}\n  -- as above, the backup_relation should not already exist\n  {%- set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n                                                             schema=schema,\n                                                             database=database) -%}\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  -- drop the temp relations if they exist already in the database\n  {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n  {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n  -- `BEGIN` happens here:\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  -- build model\n  {% call statement('main') -%}\n    {{ create_view_as(intermediate_relation, sql) }}\n  {%- endcall %}\n\n  -- cleanup\n  -- move the existing view out of the way\n  {% if old_relation is not none %}\n    {{ adapter.rename_relation(old_relation, backup_relation) }}\n  {% endif %}\n  {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n  {% do persist_docs(target_relation, model) %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  {{ adapter.commit() }}\n\n  {{ drop_relation_if_exists(backup_relation) }}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}",
+    "macro.dbt.array_construct": {
+      "name": "array_construct",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/array_construct.sql",
+      "original_file_path": "macros/utils/array_construct.sql",
+      "unique_id": "macro.dbt.array_construct",
+      "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n  {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.run_hooks",
-          "macro.dbt.drop_relation_if_exists",
-          "macro.dbt.statement",
-          "macro.dbt.create_view_as",
-          "macro.dbt.persist_docs"
+          "macro.dbt_bigquery.bigquery__array_construct"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.397456
+      "created_at": 1692200505.223026,
+      "supported_languages": null
     },
-    "macro.dbt.handle_existing_table": {
-      "unique_id": "macro.dbt.handle_existing_table",
+    "macro.dbt.default__array_construct": {
+      "name": "default__array_construct",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/view/helpers.sql",
-      "original_file_path": "macros/materializations/models/view/helpers.sql",
-      "name": "handle_existing_table",
-      "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n    {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}",
+      "path": "macros/utils/array_construct.sql",
+      "original_file_path": "macros/utils/array_construct.sql",
+      "unique_id": "macro.dbt.default__array_construct",
+      "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n    {% if inputs|length > 0 %}\n    array[ {{ inputs|join(' , ') }} ]\n    {% else %}\n    array[]::{{data_type}}[]\n    {% endif %}\n{%- endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.223573,
+      "supported_languages": null
+    },
+    "macro.dbt.array_append": {
+      "name": "array_append",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/array_append.sql",
+      "original_file_path": "macros/utils/array_append.sql",
+      "unique_id": "macro.dbt.array_append",
+      "macro_sql": "{% macro array_append(array, new_element) -%}\n  {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__handle_existing_table"
+          "macro.dbt_bigquery.bigquery__array_append"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.398182
+      "created_at": 1692200505.2241778,
+      "supported_languages": null
     },
-    "macro.dbt.default__handle_existing_table": {
-      "unique_id": "macro.dbt.default__handle_existing_table",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/view/helpers.sql",
-      "original_file_path": "macros/materializations/models/view/helpers.sql",
-      "name": "default__handle_existing_table",
-      "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n    {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n    {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}",
+    "macro.dbt.default__array_append": {
+      "name": "default__array_append",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/utils/array_append.sql",
+      "original_file_path": "macros/utils/array_append.sql",
+      "unique_id": "macro.dbt.default__array_append",
+      "macro_sql": "{% macro default__array_append(array, new_element) -%}\n    array_append({{ array }}, {{ new_element }})\n{%- endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.3986611
+      "created_at": 1692200505.22449,
+      "supported_languages": null
     },
-    "macro.dbt.create_or_replace_view": {
-      "unique_id": "macro.dbt.create_or_replace_view",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/view/create_or_replace_view.sql",
-      "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql",
-      "name": "create_or_replace_view",
-      "macro_sql": "{% macro create_or_replace_view() %}\n  {%- set identifier = model['alias'] -%}\n\n  {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n  {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n  {%- set target_relation = api.Relation.create(\n      identifier=identifier, schema=schema, database=database,\n      type='view') -%}\n\n  {{ run_hooks(pre_hooks) }}\n\n  -- If there's a table with the same name and we weren't told to full refresh,\n  -- that's an error. If we were told to full refresh, drop it. This behavior differs\n  -- for Snowflake and BigQuery, so multiple dispatch is used.\n  {%- if old_relation is not none and old_relation.is_table -%}\n    {{ handle_existing_table(should_full_refresh(), old_relation) }}\n  {%- endif -%}\n\n  -- build model\n  {% call statement('main') -%}\n    {{ get_create_view_as_sql(target_relation, sql) }}\n  {%- endcall %}\n\n  {{ run_hooks(post_hooks) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}",
+    "macro.dbt.create_schema": {
+      "name": "create_schema",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/schema.sql",
+      "original_file_path": "macros/adapters/schema.sql",
+      "unique_id": "macro.dbt.create_schema",
+      "macro_sql": "{% macro create_schema(relation) -%}\n  {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.run_hooks",
-          "macro.dbt.handle_existing_table",
-          "macro.dbt.should_full_refresh",
-          "macro.dbt.statement",
-          "macro.dbt.get_create_view_as_sql"
+          "macro.dbt.default__create_schema"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.401128
+      "created_at": 1692200505.2252312,
+      "supported_languages": null
     },
-    "macro.dbt.get_create_view_as_sql": {
-      "unique_id": "macro.dbt.get_create_view_as_sql",
+    "macro.dbt.default__create_schema": {
+      "name": "default__create_schema",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/view/create_view_as.sql",
-      "original_file_path": "macros/materializations/models/view/create_view_as.sql",
-      "name": "get_create_view_as_sql",
-      "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n  {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}",
+      "path": "macros/adapters/schema.sql",
+      "original_file_path": "macros/adapters/schema.sql",
+      "unique_id": "macro.dbt.default__create_schema",
+      "macro_sql": "{% macro default__create_schema(relation) -%}\n  {%- call statement('create_schema') -%}\n    create schema if not exists {{ relation.without_identifier() }}\n  {% endcall %}\n{% endmacro %}",
+      "depends_on": {
+        "macros": [
+          "macro.dbt.statement"
+        ]
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2256541,
+      "supported_languages": null
+    },
+    "macro.dbt.drop_schema": {
+      "name": "drop_schema",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/schema.sql",
+      "original_file_path": "macros/adapters/schema.sql",
+      "unique_id": "macro.dbt.drop_schema",
+      "macro_sql": "{% macro drop_schema(relation) -%}\n  {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__get_create_view_as_sql"
+          "macro.dbt_bigquery.bigquery__drop_schema"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.401951
+      "created_at": 1692200505.226032,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_create_view_as_sql": {
-      "unique_id": "macro.dbt.default__get_create_view_as_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/view/create_view_as.sql",
-      "original_file_path": "macros/materializations/models/view/create_view_as.sql",
-      "name": "default__get_create_view_as_sql",
-      "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n  {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}",
+    "macro.dbt.default__drop_schema": {
+      "name": "default__drop_schema",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/schema.sql",
+      "original_file_path": "macros/adapters/schema.sql",
+      "unique_id": "macro.dbt.default__drop_schema",
+      "macro_sql": "{% macro default__drop_schema(relation) -%}\n  {%- call statement('drop_schema') -%}\n    drop schema if exists {{ relation.without_identifier() }} cascade\n  {% endcall %}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.create_view_as"
+          "macro.dbt.statement"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4023051
+      "created_at": 1692200505.226455,
+      "supported_languages": null
     },
-    "macro.dbt.create_view_as": {
-      "unique_id": "macro.dbt.create_view_as",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/view/create_view_as.sql",
-      "original_file_path": "macros/materializations/models/view/create_view_as.sql",
-      "name": "create_view_as",
-      "macro_sql": "{% macro create_view_as(relation, sql) -%}\n  {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}",
+    "macro.dbt.current_timestamp": {
+      "name": "current_timestamp",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/timestamps.sql",
+      "original_file_path": "macros/adapters/timestamps.sql",
+      "unique_id": "macro.dbt.current_timestamp",
+      "macro_sql": "{%- macro current_timestamp() -%}\n    {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__create_view_as"
+          "macro.dbt_bigquery.bigquery__current_timestamp"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.402698
+      "created_at": 1692200505.2273679,
+      "supported_languages": null
     },
-    "macro.dbt.default__create_view_as": {
-      "unique_id": "macro.dbt.default__create_view_as",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/models/view/create_view_as.sql",
-      "original_file_path": "macros/materializations/models/view/create_view_as.sql",
-      "name": "default__create_view_as",
-      "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n  {%- set sql_header = config.get('sql_header', none) -%}\n\n  {{ sql_header if sql_header is not none }}\n  create view {{ relation }} as (\n    {{ sql }}\n  );\n{%- endmacro %}",
+    "macro.dbt.default__current_timestamp": {
+      "name": "default__current_timestamp",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/timestamps.sql",
+      "original_file_path": "macros/adapters/timestamps.sql",
+      "unique_id": "macro.dbt.default__current_timestamp",
+      "macro_sql": "{% macro default__current_timestamp() -%}\n  {{ exceptions.raise_not_implemented(\n    'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.403262
+      "created_at": 1692200505.227711,
+      "supported_languages": null
     },
-    "macro.dbt.materialization_seed_default": {
-      "unique_id": "macro.dbt.materialization_seed_default",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/seed.sql",
-      "original_file_path": "macros/materializations/seeds/seed.sql",
-      "name": "materialization_seed_default",
-      "macro_sql": "{% materialization seed, default %}\n\n  {%- set identifier = model['alias'] -%}\n  {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n  {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n  {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n  {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n  {%- set agate_table = load_agate_table() -%}\n  {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n  {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n  -- `BEGIN` happens here:\n  {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n  -- build model\n  {% set create_table_sql = \"\" %}\n  {% if exists_as_view %}\n    {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n  {% elif exists_as_table %}\n    {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n  {% else %}\n    {% set create_table_sql = create_csv_table(model, agate_table) %}\n  {% endif %}\n\n  {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n  {% set rows_affected = (agate_table.rows | length) %}\n  {% set sql = load_csv_rows(model, agate_table) %}\n\n  {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n    {{ create_table_sql }};\n    -- dbt seed --\n    {{ sql }}\n  {% endcall %}\n\n  {% set target_relation = this.incorporate(type='table') %}\n  {% do persist_docs(target_relation, model) %}\n\n  {% if full_refresh_mode or not exists_as_table %}\n    {% do create_indexes(target_relation) %}\n  {% endif %}\n\n  {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n  -- `COMMIT` happens here\n  {{ adapter.commit() }}\n\n  {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n  {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}",
+    "macro.dbt.snapshot_get_time": {
+      "name": "snapshot_get_time",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/timestamps.sql",
+      "original_file_path": "macros/adapters/timestamps.sql",
+      "unique_id": "macro.dbt.snapshot_get_time",
+      "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n    {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n",
       "depends_on": {
         "macros": [
-          "macro.dbt.should_full_refresh",
-          "macro.dbt.run_hooks",
-          "macro.dbt.reset_csv_table",
-          "macro.dbt.create_csv_table",
-          "macro.dbt.load_csv_rows",
-          "macro.dbt.noop_statement",
-          "macro.dbt.persist_docs",
-          "macro.dbt.create_indexes"
+          "macro.dbt.default__snapshot_get_time"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4091089
+      "created_at": 1692200505.228042,
+      "supported_languages": null
     },
-    "macro.dbt.create_csv_table": {
-      "unique_id": "macro.dbt.create_csv_table",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "create_csv_table",
-      "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n  {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}",
+    "macro.dbt.default__snapshot_get_time": {
+      "name": "default__snapshot_get_time",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/timestamps.sql",
+      "original_file_path": "macros/adapters/timestamps.sql",
+      "unique_id": "macro.dbt.default__snapshot_get_time",
+      "macro_sql": "{% macro default__snapshot_get_time() %}\n    {{ current_timestamp() }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__create_csv_table"
+          "macro.dbt.current_timestamp"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.415308
+      "created_at": 1692200505.228292,
+      "supported_languages": null
     },
-    "macro.dbt.default__create_csv_table": {
-      "unique_id": "macro.dbt.default__create_csv_table",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "default__create_csv_table",
-      "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n  {%- set column_override = model['config'].get('column_types', {}) -%}\n  {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n  {% set sql %}\n    create table {{ this.render() }} (\n        {%- for col_name in agate_table.column_names -%}\n            {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n            {%- set type = column_override.get(col_name, inferred_type) -%}\n            {%- set column_name = (col_name | string) -%}\n            {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n        {%- endfor -%}\n    )\n  {% endset %}\n\n  {% call statement('_') -%}\n    {{ sql }}\n  {%- endcall %}\n\n  {{ return(sql) }}\n{% endmacro %}",
+    "macro.dbt.current_timestamp_backcompat": {
+      "name": "current_timestamp_backcompat",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/timestamps.sql",
+      "original_file_path": "macros/adapters/timestamps.sql",
+      "unique_id": "macro.dbt.current_timestamp_backcompat",
+      "macro_sql": "{% macro current_timestamp_backcompat() %}\n    {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.statement"
+          "macro.dbt_bigquery.bigquery__current_timestamp_backcompat"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4172711
+      "created_at": 1692200505.228672,
+      "supported_languages": null
     },
-    "macro.dbt.reset_csv_table": {
-      "unique_id": "macro.dbt.reset_csv_table",
+    "macro.dbt.default__current_timestamp_backcompat": {
+      "name": "default__current_timestamp_backcompat",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "reset_csv_table",
-      "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n  {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}",
+      "path": "macros/adapters/timestamps.sql",
+      "original_file_path": "macros/adapters/timestamps.sql",
+      "unique_id": "macro.dbt.default__current_timestamp_backcompat",
+      "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n    current_timestamp::timestamp\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2288551,
+      "supported_languages": null
+    },
+    "macro.dbt.current_timestamp_in_utc_backcompat": {
+      "name": "current_timestamp_in_utc_backcompat",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/timestamps.sql",
+      "original_file_path": "macros/adapters/timestamps.sql",
+      "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat",
+      "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n    {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__reset_csv_table"
+          "macro.dbt.default__current_timestamp_in_utc_backcompat"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.417773
+      "created_at": 1692200505.229234,
+      "supported_languages": null
     },
-    "macro.dbt.default__reset_csv_table": {
-      "unique_id": "macro.dbt.default__reset_csv_table",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "default__reset_csv_table",
-      "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n    {% set sql = \"\" %}\n    {% if full_refresh %}\n        {{ adapter.drop_relation(old_relation) }}\n        {% set sql = create_csv_table(model, agate_table) %}\n    {% else %}\n        {{ adapter.truncate_relation(old_relation) }}\n        {% set sql = \"truncate table \" ~ old_relation %}\n    {% endif %}\n\n    {{ return(sql) }}\n{% endmacro %}",
+    "macro.dbt.default__current_timestamp_in_utc_backcompat": {
+      "name": "default__current_timestamp_in_utc_backcompat",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/timestamps.sql",
+      "original_file_path": "macros/adapters/timestamps.sql",
+      "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat",
+      "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n    {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.create_csv_table"
+          "macro.dbt.current_timestamp_backcompat",
+          "macro.dbt_bigquery.bigquery__current_timestamp_backcompat"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.418891
+      "created_at": 1692200505.229621,
+      "supported_languages": null
     },
-    "macro.dbt.get_binding_char": {
-      "unique_id": "macro.dbt.get_binding_char",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "get_binding_char",
-      "macro_sql": "{% macro get_binding_char() -%}\n  {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}",
+    "macro.dbt.get_create_index_sql": {
+      "name": "get_create_index_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/indexes.sql",
+      "original_file_path": "macros/adapters/indexes.sql",
+      "unique_id": "macro.dbt.get_create_index_sql",
+      "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n  {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__get_binding_char"
+          "macro.dbt.default__get_create_index_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.419276
+      "created_at": 1692200505.2305238,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_binding_char": {
-      "unique_id": "macro.dbt.default__get_binding_char",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "default__get_binding_char",
-      "macro_sql": "{% macro default__get_binding_char() %}\n  {{ return('%s') }}\n{% endmacro %}",
+    "macro.dbt.default__get_create_index_sql": {
+      "name": "default__get_create_index_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/indexes.sql",
+      "original_file_path": "macros/adapters/indexes.sql",
+      "unique_id": "macro.dbt.default__get_create_index_sql",
+      "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n  {% do return(None) %}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.419531
+      "created_at": 1692200505.230945,
+      "supported_languages": null
     },
-    "macro.dbt.get_batch_size": {
-      "unique_id": "macro.dbt.get_batch_size",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "get_batch_size",
-      "macro_sql": "{% macro get_batch_size() -%}\n  {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}",
+    "macro.dbt.create_indexes": {
+      "name": "create_indexes",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/indexes.sql",
+      "original_file_path": "macros/adapters/indexes.sql",
+      "unique_id": "macro.dbt.create_indexes",
+      "macro_sql": "{% macro create_indexes(relation) -%}\n  {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__get_batch_size"
+          "macro.dbt.default__create_indexes"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.419874
+      "created_at": 1692200505.231314,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_batch_size": {
-      "unique_id": "macro.dbt.default__get_batch_size",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "default__get_batch_size",
-      "macro_sql": "{% macro default__get_batch_size() %}\n  {{ return(10000) }}\n{% endmacro %}",
+    "macro.dbt.default__create_indexes": {
+      "name": "default__create_indexes",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/indexes.sql",
+      "original_file_path": "macros/adapters/indexes.sql",
+      "unique_id": "macro.dbt.default__create_indexes",
+      "macro_sql": "{% macro default__create_indexes(relation) -%}\n  {%- set _indexes = config.get('indexes', default=[]) -%}\n\n  {% for _index_dict in _indexes %}\n    {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n    {% if create_index_sql %}\n      {% do run_query(create_index_sql) %}\n    {% endif %}\n  {% endfor %}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.get_create_index_sql",
+          "macro.dbt.run_query"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.420207
+      "created_at": 1692200505.23221,
+      "supported_languages": null
     },
-    "macro.dbt.get_seed_column_quoted_csv": {
-      "unique_id": "macro.dbt.get_seed_column_quoted_csv",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "get_seed_column_quoted_csv",
-      "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n  {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n    {% set quoted = [] %}\n    {% for col in column_names -%}\n        {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n    {%- endfor %}\n\n    {%- set dest_cols_csv = quoted | join(', ') -%}\n    {{ return(dest_cols_csv) }}\n{% endmacro %}",
+    "macro.dbt.make_intermediate_relation": {
+      "name": "make_intermediate_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.make_intermediate_relation",
+      "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n  {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.default__make_intermediate_relation"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4214022
+      "created_at": 1692200505.237779,
+      "supported_languages": null
     },
-    "macro.dbt.load_csv_rows": {
-      "unique_id": "macro.dbt.load_csv_rows",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "load_csv_rows",
-      "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n  {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}",
+    "macro.dbt.default__make_intermediate_relation": {
+      "name": "default__make_intermediate_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.default__make_intermediate_relation",
+      "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n    {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__load_csv_rows"
+          "macro.dbt.default__make_temp_relation"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4218318
+      "created_at": 1692200505.23816,
+      "supported_languages": null
     },
-    "macro.dbt.default__load_csv_rows": {
-      "unique_id": "macro.dbt.default__load_csv_rows",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/materializations/seeds/helpers.sql",
-      "original_file_path": "macros/materializations/seeds/helpers.sql",
-      "name": "default__load_csv_rows",
-      "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n  {% set batch_size = get_batch_size() %}\n\n  {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n  {% set bindings = [] %}\n\n  {% set statements = [] %}\n\n  {% for chunk in agate_table.rows | batch(batch_size) %}\n      {% set bindings = [] %}\n\n      {% for row in chunk %}\n          {% do bindings.extend(row) %}\n      {% endfor %}\n\n      {% set sql %}\n          insert into {{ this.render() }} ({{ cols_sql }}) values\n          {% for row in chunk -%}\n              ({%- for column in agate_table.column_names -%}\n                  {{ get_binding_char() }}\n                  {%- if not loop.last%},{%- endif %}\n              {%- endfor -%})\n              {%- if not loop.last%},{%- endif %}\n          {%- endfor %}\n      {% endset %}\n\n      {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n      {% if loop.index0 == 0 %}\n          {% do statements.append(sql) %}\n      {% endif %}\n  {% endfor %}\n\n  {# Return SQL so we can render it out into the compiled files #}\n  {{ return(statements[0]) }}\n{% endmacro %}",
+    "macro.dbt.make_temp_relation": {
+      "name": "make_temp_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.make_temp_relation",
+      "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n  {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.get_batch_size",
-          "macro.dbt.get_seed_column_quoted_csv",
-          "macro.dbt.get_binding_char"
+          "macro.dbt.default__make_temp_relation"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.424468
+      "created_at": 1692200505.238657,
+      "supported_languages": null
     },
-    "macro.dbt.generate_alias_name": {
-      "unique_id": "macro.dbt.generate_alias_name",
+    "macro.dbt.default__make_temp_relation": {
+      "name": "default__make_temp_relation",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/get_custom_name/get_custom_alias.sql",
-      "original_file_path": "macros/get_custom_name/get_custom_alias.sql",
-      "name": "generate_alias_name",
-      "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n    {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.default__make_temp_relation",
+      "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n    {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n    {%- set temp_relation = base_relation.incorporate(\n                                path={\"identifier\": temp_identifier}) -%}\n\n    {{ return(temp_relation) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.239308,
+      "supported_languages": null
+    },
+    "macro.dbt.make_backup_relation": {
+      "name": "make_backup_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.make_backup_relation",
+      "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n    {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__generate_alias_name"
+          "macro.dbt.default__make_backup_relation"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.425335
+      "created_at": 1692200505.2398589,
+      "supported_languages": null
     },
-    "macro.dbt.default__generate_alias_name": {
-      "unique_id": "macro.dbt.default__generate_alias_name",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/get_custom_name/get_custom_alias.sql",
-      "original_file_path": "macros/get_custom_name/get_custom_alias.sql",
-      "name": "default__generate_alias_name",
-      "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n    {%- if custom_alias_name is none -%}\n\n        {{ node.name }}\n\n    {%- else -%}\n\n        {{ custom_alias_name | trim }}\n\n    {%- endif -%}\n\n{%- endmacro %}",
+    "macro.dbt.default__make_backup_relation": {
+      "name": "default__make_backup_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.default__make_backup_relation",
+      "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n    {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n    {%- set backup_relation = base_relation.incorporate(\n                                  path={\"identifier\": backup_identifier},\n                                  type=backup_relation_type\n    ) -%}\n    {{ return(backup_relation) }}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.425825
+      "created_at": 1692200505.240575,
+      "supported_languages": null
     },
-    "macro.dbt.generate_schema_name": {
-      "unique_id": "macro.dbt.generate_schema_name",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/get_custom_name/get_custom_schema.sql",
-      "original_file_path": "macros/get_custom_name/get_custom_schema.sql",
-      "name": "generate_schema_name",
-      "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n    {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}",
+    "macro.dbt.drop_relation": {
+      "name": "drop_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.drop_relation",
+      "macro_sql": "{% macro drop_relation(relation) -%}\n  {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__generate_schema_name"
+          "macro.dbt_bigquery.bigquery__drop_relation"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.426879
+      "created_at": 1692200505.241038,
+      "supported_languages": null
     },
-    "macro.dbt.default__generate_schema_name": {
-      "unique_id": "macro.dbt.default__generate_schema_name",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/get_custom_name/get_custom_schema.sql",
-      "original_file_path": "macros/get_custom_name/get_custom_schema.sql",
-      "name": "default__generate_schema_name",
-      "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n    {%- set default_schema = target.schema -%}\n    {%- if custom_schema_name is none -%}\n\n        {{ default_schema }}\n\n    {%- else -%}\n\n        {{ default_schema }}_{{ custom_schema_name | trim }}\n\n    {%- endif -%}\n\n{%- endmacro %}",
+    "macro.dbt.default__drop_relation": {
+      "name": "default__drop_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.default__drop_relation",
+      "macro_sql": "{% macro default__drop_relation(relation) -%}\n  {% call statement('drop_relation', auto_begin=False) -%}\n    drop {{ relation.type }} if exists {{ relation }} cascade\n  {%- endcall %}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.statement"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.427451
+      "created_at": 1692200505.2415302,
+      "supported_languages": null
     },
-    "macro.dbt.generate_schema_name_for_env": {
-      "unique_id": "macro.dbt.generate_schema_name_for_env",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/get_custom_name/get_custom_schema.sql",
-      "original_file_path": "macros/get_custom_name/get_custom_schema.sql",
-      "name": "generate_schema_name_for_env",
-      "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n    {%- set default_schema = target.schema -%}\n    {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n        {{ custom_schema_name | trim }}\n\n    {%- else -%}\n\n        {{ default_schema }}\n\n    {%- endif -%}\n\n{%- endmacro %}",
+    "macro.dbt.truncate_relation": {
+      "name": "truncate_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.truncate_relation",
+      "macro_sql": "{% macro truncate_relation(relation) -%}\n  {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.default__truncate_relation"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4282
+      "created_at": 1692200505.2419488,
+      "supported_languages": null
     },
-    "macro.dbt.generate_database_name": {
-      "unique_id": "macro.dbt.generate_database_name",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/get_custom_name/get_custom_database.sql",
-      "original_file_path": "macros/get_custom_name/get_custom_database.sql",
-      "name": "generate_database_name",
-      "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n    {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}",
+    "macro.dbt.default__truncate_relation": {
+      "name": "default__truncate_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.default__truncate_relation",
+      "macro_sql": "{% macro default__truncate_relation(relation) -%}\n  {% call statement('truncate_relation') -%}\n    truncate table {{ relation }}\n  {%- endcall %}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__generate_database_name"
+          "macro.dbt.statement"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.429079
+      "created_at": 1692200505.242332,
+      "supported_languages": null
     },
-    "macro.dbt.default__generate_database_name": {
-      "unique_id": "macro.dbt.default__generate_database_name",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/get_custom_name/get_custom_database.sql",
-      "original_file_path": "macros/get_custom_name/get_custom_database.sql",
-      "name": "default__generate_database_name",
-      "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n    {%- set default_database = target.database -%}\n    {%- if custom_database_name is none -%}\n\n        {{ default_database }}\n\n    {%- else -%}\n\n        {{ custom_database_name }}\n\n    {%- endif -%}\n\n{%- endmacro %}",
+    "macro.dbt.rename_relation": {
+      "name": "rename_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.rename_relation",
+      "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n  {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt_bigquery.bigquery__rename_relation"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.42963
+      "created_at": 1692200505.242836,
+      "supported_languages": null
     },
-    "macro.dbt.default__test_relationships": {
-      "unique_id": "macro.dbt.default__test_relationships",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/generic_test_sql/relationships.sql",
-      "original_file_path": "macros/generic_test_sql/relationships.sql",
-      "name": "default__test_relationships",
-      "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n    select {{ column_name }} as from_field\n    from {{ model }}\n    where {{ column_name }} is not null\n),\n\nparent as (\n    select {{ field }} as to_field\n    from {{ to }}\n)\n\nselect\n    from_field\n\nfrom child\nleft join parent\n    on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}",
+    "macro.dbt.default__rename_relation": {
+      "name": "default__rename_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.default__rename_relation",
+      "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n  {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n  {% call statement('rename_relation') -%}\n    alter table {{ from_relation }} rename to {{ target_name }}\n  {%- endcall %}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.statement"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.430465
+      "created_at": 1692200505.24369,
+      "supported_languages": null
     },
-    "macro.dbt.default__test_not_null": {
-      "unique_id": "macro.dbt.default__test_not_null",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/generic_test_sql/not_null.sql",
-      "original_file_path": "macros/generic_test_sql/not_null.sql",
-      "name": "default__test_not_null",
-      "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\nselect *\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}",
+    "macro.dbt.get_or_create_relation": {
+      "name": "get_or_create_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.get_or_create_relation",
+      "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n  {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.default__get_or_create_relation"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.430967
+      "created_at": 1692200505.24425,
+      "supported_languages": null
     },
-    "macro.dbt.default__test_unique": {
-      "unique_id": "macro.dbt.default__test_unique",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/generic_test_sql/unique.sql",
-      "original_file_path": "macros/generic_test_sql/unique.sql",
-      "name": "default__test_unique",
-      "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n    {{ column_name }} as unique_field,\n    count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}",
+    "macro.dbt.default__get_or_create_relation": {
+      "name": "default__get_or_create_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.default__get_or_create_relation",
+      "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n  {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n  {% if target_relation %}\n    {% do return([true, target_relation]) %}\n  {% endif %}\n\n  {%- set new_relation = api.Relation.create(\n      database=database,\n      schema=schema,\n      identifier=identifier,\n      type=type\n  ) -%}\n  {% do return([false, new_relation]) %}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.431603
+      "created_at": 1692200505.245613,
+      "supported_languages": null
     },
-    "macro.dbt.default__test_accepted_values": {
-      "unique_id": "macro.dbt.default__test_accepted_values",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/generic_test_sql/accepted_values.sql",
-      "original_file_path": "macros/generic_test_sql/accepted_values.sql",
-      "name": "default__test_accepted_values",
-      "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n    select\n        {{ column_name }} as value_field,\n        count(*) as n_records\n\n    from {{ model }}\n    group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n    {% for value in values -%}\n        {% if quote -%}\n        '{{ value }}'\n        {%- else -%}\n        {{ value }}\n        {%- endif -%}\n        {%- if not loop.last -%},{%- endif %}\n    {%- endfor %}\n)\n\n{% endmacro %}",
+    "macro.dbt.load_cached_relation": {
+      "name": "load_cached_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.load_cached_relation",
+      "macro_sql": "{% macro load_cached_relation(relation) %}\n  {% do return(adapter.get_relation(\n    database=relation.database,\n    schema=relation.schema,\n    identifier=relation.identifier\n  )) -%}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.432967
+      "created_at": 1692200505.246264,
+      "supported_languages": null
     },
-    "macro.dbt.statement": {
-      "unique_id": "macro.dbt.statement",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/etc/statement.sql",
-      "original_file_path": "macros/etc/statement.sql",
-      "name": "statement",
-      "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n  {%- if execute: -%}\n    {%- set sql = caller() -%}\n\n    {%- if name == 'main' -%}\n      {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n      {{ write(sql) }}\n    {%- endif -%}\n\n    {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n    {%- if name is not none -%}\n      {{ store_result(name, response=res, agate_table=table) }}\n    {%- endif -%}\n\n  {%- endif -%}\n{%- endmacro %}",
+    "macro.dbt.load_relation": {
+      "name": "load_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.load_relation",
+      "macro_sql": "{% macro load_relation(relation) %}\n    {{ return(load_cached_relation(relation)) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.load_cached_relation"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4351768
+      "created_at": 1692200505.246593,
+      "supported_languages": null
     },
-    "macro.dbt.noop_statement": {
-      "unique_id": "macro.dbt.noop_statement",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/etc/statement.sql",
-      "original_file_path": "macros/etc/statement.sql",
-      "name": "noop_statement",
-      "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n  {%- set sql = caller() -%}\n\n  {%- if name == 'main' -%}\n    {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n    {{ write(sql) }}\n  {%- endif -%}\n\n  {%- if name is not none -%}\n    {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n  {%- endif -%}\n\n{%- endmacro %}",
+    "macro.dbt.drop_relation_if_exists": {
+      "name": "drop_relation_if_exists",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/relation.sql",
+      "original_file_path": "macros/adapters/relation.sql",
+      "unique_id": "macro.dbt.drop_relation_if_exists",
+      "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n  {% if relation is not none %}\n    {{ adapter.drop_relation(relation) }}\n  {% endif %}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4363961
+      "created_at": 1692200505.247036,
+      "supported_languages": null
     },
-    "macro.dbt.run_query": {
-      "unique_id": "macro.dbt.run_query",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/etc/statement.sql",
-      "original_file_path": "macros/etc/statement.sql",
-      "name": "run_query",
-      "macro_sql": "{% macro run_query(sql) %}\n  {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n    {{ sql }}\n  {% endcall %}\n\n  {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}",
+    "macro.dbt.collect_freshness": {
+      "name": "collect_freshness",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/freshness.sql",
+      "original_file_path": "macros/adapters/freshness.sql",
+      "unique_id": "macro.dbt.collect_freshness",
+      "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n  {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.statement"
+          "macro.dbt.default__collect_freshness"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.437024
+      "created_at": 1692200505.247895,
+      "supported_languages": null
     },
-    "macro.dbt.convert_datetime": {
-      "unique_id": "macro.dbt.convert_datetime",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/etc/datetime.sql",
-      "original_file_path": "macros/etc/datetime.sql",
-      "name": "convert_datetime",
-      "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n  {% set error_msg -%}\n      The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n  {%- endset %}\n\n  {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n  {{ return(res) }}\n\n{% endmacro %}",
+    "macro.dbt.default__collect_freshness": {
+      "name": "default__collect_freshness",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/freshness.sql",
+      "original_file_path": "macros/adapters/freshness.sql",
+      "unique_id": "macro.dbt.default__collect_freshness",
+      "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n  {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n    select\n      max({{ loaded_at_field }}) as max_loaded_at,\n      {{ current_timestamp() }} as snapshotted_at\n    from {{ source }}\n    {% if filter %}\n    where {{ filter }}\n    {% endif %}\n  {% endcall %}\n  {{ return(load_result('collect_freshness')) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.statement",
+          "macro.dbt.current_timestamp"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.439973
+      "created_at": 1692200505.248812,
+      "supported_languages": null
     },
-    "macro.dbt.dates_in_range": {
-      "unique_id": "macro.dbt.dates_in_range",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/etc/datetime.sql",
-      "original_file_path": "macros/etc/datetime.sql",
-      "name": "dates_in_range",
-      "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n    {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n    {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n    {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n    {% set day_count = (end_date - start_date).days %}\n    {% if day_count < 0 %}\n        {% set msg -%}\n            Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n        {%- endset %}\n\n        {{ exceptions.raise_compiler_error(msg, model) }}\n    {% endif %}\n\n    {% set date_list = [] %}\n    {% for i in range(0, day_count + 1) %}\n        {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n        {% if not out_fmt %}\n            {% set _ = date_list.append(the_date) %}\n        {% else %}\n            {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n        {% endif %}\n    {% endfor %}\n\n    {{ return(date_list) }}\n{% endmacro %}",
+    "macro.dbt.copy_grants": {
+      "name": "copy_grants",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.copy_grants",
+      "macro_sql": "{% macro copy_grants() %}\n    {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.convert_datetime"
+          "macro.dbt.default__copy_grants"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.2517078,
+      "supported_languages": null
+    },
+    "macro.dbt.default__copy_grants": {
+      "name": "default__copy_grants",
+      "resource_type": "macro",
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.default__copy_grants",
+      "macro_sql": "{% macro default__copy_grants() %}\n    {{ return(True) }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.442566
+      "created_at": 1692200505.25198,
+      "supported_languages": null
     },
-    "macro.dbt.partition_range": {
-      "unique_id": "macro.dbt.partition_range",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/etc/datetime.sql",
-      "original_file_path": "macros/etc/datetime.sql",
-      "name": "partition_range",
-      "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n    {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n    {% if (partition_range | length) == 1 %}\n      {% set start_date = partition_range[0] %}\n      {% set end_date = none %}\n    {% elif (partition_range | length) == 2 %}\n      {% set start_date = partition_range[0] %}\n      {% set end_date = partition_range[1] %}\n    {% else %}\n      {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n    {% endif %}\n\n    {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}",
+    "macro.dbt.support_multiple_grantees_per_dcl_statement": {
+      "name": "support_multiple_grantees_per_dcl_statement",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement",
+      "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n    {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.dates_in_range"
+          "macro.dbt.default__support_multiple_grantees_per_dcl_statement"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.44432
+      "created_at": 1692200505.252361,
+      "supported_languages": null
     },
-    "macro.dbt.py_current_timestring": {
-      "unique_id": "macro.dbt.py_current_timestring",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/etc/datetime.sql",
-      "original_file_path": "macros/etc/datetime.sql",
-      "name": "py_current_timestring",
-      "macro_sql": "{% macro py_current_timestring() %}\n    {% set dt = modules.datetime.datetime.now() %}\n    {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}",
+    "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {
+      "name": "default__support_multiple_grantees_per_dcl_statement",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement",
+      "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n    {{ return(True) }}\n{%- endmacro -%}\n\n\n",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.444822
+      "created_at": 1692200505.2526238,
+      "supported_languages": null
     },
-    "macro.dbt.create_schema": {
-      "unique_id": "macro.dbt.create_schema",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/schema.sql",
-      "original_file_path": "macros/adapters/schema.sql",
-      "name": "create_schema",
-      "macro_sql": "{% macro create_schema(relation) -%}\n  {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}",
+    "macro.dbt.should_revoke": {
+      "name": "should_revoke",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.should_revoke",
+      "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n    {% if not existing_relation %}\n        {#-- The table doesn't already exist, so no grants to copy over --#}\n        {{ return(False) }}\n    {% elif full_refresh_mode %}\n        {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n        {{ return(copy_grants()) }}\n    {% else %}\n        {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n        {{ return(True) }}\n    {% endif %}\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__create_schema"
+          "macro.dbt.copy_grants"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.445654
+      "created_at": 1692200505.253387,
+      "supported_languages": null
     },
-    "macro.dbt.default__create_schema": {
-      "unique_id": "macro.dbt.default__create_schema",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/schema.sql",
-      "original_file_path": "macros/adapters/schema.sql",
-      "name": "default__create_schema",
-      "macro_sql": "{% macro default__create_schema(relation) -%}\n  {%- call statement('create_schema') -%}\n    create schema if not exists {{ relation.without_identifier() }}\n  {% endcall %}\n{% endmacro %}",
+    "macro.dbt.get_show_grant_sql": {
+      "name": "get_show_grant_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.get_show_grant_sql",
+      "macro_sql": "{% macro get_show_grant_sql(relation) %}\n    {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.statement"
+          "macro.dbt_bigquery.bigquery__get_show_grant_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4460568
+      "created_at": 1692200505.253807,
+      "supported_languages": null
     },
-    "macro.dbt.drop_schema": {
-      "unique_id": "macro.dbt.drop_schema",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/schema.sql",
-      "original_file_path": "macros/adapters/schema.sql",
-      "name": "drop_schema",
-      "macro_sql": "{% macro drop_schema(relation) -%}\n  {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}",
+    "macro.dbt.default__get_show_grant_sql": {
+      "name": "default__get_show_grant_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.default__get_show_grant_sql",
+      "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n    show grants on {{ relation }}\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt_bigquery.bigquery__drop_schema"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4464068
+      "created_at": 1692200505.254049,
+      "supported_languages": null
     },
-    "macro.dbt.default__drop_schema": {
-      "unique_id": "macro.dbt.default__drop_schema",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/schema.sql",
-      "original_file_path": "macros/adapters/schema.sql",
-      "name": "default__drop_schema",
-      "macro_sql": "{% macro default__drop_schema(relation) -%}\n  {%- call statement('drop_schema') -%}\n    drop schema if exists {{ relation.without_identifier() }} cascade\n  {% endcall %}\n{% endmacro %}",
+    "macro.dbt.get_grant_sql": {
+      "name": "get_grant_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.get_grant_sql",
+      "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n    {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.statement"
+          "macro.dbt_bigquery.bigquery__get_grant_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.446806
+      "created_at": 1692200505.254553,
+      "supported_languages": null
     },
-    "macro.dbt.get_create_index_sql": {
-      "unique_id": "macro.dbt.get_create_index_sql",
+    "macro.dbt.default__get_grant_sql": {
+      "name": "default__get_grant_sql",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/indexes.sql",
-      "original_file_path": "macros/adapters/indexes.sql",
-      "name": "get_create_index_sql",
-      "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n  {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.default__get_grant_sql",
+      "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n    grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.254981,
+      "supported_languages": null
+    },
+    "macro.dbt.get_revoke_sql": {
+      "name": "get_revoke_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.get_revoke_sql",
+      "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n    {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__get_create_index_sql"
+          "macro.dbt_bigquery.bigquery__get_revoke_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.447806
+      "created_at": 1692200505.2555158,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_create_index_sql": {
-      "unique_id": "macro.dbt.default__get_create_index_sql",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/indexes.sql",
-      "original_file_path": "macros/adapters/indexes.sql",
-      "name": "default__get_create_index_sql",
-      "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n  {% do return(None) %}\n{% endmacro %}",
+    "macro.dbt.default__get_revoke_sql": {
+      "name": "default__get_revoke_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.default__get_revoke_sql",
+      "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n    revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.448101
+      "created_at": 1692200505.255954,
+      "supported_languages": null
     },
-    "macro.dbt.create_indexes": {
-      "unique_id": "macro.dbt.create_indexes",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/indexes.sql",
-      "original_file_path": "macros/adapters/indexes.sql",
-      "name": "create_indexes",
-      "macro_sql": "{% macro create_indexes(relation) -%}\n  {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}",
+    "macro.dbt.get_dcl_statement_list": {
+      "name": "get_dcl_statement_list",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.get_dcl_statement_list",
+      "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n    {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__create_indexes"
+          "macro.dbt.default__get_dcl_statement_list"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4484448
+      "created_at": 1692200505.256469,
+      "supported_languages": null
     },
-    "macro.dbt.default__create_indexes": {
-      "unique_id": "macro.dbt.default__create_indexes",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/indexes.sql",
-      "original_file_path": "macros/adapters/indexes.sql",
-      "name": "default__create_indexes",
-      "macro_sql": "{% macro default__create_indexes(relation) -%}\n  {%- set _indexes = config.get('indexes', default=[]) -%}\n\n  {% for _index_dict in _indexes %}\n    {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n    {% if create_index_sql %}\n      {% do run_query(create_index_sql) %}\n    {% endif %}\n  {% endfor %}\n{% endmacro %}",
+    "macro.dbt.default__get_dcl_statement_list": {
+      "name": "default__get_dcl_statement_list",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.default__get_dcl_statement_list",
+      "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n    {#\n      -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n      -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n      -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n      -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n    #}\n    {%- set dcl_statements = [] -%}\n    {%- for privilege, grantees in grant_config.items() %}\n        {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n          {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n          {%- do dcl_statements.append(dcl) -%}\n        {%- else -%}\n          {%- for grantee in grantees -%}\n              {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n              {%- do dcl_statements.append(dcl) -%}\n          {% endfor -%}\n        {%- endif -%}\n    {%- endfor -%}\n    {{ return(dcl_statements) }}\n{%- endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.get_create_index_sql",
-          "macro.dbt.run_query"
+          "macro.dbt.support_multiple_grantees_per_dcl_statement"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.449304
+      "created_at": 1692200505.258069,
+      "supported_languages": null
     },
-    "macro.dbt.make_temp_relation": {
-      "unique_id": "macro.dbt.make_temp_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "make_temp_relation",
-      "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n  {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix))}}\n{% endmacro %}",
+    "macro.dbt.call_dcl_statements": {
+      "name": "call_dcl_statements",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.call_dcl_statements",
+      "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n    {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__make_temp_relation"
+          "macro.dbt.default__call_dcl_statements"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.451964
+      "created_at": 1692200505.258589,
+      "supported_languages": null
     },
-    "macro.dbt.default__make_temp_relation": {
-      "unique_id": "macro.dbt.default__make_temp_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "default__make_temp_relation",
-      "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n    {% set tmp_identifier = base_relation.identifier ~ suffix %}\n    {% set tmp_relation = base_relation.incorporate(\n                                path={\"identifier\": tmp_identifier}) -%}\n\n    {% do return(tmp_relation) %}\n{% endmacro %}",
+    "macro.dbt.default__call_dcl_statements": {
+      "name": "default__call_dcl_statements",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.default__call_dcl_statements",
+      "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n    {#\n      -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n      -- so that they're all processed together.\n\n      -- Some databases do not support this. Those adapters will need to override this macro\n      -- to run each statement individually.\n    #}\n    {% call statement('grants') %}\n        {% for dcl_statement in dcl_statement_list %}\n            {{ dcl_statement }};\n        {% endfor %}\n    {% endcall %}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.statement"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.452636
+      "created_at": 1692200505.259153,
+      "supported_languages": null
     },
-    "macro.dbt.drop_relation": {
-      "unique_id": "macro.dbt.drop_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "drop_relation",
-      "macro_sql": "{% macro drop_relation(relation) -%}\n  {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}",
+    "macro.dbt.apply_grants": {
+      "name": "apply_grants",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.apply_grants",
+      "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n    {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__drop_relation"
+          "macro.dbt.default__apply_grants"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4530501
+      "created_at": 1692200505.25967,
+      "supported_languages": null
     },
-    "macro.dbt.default__drop_relation": {
-      "unique_id": "macro.dbt.default__drop_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "default__drop_relation",
-      "macro_sql": "{% macro default__drop_relation(relation) -%}\n  {% call statement('drop_relation', auto_begin=False) -%}\n    drop {{ relation.type }} if exists {{ relation }} cascade\n  {%- endcall %}\n{% endmacro %}",
+    "macro.dbt.default__apply_grants": {
+      "name": "default__apply_grants",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/apply_grants.sql",
+      "original_file_path": "macros/adapters/apply_grants.sql",
+      "unique_id": "macro.dbt.default__apply_grants",
+      "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n    {#-- If grant_config is {} or None, this is a no-op --#}\n    {% if grant_config %}\n        {% if should_revoke %}\n            {#-- We think previous grants may have carried over --#}\n            {#-- Show current grants and calculate diffs --#}\n            {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n            {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n            {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n            {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n            {% if not (needs_granting or needs_revoking) %}\n                {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n            {% endif %}\n        {% else %}\n            {#-- We don't think there's any chance of previous grants having carried over. --#}\n            {#-- Jump straight to granting what the user has configured. --#}\n            {% set needs_revoking = {} %}\n            {% set needs_granting = grant_config %}\n        {% endif %}\n        {% if needs_granting or needs_revoking %}\n            {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n            {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n            {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n            {% if dcl_statement_list %}\n                {{ call_dcl_statements(dcl_statement_list) }}\n            {% endif %}\n        {% endif %}\n    {% endif %}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.statement"
+          "macro.dbt.run_query",
+          "macro.dbt.get_show_grant_sql",
+          "macro.dbt.get_dcl_statement_list",
+          "macro.dbt.call_dcl_statements"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.453572
+      "created_at": 1692200505.2622101,
+      "supported_languages": null
     },
-    "macro.dbt.truncate_relation": {
-      "unique_id": "macro.dbt.truncate_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "truncate_relation",
-      "macro_sql": "{% macro truncate_relation(relation) -%}\n  {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}",
+    "macro.dbt.alter_column_comment": {
+      "name": "alter_column_comment",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/persist_docs.sql",
+      "original_file_path": "macros/adapters/persist_docs.sql",
+      "unique_id": "macro.dbt.alter_column_comment",
+      "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n  {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__truncate_relation"
+          "macro.dbt_bigquery.bigquery__alter_column_comment"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.453975
+      "created_at": 1692200505.26348,
+      "supported_languages": null
     },
-    "macro.dbt.default__truncate_relation": {
-      "unique_id": "macro.dbt.default__truncate_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "default__truncate_relation",
-      "macro_sql": "{% macro default__truncate_relation(relation) -%}\n  {% call statement('truncate_relation') -%}\n    truncate table {{ relation }}\n  {%- endcall %}\n{% endmacro %}",
+    "macro.dbt.default__alter_column_comment": {
+      "name": "default__alter_column_comment",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/persist_docs.sql",
+      "original_file_path": "macros/adapters/persist_docs.sql",
+      "unique_id": "macro.dbt.default__alter_column_comment",
+      "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n  {{ exceptions.raise_not_implemented(\n    'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.statement"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4543302
+      "created_at": 1692200505.2638679,
+      "supported_languages": null
     },
-    "macro.dbt.rename_relation": {
-      "unique_id": "macro.dbt.rename_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "rename_relation",
-      "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n  {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}",
+    "macro.dbt.alter_relation_comment": {
+      "name": "alter_relation_comment",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/persist_docs.sql",
+      "original_file_path": "macros/adapters/persist_docs.sql",
+      "unique_id": "macro.dbt.alter_relation_comment",
+      "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n  {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__rename_relation"
+          "macro.dbt.default__alter_relation_comment"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4548612
+      "created_at": 1692200505.26433,
+      "supported_languages": null
     },
-    "macro.dbt.default__rename_relation": {
-      "unique_id": "macro.dbt.default__rename_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "default__rename_relation",
-      "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n  {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n  {% call statement('rename_relation') -%}\n    alter table {{ from_relation }} rename to {{ target_name }}\n  {%- endcall %}\n{% endmacro %}",
+    "macro.dbt.default__alter_relation_comment": {
+      "name": "default__alter_relation_comment",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/persist_docs.sql",
+      "original_file_path": "macros/adapters/persist_docs.sql",
+      "unique_id": "macro.dbt.default__alter_relation_comment",
+      "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n  {{ exceptions.raise_not_implemented(\n    'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.statement"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4554749
+      "created_at": 1692200505.2647119,
+      "supported_languages": null
     },
-    "macro.dbt.get_or_create_relation": {
-      "unique_id": "macro.dbt.get_or_create_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "get_or_create_relation",
-      "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n  {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}",
+    "macro.dbt.persist_docs": {
+      "name": "persist_docs",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/persist_docs.sql",
+      "original_file_path": "macros/adapters/persist_docs.sql",
+      "unique_id": "macro.dbt.persist_docs",
+      "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n  {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__get_or_create_relation"
+          "macro.dbt_bigquery.bigquery__persist_docs"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.456049
+      "created_at": 1692200505.265312,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_or_create_relation": {
-      "unique_id": "macro.dbt.default__get_or_create_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "default__get_or_create_relation",
-      "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n  {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n  {% if target_relation %}\n    {% do return([true, target_relation]) %}\n  {% endif %}\n\n  {%- set new_relation = api.Relation.create(\n      database=database,\n      schema=schema,\n      identifier=identifier,\n      type=type\n  ) -%}\n  {% do return([false, new_relation]) %}\n{% endmacro %}",
+    "macro.dbt.default__persist_docs": {
+      "name": "default__persist_docs",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/persist_docs.sql",
+      "original_file_path": "macros/adapters/persist_docs.sql",
+      "unique_id": "macro.dbt.default__persist_docs",
+      "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n  {% if for_relation and config.persist_relation_docs() and model.description %}\n    {% do run_query(alter_relation_comment(relation, model.description)) %}\n  {% endif %}\n\n  {% if for_columns and config.persist_column_docs() and model.columns %}\n    {% do run_query(alter_column_comment(relation, model.columns)) %}\n  {% endif %}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.run_query",
+          "macro.dbt.alter_relation_comment",
+          "macro.dbt.alter_column_comment"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4572558
+      "created_at": 1692200505.266498,
+      "supported_languages": null
     },
-    "macro.dbt.load_relation": {
-      "unique_id": "macro.dbt.load_relation",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "load_relation",
-      "macro_sql": "{% macro load_relation(relation) %}\n  {% do return(adapter.get_relation(\n    database=relation.database,\n    schema=relation.schema,\n    identifier=relation.identifier\n  )) -%}\n{% endmacro %}",
+    "macro.dbt.get_catalog": {
+      "name": "get_catalog",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.get_catalog",
+      "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n  {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt_bigquery.bigquery__get_catalog"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.45774
+      "created_at": 1692200505.269102,
+      "supported_languages": null
     },
-    "macro.dbt.drop_relation_if_exists": {
-      "unique_id": "macro.dbt.drop_relation_if_exists",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/relation.sql",
-      "original_file_path": "macros/adapters/relation.sql",
-      "name": "drop_relation_if_exists",
-      "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n  {% if relation is not none %}\n    {{ adapter.drop_relation(relation) }}\n  {% endif %}\n{% endmacro %}",
+    "macro.dbt.default__get_catalog": {
+      "name": "default__get_catalog",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.default__get_catalog",
+      "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n  {% set typename = adapter.type() %}\n  {% set msg -%}\n    get_catalog not implemented for {{ typename }}\n  {%- endset %}\n\n  {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4581602
+      "created_at": 1692200505.2697291,
+      "supported_languages": null
     },
-    "macro.dbt.current_timestamp": {
-      "unique_id": "macro.dbt.current_timestamp",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/freshness.sql",
-      "original_file_path": "macros/adapters/freshness.sql",
-      "name": "current_timestamp",
-      "macro_sql": "{% macro current_timestamp() -%}\n  {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro %}",
+    "macro.dbt.information_schema_name": {
+      "name": "information_schema_name",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.information_schema_name",
+      "macro_sql": "{% macro information_schema_name(database) %}\n  {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__current_timestamp"
+          "macro.dbt.default__information_schema_name"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.459091
+      "created_at": 1692200505.270151,
+      "supported_languages": null
     },
-    "macro.dbt.default__current_timestamp": {
-      "unique_id": "macro.dbt.default__current_timestamp",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/freshness.sql",
-      "original_file_path": "macros/adapters/freshness.sql",
-      "name": "default__current_timestamp",
-      "macro_sql": "{% macro default__current_timestamp() -%}\n  {{ exceptions.raise_not_implemented(\n    'current_timestamp macro not implemented for adapter '+adapter.type()) }}\n{%- endmacro %}",
+    "macro.dbt.default__information_schema_name": {
+      "name": "default__information_schema_name",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.default__information_schema_name",
+      "macro_sql": "{% macro default__information_schema_name(database) -%}\n  {%- if database -%}\n    {{ database }}.INFORMATION_SCHEMA\n  {%- else -%}\n    INFORMATION_SCHEMA\n  {%- endif -%}\n{%- endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.459411
+      "created_at": 1692200505.270514,
+      "supported_languages": null
     },
-    "macro.dbt.collect_freshness": {
-      "unique_id": "macro.dbt.collect_freshness",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/freshness.sql",
-      "original_file_path": "macros/adapters/freshness.sql",
-      "name": "collect_freshness",
-      "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n  {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}",
+    "macro.dbt.list_schemas": {
+      "name": "list_schemas",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.list_schemas",
+      "macro_sql": "{% macro list_schemas(database) -%}\n  {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__collect_freshness"
+          "macro.dbt_bigquery.bigquery__list_schemas"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.459904
+      "created_at": 1692200505.270921,
+      "supported_languages": null
     },
-    "macro.dbt.default__collect_freshness": {
-      "unique_id": "macro.dbt.default__collect_freshness",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/freshness.sql",
-      "original_file_path": "macros/adapters/freshness.sql",
-      "name": "default__collect_freshness",
-      "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n  {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n    select\n      max({{ loaded_at_field }}) as max_loaded_at,\n      {{ current_timestamp() }} as snapshotted_at\n    from {{ source }}\n    {% if filter %}\n    where {{ filter }}\n    {% endif %}\n  {% endcall %}\n  {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}",
+    "macro.dbt.default__list_schemas": {
+      "name": "default__list_schemas",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.default__list_schemas",
+      "macro_sql": "{% macro default__list_schemas(database) -%}\n  {% set sql %}\n    select distinct schema_name\n    from {{ information_schema_name(database) }}.SCHEMATA\n    where catalog_name ilike '{{ database }}'\n  {% endset %}\n  {{ return(run_query(sql)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.statement",
-          "macro.dbt.current_timestamp"
+          "macro.dbt.information_schema_name",
+          "macro.dbt.run_query"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.460855
+      "created_at": 1692200505.271474,
+      "supported_languages": null
     },
-    "macro.dbt.alter_column_comment": {
-      "unique_id": "macro.dbt.alter_column_comment",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/persist_docs.sql",
-      "original_file_path": "macros/adapters/persist_docs.sql",
-      "name": "alter_column_comment",
-      "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n  {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}",
+    "macro.dbt.check_schema_exists": {
+      "name": "check_schema_exists",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.check_schema_exists",
+      "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n  {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__alter_column_comment"
+          "macro.dbt_bigquery.bigquery__check_schema_exists"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4621282
+      "created_at": 1692200505.2719429,
+      "supported_languages": null
     },
-    "macro.dbt.default__alter_column_comment": {
-      "unique_id": "macro.dbt.default__alter_column_comment",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/persist_docs.sql",
-      "original_file_path": "macros/adapters/persist_docs.sql",
-      "name": "default__alter_column_comment",
-      "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n  {{ exceptions.raise_not_implemented(\n    'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}",
+    "macro.dbt.default__check_schema_exists": {
+      "name": "default__check_schema_exists",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.default__check_schema_exists",
+      "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n  {% set sql -%}\n        select count(*)\n        from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n        where catalog_name='{{ information_schema.database }}'\n          and schema_name='{{ schema }}'\n  {%- endset %}\n  {{ return(run_query(sql)) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.replace",
+          "macro.dbt.run_query"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.462492
+      "created_at": 1692200505.272625,
+      "supported_languages": null
     },
-    "macro.dbt.alter_relation_comment": {
-      "unique_id": "macro.dbt.alter_relation_comment",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/persist_docs.sql",
-      "original_file_path": "macros/adapters/persist_docs.sql",
-      "name": "alter_relation_comment",
-      "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n  {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}",
+    "macro.dbt.list_relations_without_caching": {
+      "name": "list_relations_without_caching",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.list_relations_without_caching",
+      "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n  {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__alter_relation_comment"
+          "macro.dbt_bigquery.bigquery__list_relations_without_caching"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4629278
+      "created_at": 1692200505.2730482,
+      "supported_languages": null
     },
-    "macro.dbt.default__alter_relation_comment": {
-      "unique_id": "macro.dbt.default__alter_relation_comment",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/persist_docs.sql",
-      "original_file_path": "macros/adapters/persist_docs.sql",
-      "name": "default__alter_relation_comment",
-      "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n  {{ exceptions.raise_not_implemented(\n    'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}",
+    "macro.dbt.default__list_relations_without_caching": {
+      "name": "default__list_relations_without_caching",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/metadata.sql",
+      "original_file_path": "macros/adapters/metadata.sql",
+      "unique_id": "macro.dbt.default__list_relations_without_caching",
+      "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n  {{ exceptions.raise_not_implemented(\n    'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.463288
+      "created_at": 1692200505.273429,
+      "supported_languages": null
     },
-    "macro.dbt.persist_docs": {
-      "unique_id": "macro.dbt.persist_docs",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/persist_docs.sql",
-      "original_file_path": "macros/adapters/persist_docs.sql",
-      "name": "persist_docs",
-      "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n  {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}",
+    "macro.dbt.get_columns_in_relation": {
+      "name": "get_columns_in_relation",
       "resource_type": "macro",
-      "tags": [],
-      "depends_on": {
-        "macros": [
-          "macro.dbt_bigquery.bigquery__persist_docs"
-        ]
-      },
-      "description": "",
-      "meta": {},
-      "docs": {
-        "show": true
-      },
-      "patch_path": null,
-      "arguments": [],
-      "created_at": 1644333973.464086
-    },
-    "macro.dbt.default__persist_docs": {
-      "unique_id": "macro.dbt.default__persist_docs",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/persist_docs.sql",
-      "original_file_path": "macros/adapters/persist_docs.sql",
-      "name": "default__persist_docs",
-      "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n  {% if for_relation and config.persist_relation_docs() and model.description %}\n    {% do run_query(alter_relation_comment(relation, model.description)) %}\n  {% endif %}\n\n  {% if for_columns and config.persist_column_docs() and model.columns %}\n    {% do run_query(alter_column_comment(relation, model.columns)) %}\n  {% endif %}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.get_columns_in_relation",
+      "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n  {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.run_query",
-          "macro.dbt.alter_relation_comment",
-          "macro.dbt.alter_column_comment"
+          "macro.dbt_bigquery.bigquery__get_columns_in_relation"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4651148
+      "created_at": 1692200505.277178,
+      "supported_languages": null
     },
-    "macro.dbt.get_catalog": {
-      "unique_id": "macro.dbt.get_catalog",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "get_catalog",
-      "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n  {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}",
+    "macro.dbt.default__get_columns_in_relation": {
+      "name": "default__get_columns_in_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.default__get_columns_in_relation",
+      "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n  {{ exceptions.raise_not_implemented(\n    'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt_bigquery.bigquery__get_catalog"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.467652
+      "created_at": 1692200505.277677,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_catalog": {
-      "unique_id": "macro.dbt.default__get_catalog",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "default__get_catalog",
-      "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n  {% set typename = adapter.type() %}\n  {% set msg -%}\n    get_catalog not implemented for {{ typename }}\n  {%- endset %}\n\n  {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}",
+    "macro.dbt.sql_convert_columns_in_relation": {
+      "name": "sql_convert_columns_in_relation",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.sql_convert_columns_in_relation",
+      "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n  {% set columns = [] %}\n  {% for row in table %}\n    {% do columns.append(api.Column(*row)) %}\n  {% endfor %}\n  {{ return(columns) }}\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.468211
-    },
-    "macro.dbt.information_schema_name": {
-      "unique_id": "macro.dbt.information_schema_name",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "information_schema_name",
-      "macro_sql": "{% macro information_schema_name(database) %}\n  {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}",
+      "created_at": 1692200505.278373,
+      "supported_languages": null
+    },
+    "macro.dbt.get_empty_subquery_sql": {
+      "name": "get_empty_subquery_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.get_empty_subquery_sql",
+      "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n  {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__information_schema_name"
+          "macro.dbt.default__get_empty_subquery_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4686148
+      "created_at": 1692200505.278858,
+      "supported_languages": null
     },
-    "macro.dbt.default__information_schema_name": {
-      "unique_id": "macro.dbt.default__information_schema_name",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "default__information_schema_name",
-      "macro_sql": "{% macro default__information_schema_name(database) -%}\n  {%- if database -%}\n    {{ database }}.INFORMATION_SCHEMA\n  {%- else -%}\n    INFORMATION_SCHEMA\n  {%- endif -%}\n{%- endmacro %}",
+    "macro.dbt.default__get_empty_subquery_sql": {
+      "name": "default__get_empty_subquery_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.default__get_empty_subquery_sql",
+      "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n    {%- if select_sql_header is not none -%}\n    {{ select_sql_header }}\n    {%- endif -%}\n    select * from (\n        {{ select_sql }}\n    ) as __dbt_sbq\n    where false\n    limit 0\n{% endmacro %}",
       "depends_on": {
         "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.468956
+      "created_at": 1692200505.2793221,
+      "supported_languages": null
     },
-    "macro.dbt.list_schemas": {
-      "unique_id": "macro.dbt.list_schemas",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "list_schemas",
-      "macro_sql": "{% macro list_schemas(database) -%}\n  {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}",
+    "macro.dbt.get_empty_schema_sql": {
+      "name": "get_empty_schema_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.get_empty_schema_sql",
+      "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n  {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__list_schemas"
+          "macro.dbt_bigquery.bigquery__get_empty_schema_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.469355
+      "created_at": 1692200505.2797298,
+      "supported_languages": null
     },
-    "macro.dbt.default__list_schemas": {
-      "unique_id": "macro.dbt.default__list_schemas",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "default__list_schemas",
-      "macro_sql": "{% macro default__list_schemas(database) -%}\n  {% set sql %}\n    select distinct schema_name\n    from {{ information_schema_name(database) }}.SCHEMATA\n    where catalog_name ilike '{{ database }}'\n  {% endset %}\n  {{ return(run_query(sql)) }}\n{% endmacro %}",
+    "macro.dbt.default__get_empty_schema_sql": {
+      "name": "default__get_empty_schema_sql",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.default__get_empty_schema_sql",
+      "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n    {%- set col_err = [] -%}\n    select\n    {% for i in columns %}\n      {%- set col = columns[i] -%}\n      {%- if col['data_type'] is not defined -%}\n        {{ col_err.append(col['name']) }}\n      {%- endif -%}\n      {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n      cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n    {%- endfor -%}\n    {%- if (col_err | length) > 0 -%}\n      {{ exceptions.column_type_missing(column_names=col_err) }}\n    {%- endif -%}\n{% endmacro %}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.information_schema_name",
-          "macro.dbt.run_query"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.469883
+      "created_at": 1692200505.281404,
+      "supported_languages": null
     },
-    "macro.dbt.check_schema_exists": {
-      "unique_id": "macro.dbt.check_schema_exists",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "check_schema_exists",
-      "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n  {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}",
+    "macro.dbt.get_column_schema_from_query": {
+      "name": "get_column_schema_from_query",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.get_column_schema_from_query",
+      "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n    {% set columns = [] %}\n    {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n    {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n    {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n    {{ return(column_schema) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__check_schema_exists"
+          "macro.dbt.get_empty_subquery_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.470492
+      "created_at": 1692200505.28217,
+      "supported_languages": null
     },
-    "macro.dbt.default__check_schema_exists": {
-      "unique_id": "macro.dbt.default__check_schema_exists",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "default__check_schema_exists",
-      "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n  {% set sql -%}\n        select count(*)\n        from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n        where catalog_name='{{ information_schema.database }}'\n          and schema_name='{{ schema }}'\n  {%- endset %}\n  {{ return(run_query(sql)) }}\n{% endmacro %}",
+    "macro.dbt.get_columns_in_query": {
+      "name": "get_columns_in_query",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.get_columns_in_query",
+      "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n  {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.run_query"
+          "macro.dbt.default__get_columns_in_query"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4712498
+      "created_at": 1692200505.282657,
+      "supported_languages": null
     },
-    "macro.dbt.list_relations_without_caching": {
-      "unique_id": "macro.dbt.list_relations_without_caching",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "list_relations_without_caching",
-      "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n  {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}",
+    "macro.dbt.default__get_columns_in_query": {
+      "name": "default__get_columns_in_query",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.default__get_columns_in_query",
+      "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n    {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n        {{ get_empty_subquery_sql(select_sql) }}\n    {% endcall %}\n    {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__list_relations_without_caching"
+          "macro.dbt.statement",
+          "macro.dbt.get_empty_subquery_sql"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.471654
+      "created_at": 1692200505.283417,
+      "supported_languages": null
     },
-    "macro.dbt.default__list_relations_without_caching": {
-      "unique_id": "macro.dbt.default__list_relations_without_caching",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/metadata.sql",
-      "original_file_path": "macros/adapters/metadata.sql",
-      "name": "default__list_relations_without_caching",
-      "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n  {{ exceptions.raise_not_implemented(\n    'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}",
+    "macro.dbt.alter_column_type": {
+      "name": "alter_column_type",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/adapters/columns.sql",
+      "original_file_path": "macros/adapters/columns.sql",
+      "unique_id": "macro.dbt.alter_column_type",
+      "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n  {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt_bigquery.bigquery__alter_column_type"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4720042
+      "created_at": 1692200505.2839239,
+      "supported_languages": null
     },
-    "macro.dbt.get_columns_in_relation": {
-      "unique_id": "macro.dbt.get_columns_in_relation",
+    "macro.dbt.default__alter_column_type": {
+      "name": "default__alter_column_type",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
       "path": "macros/adapters/columns.sql",
       "original_file_path": "macros/adapters/columns.sql",
-      "name": "get_columns_in_relation",
-      "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n  {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt.default__alter_column_type",
+      "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n  {#\n    1. Create a new column (w/ temp name and correct type)\n    2. Copy data over to it\n    3. Drop the existing column (cascade!)\n    4. Rename the new column to existing column\n  #}\n  {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n  {% call statement('alter_column_type') %}\n    alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n    update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n    alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n    alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n  {% endcall %}\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__get_columns_in_relation"
+          "macro.dbt.statement"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.474795
+      "created_at": 1692200505.285221,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_columns_in_relation": {
-      "unique_id": "macro.dbt.default__get_columns_in_relation",
+    "macro.dbt.alter_relation_add_remove_columns": {
+      "name": "alter_relation_add_remove_columns",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
       "path": "macros/adapters/columns.sql",
       "original_file_path": "macros/adapters/columns.sql",
-      "name": "default__get_columns_in_relation",
-      "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n  {{ exceptions.raise_not_implemented(\n    'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt.alter_relation_add_remove_columns",
+      "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n  {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.default__alter_relation_add_remove_columns"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4751391
+      "created_at": 1692200505.285784,
+      "supported_languages": null
     },
-    "macro.dbt.sql_convert_columns_in_relation": {
-      "unique_id": "macro.dbt.sql_convert_columns_in_relation",
+    "macro.dbt.default__alter_relation_add_remove_columns": {
+      "name": "default__alter_relation_add_remove_columns",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
       "path": "macros/adapters/columns.sql",
       "original_file_path": "macros/adapters/columns.sql",
-      "name": "sql_convert_columns_in_relation",
-      "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n  {% set columns = [] %}\n  {% for row in table %}\n    {% do columns.append(api.Column(*row)) %}\n  {% endfor %}\n  {{ return(columns) }}\n{% endmacro %}",
-      "resource_type": "macro",
-      "tags": [],
+      "unique_id": "macro.dbt.default__alter_relation_add_remove_columns",
+      "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n  {% if add_columns is none %}\n    {% set add_columns = [] %}\n  {% endif %}\n  {% if remove_columns is none %}\n    {% set remove_columns = [] %}\n  {% endif %}\n\n  {% set sql -%}\n\n     alter {{ relation.type }} {{ relation }}\n\n            {% for column in add_columns %}\n               add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n            {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n            {% for column in remove_columns %}\n                drop column {{ column.name }}{{ ',' if not loop.last }}\n            {% endfor %}\n\n  {%- endset -%}\n\n  {% do run_query(sql) %}\n\n{% endmacro %}",
       "depends_on": {
-        "macros": []
+        "macros": [
+          "macro.dbt.run_query"
+        ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.475803
+      "created_at": 1692200505.2875688,
+      "supported_languages": null
     },
-    "macro.dbt.get_columns_in_query": {
-      "unique_id": "macro.dbt.get_columns_in_query",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/columns.sql",
-      "original_file_path": "macros/adapters/columns.sql",
-      "name": "get_columns_in_query",
-      "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n  {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}",
+    "macro.dbt.resolve_model_name": {
+      "name": "resolve_model_name",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/python_model/python.sql",
+      "original_file_path": "macros/python_model/python.sql",
+      "unique_id": "macro.dbt.resolve_model_name",
+      "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n    {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__get_columns_in_query"
+          "macro.dbt_bigquery.bigquery__resolve_model_name"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.476199
+      "created_at": 1692200505.290561,
+      "supported_languages": null
     },
-    "macro.dbt.default__get_columns_in_query": {
-      "unique_id": "macro.dbt.default__get_columns_in_query",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/columns.sql",
-      "original_file_path": "macros/adapters/columns.sql",
-      "name": "default__get_columns_in_query",
-      "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n    {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n        select * from (\n            {{ select_sql }}\n        ) as __dbt_sbq\n        where false\n        limit 0\n    {% endcall %}\n\n    {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}",
+    "macro.dbt.default__resolve_model_name": {
+      "name": "default__resolve_model_name",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/python_model/python.sql",
+      "original_file_path": "macros/python_model/python.sql",
+      "unique_id": "macro.dbt.default__resolve_model_name",
+      "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n    {{  input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n",
       "depends_on": {
-        "macros": [
-          "macro.dbt.statement"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.476918
+      "created_at": 1692200505.290903,
+      "supported_languages": null
     },
-    "macro.dbt.alter_column_type": {
-      "unique_id": "macro.dbt.alter_column_type",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/columns.sql",
-      "original_file_path": "macros/adapters/columns.sql",
-      "name": "alter_column_type",
-      "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n  {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}",
+    "macro.dbt.build_ref_function": {
+      "name": "build_ref_function",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/python_model/python.sql",
+      "original_file_path": "macros/python_model/python.sql",
+      "unique_id": "macro.dbt.build_ref_function",
+      "macro_sql": "{% macro build_ref_function(model) %}\n\n    {%- set ref_dict = {} -%}\n    {%- for _ref in model.refs -%}\n        {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n        {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n        {%- if _ref.get('version') -%}\n            {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n        {%- endif -%}\n       {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n    {%- endfor -%}\n\ndef ref(*args, **kwargs):\n    refs = {{ ref_dict | tojson }}\n    key = '.'.join(args)\n    version = kwargs.get(\"v\") or kwargs.get(\"version\")\n    if version:\n        key += f\".v{version}\"\n    dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n    return dbt_load_df_function(refs[key])\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt_bigquery.bigquery__alter_column_type"
+          "macro.dbt.resolve_model_name"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.477418
+      "created_at": 1692200505.292633,
+      "supported_languages": null
     },
-    "macro.dbt.default__alter_column_type": {
-      "unique_id": "macro.dbt.default__alter_column_type",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/columns.sql",
-      "original_file_path": "macros/adapters/columns.sql",
-      "name": "default__alter_column_type",
-      "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n  {#\n    1. Create a new column (w/ temp name and correct type)\n    2. Copy data over to it\n    3. Drop the existing column (cascade!)\n    4. Rename the new column to existing column\n  #}\n  {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n  {% call statement('alter_column_type') %}\n    alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n    update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n    alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n    alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n  {% endcall %}\n\n{% endmacro %}",
+    "macro.dbt.build_source_function": {
+      "name": "build_source_function",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/python_model/python.sql",
+      "original_file_path": "macros/python_model/python.sql",
+      "unique_id": "macro.dbt.build_source_function",
+      "macro_sql": "{% macro build_source_function(model) %}\n\n    {%- set source_dict = {} -%}\n    {%- for _source in model.sources -%}\n        {%- set resolved = source(*_source) -%}\n        {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n    {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n    sources = {{ source_dict | tojson }}\n    key = '.'.join(args)\n    return dbt_load_df_function(sources[key])\n\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.statement"
+          "macro.dbt.resolve_model_name"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.478715
+      "created_at": 1692200505.2936199,
+      "supported_languages": null
     },
-    "macro.dbt.alter_relation_add_remove_columns": {
-      "unique_id": "macro.dbt.alter_relation_add_remove_columns",
+    "macro.dbt.build_config_dict": {
+      "name": "build_config_dict",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/columns.sql",
-      "original_file_path": "macros/adapters/columns.sql",
-      "name": "alter_relation_add_remove_columns",
-      "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n  {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}",
+      "path": "macros/python_model/python.sql",
+      "original_file_path": "macros/python_model/python.sql",
+      "unique_id": "macro.dbt.build_config_dict",
+      "macro_sql": "{% macro build_config_dict(model) %}\n    {%- set config_dict = {} -%}\n    {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n    {%- for key, default in config_dbt_used -%}\n        {# weird type testing with enum, would be much easier to write this logic in Python! #}\n        {%- if key == \"language\" -%}\n          {%- set value = \"python\" -%}\n        {%- endif -%}\n        {%- set value = model.config.get(key, default) -%}\n        {%- do config_dict.update({key: value}) -%}\n    {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}",
+      "depends_on": {
+        "macros": []
+      },
+      "description": "",
+      "meta": {},
+      "docs": {
+        "show": true,
+        "node_color": null
+      },
+      "patch_path": null,
+      "arguments": [],
+      "created_at": 1692200505.294878,
+      "supported_languages": null
+    },
+    "macro.dbt.py_script_postfix": {
+      "name": "py_script_postfix",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/python_model/python.sql",
+      "original_file_path": "macros/python_model/python.sql",
+      "unique_id": "macro.dbt.py_script_postfix",
+      "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n    def __init__(self, *args, **kwargs):\n        pass\n\n    @staticmethod\n    def get(key, default=None):\n        return config_dict.get(key, default)\n\nclass this:\n    \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n    database = \"{{ this.database }}\"\n    schema = \"{{ this.schema }}\"\n    identifier = \"{{ this.identifier }}\"\n    {% set this_relation_name = resolve_model_name(this) %}\n    def __repr__(self):\n        return '{{ this_relation_name  }}'\n\n\nclass dbtObj:\n    def __init__(self, load_df_function) -> None:\n        self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n        self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n        self.config = config\n        self.this = this()\n        self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}",
       "depends_on": {
         "macros": [
-          "macro.dbt.default__alter_relation_add_remove_columns"
+          "macro.dbt.build_ref_function",
+          "macro.dbt.build_source_function",
+          "macro.dbt.build_config_dict",
+          "macro.dbt.resolve_model_name",
+          "macro.dbt.is_incremental",
+          "macro.dbt.py_script_comment"
         ]
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4792619
+      "created_at": 1692200505.295883,
+      "supported_languages": null
     },
-    "macro.dbt.default__alter_relation_add_remove_columns": {
-      "unique_id": "macro.dbt.default__alter_relation_add_remove_columns",
-      "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
-      "path": "macros/adapters/columns.sql",
-      "original_file_path": "macros/adapters/columns.sql",
-      "name": "default__alter_relation_add_remove_columns",
-      "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n  \n  {% if add_columns is none %}\n    {% set add_columns = [] %}\n  {% endif %}\n  {% if remove_columns is none %}\n    {% set remove_columns = [] %}\n  {% endif %}\n  \n  {% set sql -%}\n     \n     alter {{ relation.type }} {{ relation }}\n       \n            {% for column in add_columns %}\n               add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n            {% endfor %}{{ ',' if add_columns and remove_columns }}\n            \n            {% for column in remove_columns %}\n                drop column {{ column.name }}{{ ',' if not loop.last }}\n            {% endfor %}\n  \n  {%- endset -%}\n\n  {% do run_query(sql) %}\n\n{% endmacro %}",
+    "macro.dbt.py_script_comment": {
+      "name": "py_script_comment",
       "resource_type": "macro",
-      "tags": [],
+      "package_name": "dbt",
+      "path": "macros/python_model/python.sql",
+      "original_file_path": "macros/python_model/python.sql",
+      "unique_id": "macro.dbt.py_script_comment",
+      "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}",
       "depends_on": {
-        "macros": [
-          "macro.dbt.run_query"
-        ]
+        "macros": []
       },
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.48112
+      "created_at": 1692200505.2960582,
+      "supported_languages": null
     },
     "macro.dbt.test_unique": {
-      "unique_id": "macro.dbt.test_unique",
+      "name": "test_unique",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
       "path": "tests/generic/builtin.sql",
       "original_file_path": "tests/generic/builtin.sql",
-      "name": "test_unique",
+      "unique_id": "macro.dbt.test_unique",
       "macro_sql": "{% test unique(model, column_name) %}\n    {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n    {{ macro(model, column_name) }}\n{% endtest %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt_bigquery.bigquery__test_unique"
@@ -4871,22 +8966,22 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4822001
+      "created_at": 1692200505.29702,
+      "supported_languages": null
     },
     "macro.dbt.test_not_null": {
-      "unique_id": "macro.dbt.test_not_null",
+      "name": "test_not_null",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
       "path": "tests/generic/builtin.sql",
       "original_file_path": "tests/generic/builtin.sql",
-      "name": "test_not_null",
+      "unique_id": "macro.dbt.test_not_null",
       "macro_sql": "{% test not_null(model, column_name) %}\n    {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n    {{ macro(model, column_name) }}\n{% endtest %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt.default__test_not_null"
@@ -4895,22 +8990,22 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.4827
+      "created_at": 1692200505.297528,
+      "supported_languages": null
     },
     "macro.dbt.test_accepted_values": {
-      "unique_id": "macro.dbt.test_accepted_values",
+      "name": "test_accepted_values",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
       "path": "tests/generic/builtin.sql",
       "original_file_path": "tests/generic/builtin.sql",
-      "name": "test_accepted_values",
+      "unique_id": "macro.dbt.test_accepted_values",
       "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n    {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n    {{ macro(model, column_name, values, quote) }}\n{% endtest %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt.default__test_accepted_values"
@@ -4919,22 +9014,22 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.483317
+      "created_at": 1692200505.2981539,
+      "supported_languages": null
     },
     "macro.dbt.test_relationships": {
-      "unique_id": "macro.dbt.test_relationships",
+      "name": "test_relationships",
+      "resource_type": "macro",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
       "path": "tests/generic/builtin.sql",
       "original_file_path": "tests/generic/builtin.sql",
-      "name": "test_relationships",
+      "unique_id": "macro.dbt.test_relationships",
       "macro_sql": "{% test relationships(model, column_name, to, field) %}\n    {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n    {{ macro(model, column_name, to, field) }}\n{% endtest %}",
-      "resource_type": "macro",
-      "tags": [],
       "depends_on": {
         "macros": [
           "macro.dbt.default__test_relationships"
@@ -4943,26 +9038,29 @@
       "description": "",
       "meta": {},
       "docs": {
-        "show": true
+        "show": true,
+        "node_color": null
       },
       "patch_path": null,
       "arguments": [],
-      "created_at": 1644333973.483912
+      "created_at": 1692200505.298752,
+      "supported_languages": null
     }
   },
   "docs": {
-    "dbt.__overview__": {
-      "unique_id": "dbt.__overview__",
+    "doc.dbt.__overview__": {
+      "name": "__overview__",
+      "resource_type": "doc",
       "package_name": "dbt",
-      "root_path": "/var/dbt/include/global_project",
       "path": "overview.md",
       "original_file_path": "docs/overview.md",
-      "name": "__overview__",
+      "unique_id": "doc.dbt.__overview__",
       "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"
     }
   },
   "exposures": {},
   "metrics": {},
+  "groups": {},
   "selectors": {},
   "disabled": {},
   "parent_map": {
@@ -4997,5 +9095,6 @@
     "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710": [],
     "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493": [],
     "test.my_new_project.not_null_my_second_dbt_model_id.151b76d778": []
-  }
-}
+  },
+  "group_map": {}
+}
\ No newline at end of file
diff --git a/tests/manifest_generation_tutorial.md b/tests/manifest_generation_tutorial.md
new file mode 100644
index 0000000..382e4bd
--- /dev/null
+++ b/tests/manifest_generation_tutorial.md
@@ -0,0 +1,80 @@
+# About
+
+This document instructs how to generate `tests/goldens/manifest.json` for a particular dbt and manifest schema version.
+
+# Tutorial
+
+dbt version to Manifest version mapping is documented here: https://docs.getdbt.com/reference/artifacts/manifest-json
+
+
+## dbt Core v.1.5.4 (Manifest version v9)
+
+### 1. Prepare environment
+
+```
+virtualenv manifest_test --python=python3.9
+source manifest_test/bin/activate
+(manifest_test) % pip install -r requirements.txt
+```
+Where `requirements.txt` contains the following packages (please check which plugin version is compatible with a corresponding dbt version).
+
+```
+acryl-datahub[dbt]==0.10.4
+dbt-core==1.5.4
+dbt-spark==1.5.2
+dbt-bigquery==1.5.5
+dbt-postgres==1.5.4
+dbt-snowflake==1.5.2
+dbt-redshift==1.5.9
+```
+
+### 2. Init dbt
+
+```commandline
+(manifest_test) % mkdir manifest_test_project
+(manifest_test) % cd manifest_test_project
+(manifest_test) % dbt init
+```
+Fill in the information in the wizard as below.
+
+```
+Running with dbt=1.5.4
+Enter a name for your project (letters, digits, underscore): my_new_project
+Which database would you like to use?
+[1] bigquery
+[2] snowflake
+[3] redshift
+[4] postgres
+[5] spark
+Enter a number: 1
+[1] oauth
+[2] service_account
+Desired authentication method option (enter a number): 1
+project (GCP project id): exampleproject
+dataset (the name of your dbt dataset): username_private_working_dataset
+threads (1 or more): 1
+job_execution_timeout_seconds [300]: 150
+[1] US
+[2] EU
+Desired location option (enter a number): 1
+Profile my_new_project written to /Users/your-user/.dbt/profiles.yml using target's profile_template.yml and your supplied values. Run 'dbt debug' to validate the connection.
+
+Your new dbt project "my_new_project" was created!
+```
+
+### 3. Compile your dbt project
+
+Navigate to your newly created project and run `dbt compile`:
+
+```
+cd my_new_project
+dbt compile
+```
+
+You can find the generated `manifest.json` file in `target` folder.
+
+### 4. Copy manifest to your data-pipelines-cli branch
+
+Overwrite `tests/goldens/manifest.json` on your local branch of `data-pipelines-cli` repository with the generated `manifest.json`. Verify if tests run successfully, if not - adjust the code to the new version of Manifest schema.
+
+Navigate to folder my_new_project2p/target where manifest.json has just been generated
\ No newline at end of file