diff --git a/macros/cross_db_utils/datatypes.sql b/macros/cross_db_utils/datatypes.sql index 13dee6df..4b056101 100644 --- a/macros/cross_db_utils/datatypes.sql +++ b/macros/cross_db_utils/datatypes.sql @@ -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 %}