|
82 | 82 |
|
83 | 83 | {%- if ghost_record_type == 'unknown' -%}
|
84 | 84 |
|
85 |
| - {%- if datatype == 'TIMESTAMP' or datatype == 'TIMESTAMP WITH LOCAL TIMEZONE' %} {{- datavault4dbt.string_to_timestamp( timestamp_format , beginning_of_all_times) }} as "{{ column_name }}" |
| 85 | + {%- if datatype == 'TIMESTAMP' or datatype == 'TIMESTAMP WITH LOCAL TIMEZONE' %} {{- datavault4dbt.string_to_timestamp( timestamp_format , beginning_of_all_times) }} as {{ alias }} |
86 | 86 | {%- elif datatype == 'DATE'-%} TO_DATE('{{ beginning_of_all_times_date }}', '{{ date_format }}' ) as {{ alias }}
|
87 | 87 | {%- elif datatype.upper().startswith('VARCHAR') -%}
|
88 | 88 | {%- if col_size is not none -%}
|
|
110 | 110 |
|
111 | 111 | {%- elif ghost_record_type == 'error' -%}
|
112 | 112 |
|
113 |
| - {%- if datatype == 'TIMESTAMP' or datatype == 'TIMESTAMP WITH LOCAL TIME ZONE' %} {{- datavault4dbt.string_to_timestamp( timestamp_format , end_of_all_times) }} as "{{ column_name }}" |
| 113 | + {%- if datatype == 'TIMESTAMP' or datatype == 'TIMESTAMP WITH LOCAL TIME ZONE' %} {{- datavault4dbt.string_to_timestamp( timestamp_format , end_of_all_times) }} as {{ alias }} |
114 | 114 | {%- elif datatype == 'DATE'-%} TO_DATE('{{ end_of_all_times_date }}', '{{ date_format }}' ) as {{ alias }}
|
115 | 115 | {%- elif datatype.upper().startswith('VARCHAR') -%}
|
116 | 116 | {%- if col_size is not none -%}
|
|
267 | 267 |
|
268 | 268 | {%- if ghost_record_type == 'unknown' -%}
|
269 | 269 |
|
270 |
| - {%- if datatype in ['DATETIME', 'DATETIME2', 'DATETIMEOFFSET'] %} CONVERT({{ datatype }}, {{- datavault4dbt.string_to_timestamp( timestamp_format , beginning_of_all_times) }}) as "{{ column_name }}" |
| 270 | + {%- if datatype in ['DATETIME', 'DATETIME2', 'DATETIMEOFFSET'] %} CONVERT({{ datatype }}, {{- datavault4dbt.string_to_timestamp( timestamp_format , beginning_of_all_times) }}) as "{{ alias }}" |
271 | 271 | {%- elif 'CHAR' in datatype -%}
|
272 | 272 | {%- if col_size is not none -%}
|
273 | 273 | {%- if (col_size | int) == -1 -%}
|
|
297 | 297 |
|
298 | 298 | {%- elif ghost_record_type == 'error' -%}
|
299 | 299 |
|
300 |
| - {%- if datatype in ['DATETIME', 'DATETIME2', 'DATETIMEOFFSET'] %} CONVERT({{ datatype }}, {{- datavault4dbt.string_to_timestamp( timestamp_format , end_of_all_times) }}) as "{{ column_name }}" |
| 300 | + {%- if datatype in ['DATETIME', 'DATETIME2', 'DATETIMEOFFSET'] %} CONVERT({{ datatype }}, {{- datavault4dbt.string_to_timestamp( timestamp_format , end_of_all_times) }}) as "{{ alias }}" |
301 | 301 | {%- elif 'CHAR' in datatype -%}
|
302 | 302 | {%- if col_size is not none -%}
|
303 | 303 | {%- if (col_size | int) == -1 -%}
|
|
0 commit comments