Skip to content

Commit

Permalink
Merge pull request #143 from AgencyPMG/feature/add-crossdb-datatypes
Browse files Browse the repository at this point in the history
Added float and bigint datatype conversions
  • Loading branch information
drewbanin authored Jun 18, 2019
2 parents b383a44 + 3571e76 commit b568f70
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions macros/cross_db_utils/datatypes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,47 @@
{% macro snowflake__type_timestamp() %}
timestamp_ntz
{% endmacro %}


{# float ------------------------------------------------- #}

{% macro type_float() %}
{{ adapter_macro('dbt_utils.type_float') }}
{% endmacro %}

{% macro default__type_float() %}
float
{% endmacro %}

{% macro bigquery__type_float() %}
float64
{% endmacro %}


{# bigint ------------------------------------------------- #}

{% macro type_bigint() %}
{{ adapter_macro('dbt_utils.type_bigint') }}
{% endmacro %}

{% macro default__type_bigint() %}
bigint
{% endmacro %}

{% macro bigquery__type_bigint() %}
int64
{% endmacro %}

{# int ------------------------------------------------- #}

{% macro type_int() %}
{{ adapter_macro('dbt_utils.type_int') }}
{% endmacro %}

{% macro default__type_int() %}
int
{% endmacro %}

{% macro bigquery__type_int() %}
int64
{% endmacro %}

0 comments on commit b568f70

Please sign in to comment.