near-models/dbt_project.yml

87 lines
2.4 KiB
YAML
Raw Normal View History

2022-01-12 19:15:26 +00:00
# Name your project! Project names should contain only lowercase characters
# and underscores. A good package name should reflect your organization's
# name or the intended use of these models
2024-09-11 17:22:35 +00:00
name: "near_models"
2022-08-29 18:40:22 +00:00
version: "1.2.0"
2022-01-12 19:15:26 +00:00
config-version: 2
# This setting configures which "profile" dbt uses for this project.
2022-05-25 04:56:10 +00:00
profile: "near"
2024-01-26 06:29:06 +00:00
require-dbt-version: ">=1.7.0"
2022-01-12 19:15:26 +00:00
# These configurations specify where dbt should look for different types of files.
# The `source-paths` config, for example, states that models in this project can be
# found in the "models/" directory. You probably won't need to change these!
2022-05-25 04:56:10 +00:00
model-paths: ["models"]
2022-01-12 19:15:26 +00:00
analysis-paths: ["analysis"]
test-paths: ["tests"]
2022-05-25 04:56:10 +00:00
seed-paths: ["data"]
2022-01-12 19:15:26 +00:00
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_modules"
2022-05-25 04:56:10 +00:00
- "dbt_packages"
2022-01-12 19:15:26 +00:00
2022-07-12 18:55:52 +00:00
on-run-start:
- "{{ create_udfs() }}"
2022-07-12 18:55:52 +00:00
- "{{create_sps()}}"
2023-01-03 21:32:31 +00:00
- "{{create_get_nearblocks_fts()}}"
2022-07-12 18:55:52 +00:00
2023-01-23 18:08:34 +00:00
on-run-end:
2023-09-07 17:59:55 +00:00
- "{{ apply_meta_as_tags(results) }}"
2023-01-23 18:08:34 +00:00
2022-01-12 19:15:26 +00:00
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
# In this example config, we tell dbt to build all models in the example/ directory
# as tables. These settings can be overridden in the individual model files
# using the `{{ config(...) }}` macro.
models:
2023-06-29 20:50:29 +00:00
+copy_grants: True
2022-12-01 18:02:23 +00:00
+persist_docs:
2023-06-29 20:50:29 +00:00
relation: True
columns: True
2022-12-01 18:02:23 +00:00
+on_schema_change: "append_new_columns"
2024-11-20 19:17:32 +00:00
near_models:
+pre-hook: '{{ fsc_utils.set_query_tag() }}'
2022-05-19 12:49:36 +00:00
tests:
2022-08-12 23:17:05 +00:00
near:
2023-02-02 23:01:00 +00:00
silver:
2023-06-29 20:50:29 +00:00
+error_if: ">100" # only raise as error if >100, otherwise warn
+store_failures: True # all tests
2022-05-25 04:56:10 +00:00
vars:
2022-05-25 05:04:01 +00:00
"dbt_date:time_zone": GMT
STREAMLINE_INVOKE_STREAMS: False
STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES: False
UPDATE_UDFS_AND_SPS: False
2023-06-27 18:55:22 +00:00
UPDATE_SNOWFLAKE_TAGS: True
MANUAL_FIX: False
2023-09-07 17:59:55 +00:00
OBSERV_FULL_TEST: False
2024-02-06 05:04:03 +00:00
DBT_FULL_TEST: False
STREAMLINE_LOAD_LOOKBACK_HOURS: 3
RECEIPT_MAP_LOOKBACK_HOURS: 6
IS_MIGRATION: False
HEAL_MODELS: []
2024-11-20 19:17:32 +00:00
core_folders: [
'silver/streamline',
'silver/actions',
'gold/core',
'streamline'
]
2023-09-07 21:41:50 +00:00
dispatch:
- macro_namespace: dbt
search_order:
2023-09-08 14:56:42 +00:00
- near-models
2023-09-07 21:41:50 +00:00
- dbt_snowflake_query_tags
- dbt
query-comment:
2024-01-26 06:29:06 +00:00
comment: "{{ dbt_snowflake_query_tags.get_query_comment(node) }}"
2023-09-07 21:41:50 +00:00
append: true # Snowflake removes prefixed comments.