|
| 1 | +{# These macros have been moved into dbt-core #} |
| 2 | +{# Here for backwards compatibility ONLY #} |
| 3 | + |
1 | 4 | {# string ------------------------------------------------- #}
|
2 | 5 |
|
3 | 6 | {%- macro type_string() -%}
|
4 |
| - {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }} |
| 7 | + {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }} |
5 | 8 | {%- endmacro -%}
|
6 | 9 |
|
7 | 10 | {% macro default__type_string() %}
|
8 |
| - string |
| 11 | + {{ return(adapter.dispatch('type_string', 'dbt')()) }} |
9 | 12 | {% endmacro %}
|
10 | 13 |
|
11 |
| -{%- macro redshift__type_string() -%} |
12 |
| - varchar |
13 |
| -{%- endmacro -%} |
14 |
| - |
15 |
| -{% macro postgres__type_string() %} |
16 |
| - varchar |
17 |
| -{% endmacro %} |
18 |
| - |
19 |
| -{% macro snowflake__type_string() %} |
20 |
| - varchar |
21 |
| -{% endmacro %} |
22 |
| - |
23 |
| - |
24 | 14 |
|
25 | 15 | {# timestamp ------------------------------------------------- #}
|
26 | 16 |
|
27 | 17 | {%- macro type_timestamp() -%}
|
28 |
| - {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }} |
| 18 | + {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }} |
29 | 19 | {%- endmacro -%}
|
30 | 20 |
|
31 | 21 | {% macro default__type_timestamp() %}
|
32 |
| - timestamp |
33 |
| -{% endmacro %} |
34 |
| - |
35 |
| -{% macro postgres__type_timestamp() %} |
36 |
| - timestamp without time zone |
37 |
| -{% endmacro %} |
38 |
| - |
39 |
| -{% macro snowflake__type_timestamp() %} |
40 |
| - timestamp_ntz |
| 22 | + {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }} |
41 | 23 | {% endmacro %}
|
42 | 24 |
|
43 | 25 |
|
44 | 26 | {# float ------------------------------------------------- #}
|
45 | 27 |
|
46 | 28 | {%- macro type_float() -%}
|
47 |
| - {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }} |
| 29 | + {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }} |
48 | 30 | {%- endmacro -%}
|
49 | 31 |
|
50 | 32 | {% macro default__type_float() %}
|
51 |
| - float |
| 33 | + {{ return(adapter.dispatch('type_float', 'dbt')()) }} |
52 | 34 | {% endmacro %}
|
53 | 35 |
|
54 |
| -{% macro bigquery__type_float() %} |
55 |
| - float64 |
56 |
| -{% endmacro %} |
57 | 36 |
|
58 | 37 | {# numeric ------------------------------------------------ #}
|
59 | 38 |
|
60 | 39 | {%- macro type_numeric() -%}
|
61 |
| - {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }} |
| 40 | + {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }} |
62 | 41 | {%- endmacro -%}
|
63 | 42 |
|
64 | 43 | {% macro default__type_numeric() %}
|
65 |
| - numeric(28, 6) |
66 |
| -{% endmacro %} |
67 |
| - |
68 |
| -{% macro bigquery__type_numeric() %} |
69 |
| - numeric |
| 44 | + {{ return(adapter.dispatch('type_numeric', 'dbt')()) }} |
70 | 45 | {% endmacro %}
|
71 | 46 |
|
72 | 47 |
|
73 | 48 | {# bigint ------------------------------------------------- #}
|
74 | 49 |
|
75 | 50 | {%- macro type_bigint() -%}
|
76 |
| - {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }} |
| 51 | + {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }} |
77 | 52 | {%- endmacro -%}
|
78 | 53 |
|
79 | 54 | {% macro default__type_bigint() %}
|
80 |
| - bigint |
| 55 | + {{ return(adapter.dispatch('type_bigint', 'dbt')()) }} |
81 | 56 | {% endmacro %}
|
82 | 57 |
|
83 |
| -{% macro bigquery__type_bigint() %} |
84 |
| - int64 |
85 |
| -{% endmacro %} |
86 | 58 |
|
87 | 59 | {# int ------------------------------------------------- #}
|
88 | 60 |
|
89 | 61 | {%- macro type_int() -%}
|
90 |
| - {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }} |
| 62 | + {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }} |
91 | 63 | {%- endmacro -%}
|
92 | 64 |
|
93 | 65 | {% macro default__type_int() %}
|
94 |
| - int |
95 |
| -{% endmacro %} |
96 |
| - |
97 |
| -{% macro bigquery__type_int() %} |
98 |
| - int64 |
| 66 | + {{ return(adapter.dispatch('type_int', 'dbt')()) }} |
99 | 67 | {% endmacro %}
|
0 commit comments