mirror of
https://github.com/FlipsideCrypto/cosmos-models.git
synced 2026-02-06 13:11:50 +00:00
* Initial commit for Cosmos DBT Project * Add gitignore * Removed dbt packages * Removed dbt logs * Delete target * Remove DS_Stores * Delete ds_store |
||
|---|---|---|
| analysis | ||
| data | ||
| macros | ||
| models | ||
| snapshots | ||
| tests | ||
| .gitignore | ||
| dbt_project.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| Makefile | ||
| packages.yml | ||
| profiles.yml | ||
| README.md | ||
Profile Set Up
Use the following within profiles.yml
cosmos:
target: dev
outputs:
dev:
type: snowflake
account: vna27887.us-east-1
role: INTERNAL_DEV
user: <USERNAME>
password: <PASSWORD>
region: us-east-1
database: COSMOS_DEV
warehouse: DBT_EMERGENCY
schema: silver
threads: 12
client_session_keep_alive: False
query_tag: <QUERY_TAG>
prod:
type: snowflake
account: vna27887.us-east-1
role: DBT_CLOUD_COSMOS
user: <USERNAME>
password: <PASSWORD>
region: us-east-1
database: COSMOS
warehouse: DBT_EMERGENCY
schema: silver
threads: 12
client_session_keep_alive: False
query_tag: <QUERY_TAG>
Variables
To control which external table environment a model references, as well as, whether a Stream is invoked at runtime using control variables:
- STREAMLINE_INVOKE_STREAMS When True, invokes streamline on model run as normal When False, NO-OP
- STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES When True, uses DEV schema Streamline.Cosmos_DEV When False, uses PROD schema Streamline.Cosmos
Default values are False
- Usage: dbt run --var '{"STREAMLINE_USE_DEV_FOR_EXTERNAL_TABLES":True, "STREAMLINE_INVOKE_STREAMS":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