-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from calogica/fix/postgres-support
Add initial Postgres support
- Loading branch information
Showing
7 changed files
with
41 additions
and
8 deletions.
There are no files selected for viewing
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,9 @@ | |
uniform(0::float, 1::float, random()) | ||
|
||
{%- endmacro -%} | ||
|
||
{% macro postgres__rand() %} | ||
|
||
random() | ||
|
||
{%- endmacro -%} |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% macro postgres__type_timestamp() -%} | ||
timestamp without time zone | ||
{%- endmacro %} | ||
|
||
|
||
{%- macro type_datetime() -%} | ||
{{ return(adapter.dispatch('type_datetime', packages = dbt_expectations._get_namespaces())()) }} | ||
{%- endmacro -%} | ||
|
||
{% macro default__type_datetime() -%} | ||
datetime | ||
{%- endmacro %} | ||
|
||
{% macro snowflake__type_datetime() -%} | ||
{# see: https://docs.snowflake.com/en/sql-reference/data-types-datetime.html#datetime #} | ||
timestamp_ntz | ||
{%- endmacro %} | ||
|
||
{% macro postgres__type_datetime() -%} | ||
timestamp without time zone | ||
{%- endmacro %} |