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
{% macro can_sum(field) %} | |
{{return(field.dtype.lower() in ('integer', 'bigint', 'double precision', 'float', 'real', 'numeric', 'decimal'))}} | |
{% endmacro %} | |
{% macro can_percentile(field) %} | |
{{return(field.dtype.lower() in ('integer', 'bigint', 'double precision', 'float', 'real', 'numeric', 'decimal', 'date', 'timestamp', 'timestamptz'))}} | |
{% endmacro %} | |
{% macro describe_model(model) %} | |
{# Calculates descriptive statistics for each field in model. Model should be a |
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
# Any lines preceded by > can be typed or pasted directly into Powershell. | |
# This has been tested on Windows 10 and dbt v 0.12. Last updated Jan 4, 2019 | |
# Before trying to follow this recipe, you need to set the Execution Policy | |
# You probably need to do this running Powershell as an admin | |
> Set-ExecutionPolicy RemoteSigned | |
# Next install chocolatey: | |
> iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |