Go to file
desmond-hui 7189148e41
Community curation setup (#32)
* community curation setup

* fix image repo
2022-12-20 13:20:37 -08:00
analysis Inital/setup (#1) 2022-06-16 18:19:56 -04:00
data updating swap pools (#16) 2022-09-01 15:54:39 -04:00
docs An 2469/get contracts (#26) 2022-11-30 10:49:46 -05:00
macros community curation setup (#30) 2022-12-20 13:01:03 -08:00
models task to model (#27) 2022-12-05 15:22:18 -05:00
snapshots Inital/setup (#1) 2022-06-16 18:19:56 -04:00
tests store failures (#12) 2022-08-09 16:39:03 -04:00
.env.sample community curation setup (#30) 2022-12-20 13:01:03 -08:00
.gitignore community curation setup (#30) 2022-12-20 13:01:03 -08:00
dbt_project.yml added project level variable and associated IF statements to on-run-start macros to default UDF/SP updates to False (#23) 2022-11-14 14:22:21 -05:00
docker-compose.yml community curation setup (#30) 2022-12-20 13:01:03 -08:00
Dockerfile Community curation setup (#32) 2022-12-20 13:20:37 -08:00
LICENSE Initial commit 2022-06-10 15:35:11 -04:00
Makefile community curation setup (#30) 2022-12-20 13:01:03 -08:00
packages.yml HC package (#25) 2022-11-22 09:31:07 -05:00
profiles.yml community curation setup (#30) 2022-12-20 13:01:03 -08:00
README.md added project level variable and associated IF statements to on-run-start macros to default UDF/SP updates to False (#23) 2022-11-14 14:22:21 -05:00

Profile Set Up

Use the following within profiles.yml


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