diff --git a/v1_apache-hop dash mapping/jobs_once_a_day/citizen_sports_categories_once.hpl b/v1_apache-hop dash mapping/jobs_once_a_day/citizen_sports_categories_once.hpl index d9ef1cd..741afa6 100644 --- a/v1_apache-hop dash mapping/jobs_once_a_day/citizen_sports_categories_once.hpl +++ b/v1_apache-hop dash mapping/jobs_once_a_day/citizen_sports_categories_once.hpl @@ -20,7 +20,151 @@ + + Table output + Update + Y + + + Table input + Table output + Y + + + Table input + TableInput + + Y + + 1 + + none + + + ervu_person_registry + N + SELECT recruit_id, + (sport_info->'sportRazr'->>'dataPrisv')::date start_date_category, + (sport_info->'sportRazr'->>'dataDeistv')::date as end_date_category, + sport_info->'sportRazr'->>'razryadNaim' as sports_category_name, + sport_info->'sportRazr'->>'sportNaim' as type_sport, + sport_info->>'sportZvan' as sport_title, + case when sport_info->>'sportRazr' != 'null' + then true else false end as having_sport_category, + (case when sport_info->>'sportZvan' != 'null' + then true else false end) as having_sport_title +FROM public.recruits_info r, + jsonb_array_elements(r.info->'svedFL'->'svedSport'->'sport') AS sport_info +WHERE info->'svedFL'->'svedSport'->>'sport' != 'null' + and info->'svedFL'->'svedSport'->>'sport' != '[]'; + N + + + 208 + 160 + + + + Table output + TableOutput + + Y + + 1 + + none + + + 1000 + ervu-dashboard + + + recruit_id + recruit_id + + + start_date_category + start_date_category + + + end_date_category + end_date_category + + + sports_category_name + sports_category_name + + + type_sport + type_sport + + + sport_title + sport_title + + + N + N + N + N + + Y + + N + ervu_dashboard + Y + citizen_sports_categories
+ + N + Y + N + Y + + + 400 + 160 + +
+ + Update + Update + + Y + + 1 + + none + + + 1000 + ervu-dashboard + Y + + + = + recruit_id + recruit_id + + ervu_dashboard + citizen
+ + sports_category + having_sport_category + + + having_sport_title + having_sport_title + +
+ N + Y + + + 528 + 160 + +
diff --git a/v1_apache-hop dash mapping/jobs_once_a_day/job_info_recruits_once.hwf b/v1_apache-hop dash mapping/jobs_once_a_day/job_info_recruits_once.hwf index 153a8d6..c0f44c9 100644 --- a/v1_apache-hop dash mapping/jobs_once_a_day/job_info_recruits_once.hwf +++ b/v1_apache-hop dash mapping/jobs_once_a_day/job_info_recruits_once.hwf @@ -1876,7 +1876,7 @@ Start SQL.citizen_sports_categories - N + Y Y Y