This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# | |
This overrides the default source() macro to include the option | |
for using BigQuery's time travel functionality. This allows for | |
for full refreshes in dev to query a source table at an earlier | |
point-in-time, so that subsequent incremental runs can be tested | |
in a more realistic manner. | |
#} | |
{% macro source(source_name, table_name) %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snippet cols "Creates dbt column documentation" b | |
- name: $1 | |
description: $2 | |
${3:tests:} | |
endsnippet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" adapted from https://github.com/fishtown-analytics/atom-dbt/blob/master/snippets/atom-jinja2.cson | |
snippet config "dbt config block" b | |
\{\{ | |
config( | |
materialized = "$1", | |
sort = "$2", | |
dist = "$3" | |
) | |
\}\} |