Go to file
2022-12-07 08:51:33 -05:00
analysis Initial/setup (#1) 2022-06-16 19:05:07 -04:00
data add tokens + test tweak (#48) 2022-11-15 13:17:23 -05:00
docs all contracts (#53) 2022-11-30 14:03:51 -05:00
macros task to model (#54) 2022-12-05 15:17:47 -05:00
models back up recency 2022-12-07 08:51:33 -05:00
snapshots Initial/setup (#1) 2022-06-16 19:05:07 -04:00
tests store failures (#18) 2022-08-09 10:55:44 -04:00
.gitignore Initial/setup (#1) 2022-06-16 19:05:07 -04:00
dbt_project.yml AN-2390/update-vars-udf-sp-opt (#46) 2022-11-11 11:10:02 -07:00
LICENSE Initial commit 2022-06-10 13:57:06 -04:00
packages.yml HC package (#50) 2022-11-22 09:31:33 -05:00
README.md updated README to include info on project lvl vars (#47) 2022-11-14 11:36:46 -07:00

Profile Set Up

Use the following within profiles.yml


optimism:
  target: dev
  outputs:
    dev:
      type: snowflake
      account: <ACCOUNT>
      role: <ROLE>
      user: <USERNAME>
      password: <PASSWORD>
      region: <REGION>
      database: OPTIMISM_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: OPTIMISM
      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