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: source/expectations/data_values/ut_compound_data_helper.pkb
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -206,6 +206,14 @@ create or replace package body ut_compound_data_helper is
206
206
begin
207
207
if a_data_info.is_sql_diffable = 0 then
208
208
l_col_syntax := l_ut_owner ||'.ut_compound_data_helper.get_hash('||l_alias||a_data_info.transformed_name||'.getClobVal()) as '||a_data_info.transformed_name ;
209
+
elsif a_data_info.is_sql_diffable = 1 and a_data_info.column_type = 'DATE' then
210
+
l_col_syntax := 'to_date('||l_alias||a_data_info.transformed_name||','''||ut_utils.gc_date_format||''') as '|| a_data_info.transformed_name;
211
+
elsif a_data_info.is_sql_diffable = 1 and a_data_info.column_type in ('TIMESTAMP') then
212
+
l_col_syntax := 'to_timestamp('||l_alias||a_data_info.transformed_name||','''||ut_utils.gc_timestamp_format||''') as '|| a_data_info.transformed_name;
213
+
elsif a_data_info.is_sql_diffable = 1 and a_data_info.column_type in ('TIMESTAMP WITH TIME ZONE') then
214
+
l_col_syntax := 'to_timestamp_tz('||l_alias||a_data_info.transformed_name||','''||ut_utils.gc_timestamp_tz_format||''') as '|| a_data_info.transformed_name;
215
+
elsif a_data_info.is_sql_diffable = 1 and a_data_info.column_type in ('TIMESTAMP WITH LOCAL TIME ZONE') then
216
+
l_col_syntax := ' cast( to_timestamp_tz('||l_alias||a_data_info.transformed_name||','''||ut_utils.gc_timestamp_tz_format||''') AS TIMESTAMP WITH LOCAL TIME ZONE) as '|| a_data_info.transformed_name;
209
217
else
210
218
l_col_syntax := l_alias||a_data_info.transformed_name||' as '|| a_data_info.transformed_name;
211
219
end if;
@@ -217,12 +225,8 @@ create or replace package body ut_compound_data_helper is
217
225
begin
218
226
if a_data_info.is_sql_diffable = 0 then
219
227
l_col_type := 'XMLTYPE';
220
-
elsif a_data_info.is_sql_diffable = 1 and a_data_info.column_type = 'DATE' then
221
-
l_col_type := 'TIMESTAMP';
222
-
elsif a_data_info.is_sql_diffable = 1 and a_data_info.column_type in ('TIMESTAMP','TIMESTAMP WITH TIME ZONE') then
0 commit comments