- Use UPPER case for all keywords
- Use trailing commas in SELECT statements
- Use Snowflake dialect
- Use consistent style in GROUP BY and ORDER BY (either names or numbers, not both)
- The primary key source column must have not_null and unique generic tests.
- All boolean columns must have an accepted_values schema test. The accepted values are true and false.
- Columns that contain category values must have an accepted_values schema test.
- Columns that should never be null must have a not_null schema test.
- Columns that should be unique must have a unique schema test.
- The primary key column must have not_null and unique schema tests.
- All boolean columns must have an accepted_values schema test. The accepted values are true and false.
- Columns that contain category values must have an accepted_values schema test.
- Columns that should never be null must have a not_null schema test.
- Columns that should be unique must have a unique schema test.
- Where possible, use schema tests from the dbt_utils or dbt_expectations packages to perform extra verification.
- Setup project dev environment
- Add
dbt_project_evaluator
package + fix violations - Add
SQLFluff
- Add a few more
doc blocks
- Practice custom node colors
- Install
pre-commit hooks
+ Test & Fix violations - Add
SQLFluff
topre-commit hook
- Add more
pre-commit hooks
to enforce project conventions - Add & Document
rolling_agg_n_periods
macro to generalize therolling_average_7_periods
macro - Add
date_trunc
macro to optimize thefcc_mrr
model in future
- Convert
stg_bingeflix__events
to Incremental - Install & Practice
dbt-snowflake-monitoring
package - Refactor
fct_mrrr.sql
model