Go to file
Austin f65da7e9a1
contracts model + tasks (#32)
* contracts model + tasks

* docs

* back off
2022-11-30 10:57:34 -05:00
analysis Initial/setup (#1) 2022-06-22 17:04:36 -04:00
data An 1979/sushi table improvement (#25) 2022-09-16 14:27:51 -04:00
docs contracts model + tasks (#32) 2022-11-30 10:57:34 -05:00
macros contracts model + tasks (#32) 2022-11-30 10:57:34 -05:00
models contracts model + tasks (#32) 2022-11-30 10:57:34 -05:00
snapshots Initial/setup (#1) 2022-06-22 17:04:36 -04:00
tests store failures (#12) 2022-08-09 10:54:35 -04:00
.env.sample add community dev and dbt container (#10) 2022-07-13 14:42:42 -04:00
.gitignore add community dev and dbt container (#10) 2022-07-13 14:42:42 -04:00
dbt_project.yml added project level variable and associated IF statements to on-run-start macros to default UDF/SP updates to False (#30) 2022-11-14 14:24:26 -05:00
docker-compose.yml add community dev and dbt container (#10) 2022-07-13 14:42:42 -04:00
Dockerfile add community dev and dbt container (#10) 2022-07-13 14:42:42 -04:00
LICENSE Initial commit 2022-06-10 15:49:28 -04:00
Makefile add community dev and dbt container (#10) 2022-07-13 14:42:42 -04:00
packages.yml HC packages (#31) 2022-11-22 09:32:40 -05:00
profiles.yml add community dev and dbt container (#10) 2022-07-13 14:42:42 -04:00
README.md added project level variable and associated IF statements to on-run-start macros to default UDF/SP updates to False (#30) 2022-11-14 14:24:26 -05:00

Profile Set Up

Use the following within profiles.yml


avalanche:
  target: dev
  outputs:
    dev:
      type: snowflake
      account: <ACCOUNT>
      role: <ROLE>
      user: <USERNAME>
      password: <PASSWORD>
      region: <REGION>
      database: AVALANCHE_DEV
      warehouse: <WAREHOUSE>
      schema: silver
      threads: 12
      client_session_keep_alive: False
      query_tag: <TAG>
    prod:
      type: snowflake
      account: <ACCOUNT>
      role: <ROLE>
      user: <USERNAME>
      password: <PASSWORD>
      region: <REGION>
      database: AVALANCHE
      warehouse: <WAREHOUSE>
      schema: silver
      threads: 12
      client_session_keep_alive: False
      query_tag: <TAG>

Variables

To control the creation of UDF or SP macros with dbt run:

  • UPDATE_UDFS_AND_SPS When True, executes all macros included in the on-run-start hooks within dbt_project.yml on model run as normal When False, none of the on-run-start macros are executed on model run

Default values are False

  • Usage: dbt run --var '{"UPDATE_UDFS_AND_SPS":True}' -m ...

Resources:

  • Learn more about dbt in the docs
  • Check out Discourse for commonly asked questions and answers
  • Join the chat on Slack for live discussions and support
  • Find dbt events near you
  • Check out the blog for the latest news on dbt's development and best practices