You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: macros/supporting/ghost_record_per_datatype.sql
+3-11Lines changed: 3 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -609,11 +609,7 @@
609
609
{%- if ghost_record_type =='unknown'-%}
610
610
{%- if datatype =='TIMESTAMP'or datatype =='TIMESTAMP WITH TIME ZONE'or datatype =='TIMESTAMP WITH LOCAL TIME ZONE' %} {{-datavault4dbt.string_to_timestamp( timestamp_format , beginning_of_all_times) }} as {{ alias }}
{%- elif datatype =='VARCHAR'-%} '{{unknown_value__STRING}}'as {{ alias }}
613
-
{%- elif datatype =='VARCHAR2'-%} '{{unknown_value__STRING}}'as {{ alias }}
614
-
{%- elif datatype =='NVARCHAR2' %} '{{unknown_value__STRING}}'as {{ alias }}
615
-
{%- elif datatype =='CHAR' %} '{{unknown_value__STRING}}'as {{ alias }}
616
-
{%- elif datatype =='NCHAR' %} '{{unknown_value__STRING}}'as {{ alias }}
612
+
{%- elif 'CHAR'in datatype %} '{{unknown_value__STRING}}'as {{ alias }}
617
613
{%- elif datatype =='LONG' %} '{{unknown_value__STRING}}'as {{ alias }}
618
614
{%- elif datatype =='NUMBER' %} CAST('{{unknown_value__numeric}}'asNUMBER) as {{ alias }}
619
615
{%- elif datatype =='FLOAT' %} CAST('{{unknown_value__numeric}}'as FLOAT) as {{ alias }}
@@ -622,11 +618,7 @@
622
618
{%- elif ghost_record_type =='error'-%}
623
619
{%- if datatype =='TIMESTAMP'or datatype =='TIMESTAMP WITH TIME ZONE'or datatype =='TIMESTAMP WITH LOCAL TIME ZONE' %} {{-datavault4dbt.string_to_timestamp( timestamp_format , end_of_all_times) }} as {{ alias }}
0 commit comments