2025-04-07 20:31:30 +03:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2024-10-16 10:38:29 +03:00
|
|
|
<pipeline>
|
|
|
|
|
<info>
|
|
|
|
|
<name>drivers_licence</name>
|
|
|
|
|
<name_sync_with_filename>Y</name_sync_with_filename>
|
|
|
|
|
<description/>
|
|
|
|
|
<extended_description/>
|
|
|
|
|
<pipeline_version/>
|
|
|
|
|
<pipeline_type>Normal</pipeline_type>
|
|
|
|
|
<parameters>
|
|
|
|
|
</parameters>
|
|
|
|
|
<capture_transform_performance>N</capture_transform_performance>
|
|
|
|
|
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay>
|
|
|
|
|
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit>
|
|
|
|
|
<created_user>-</created_user>
|
|
|
|
|
<created_date>2024/08/15 14:02:51.713</created_date>
|
|
|
|
|
<modified_user>-</modified_user>
|
|
|
|
|
<modified_date>2024/08/15 14:02:51.713</modified_date>
|
|
|
|
|
</info>
|
|
|
|
|
<notepads>
|
|
|
|
|
</notepads>
|
|
|
|
|
<order>
|
|
|
|
|
<hop>
|
|
|
|
|
<from>Table input</from>
|
|
|
|
|
<to>Table output</to>
|
2025-04-07 20:31:30 +03:00
|
|
|
<enabled>N</enabled>
|
2024-10-16 10:38:29 +03:00
|
|
|
</hop>
|
|
|
|
|
<hop>
|
|
|
|
|
<from>Table input 2</from>
|
|
|
|
|
<to>Table output 2</to>
|
2025-04-07 20:31:30 +03:00
|
|
|
<enabled>N</enabled>
|
|
|
|
|
</hop>
|
|
|
|
|
<hop>
|
|
|
|
|
<from>Table input 2</from>
|
|
|
|
|
<to>Insert / update 2</to>
|
|
|
|
|
<enabled>Y</enabled>
|
|
|
|
|
</hop>
|
|
|
|
|
<hop>
|
|
|
|
|
<from>Table input</from>
|
|
|
|
|
<to>Insert / update</to>
|
2024-10-16 10:38:29 +03:00
|
|
|
<enabled>Y</enabled>
|
|
|
|
|
</hop>
|
|
|
|
|
</order>
|
2025-04-07 20:31:30 +03:00
|
|
|
<transform>
|
|
|
|
|
<name>Insert / update</name>
|
|
|
|
|
<type>InsertUpdate</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
2025-05-12 14:39:11 +03:00
|
|
|
<commit>10000</commit>
|
2025-04-07 20:31:30 +03:00
|
|
|
<connection>ervu-dashboard</connection>
|
|
|
|
|
<lookup>
|
|
|
|
|
<key>
|
|
|
|
|
<condition>=</condition>
|
|
|
|
|
<field>recruit_id</field>
|
|
|
|
|
<name>recruit_id</name>
|
|
|
|
|
<name2/>
|
|
|
|
|
</key>
|
|
|
|
|
<key>
|
|
|
|
|
<condition>=</condition>
|
|
|
|
|
<field>start_date</field>
|
|
|
|
|
<name>start_date</name>
|
|
|
|
|
<name2/>
|
|
|
|
|
</key>
|
|
|
|
|
<schema>ervu_dashboard</schema>
|
|
|
|
|
<table>drivers_licence</table>
|
|
|
|
|
<value>
|
|
|
|
|
<name>recruit_id</name>
|
|
|
|
|
<rename>recruit_id</rename>
|
|
|
|
|
<update>N</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>categories</name>
|
|
|
|
|
<rename>categories</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>close_date</name>
|
|
|
|
|
<rename>close_date</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>licence_series</name>
|
|
|
|
|
<rename>licence_series</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>start_date</name>
|
|
|
|
|
<rename>start_date</rename>
|
|
|
|
|
<update>N</update>
|
|
|
|
|
</value>
|
|
|
|
|
</lookup>
|
|
|
|
|
<update_bypassed>N</update_bypassed>
|
|
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
|
|
|
|
<xloc>416</xloc>
|
|
|
|
|
<yloc>208</yloc>
|
|
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
|
|
|
|
<transform>
|
|
|
|
|
<name>Insert / update 2</name>
|
|
|
|
|
<type>InsertUpdate</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
2025-05-12 14:39:11 +03:00
|
|
|
<commit>10000</commit>
|
2025-04-07 20:31:30 +03:00
|
|
|
<connection>ervu-dashboard</connection>
|
|
|
|
|
<lookup>
|
|
|
|
|
<key>
|
|
|
|
|
<condition>=</condition>
|
|
|
|
|
<field>recruit_id</field>
|
|
|
|
|
<name>recruit_id</name>
|
2025-05-12 14:39:11 +03:00
|
|
|
<name2/>
|
2025-04-07 20:31:30 +03:00
|
|
|
</key>
|
|
|
|
|
<key>
|
|
|
|
|
<condition>=</condition>
|
|
|
|
|
<field>start_date</field>
|
|
|
|
|
<name>start_date</name>
|
2025-05-12 14:39:11 +03:00
|
|
|
<name2/>
|
2025-04-07 20:31:30 +03:00
|
|
|
</key>
|
|
|
|
|
<key>
|
|
|
|
|
<condition>=</condition>
|
|
|
|
|
<field>tractor_driver</field>
|
|
|
|
|
<name>tractor_driver</name>
|
2025-05-12 14:39:11 +03:00
|
|
|
<name2/>
|
2025-04-07 20:31:30 +03:00
|
|
|
</key>
|
|
|
|
|
<schema>ervu_dashboard</schema>
|
|
|
|
|
<table>drivers_licence</table>
|
|
|
|
|
<value>
|
|
|
|
|
<name>recruit_id</name>
|
|
|
|
|
<rename>recruit_id</rename>
|
|
|
|
|
<update>N</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>categories</name>
|
|
|
|
|
<rename>categories</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>close_date</name>
|
|
|
|
|
<rename>close_date</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>licence_number</name>
|
|
|
|
|
<rename>licence_number</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>licence_series</name>
|
|
|
|
|
<rename>licence_series</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>replacement_date</name>
|
|
|
|
|
<rename>replacement_date</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>return_date</name>
|
|
|
|
|
<rename>return_date</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>seizure_date</name>
|
|
|
|
|
<rename>seizure_date</rename>
|
|
|
|
|
<update>Y</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>start_date</name>
|
|
|
|
|
<rename>start_date</rename>
|
|
|
|
|
<update>N</update>
|
|
|
|
|
</value>
|
|
|
|
|
<value>
|
|
|
|
|
<name>tractor_driver</name>
|
|
|
|
|
<rename>tractor_driver</rename>
|
|
|
|
|
<update>N</update>
|
|
|
|
|
</value>
|
|
|
|
|
</lookup>
|
|
|
|
|
<update_bypassed>N</update_bypassed>
|
|
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
|
|
|
|
<xloc>416</xloc>
|
|
|
|
|
<yloc>416</yloc>
|
|
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
2024-10-16 10:38:29 +03:00
|
|
|
<transform>
|
|
|
|
|
<name>Table input</name>
|
|
|
|
|
<type>TableInput</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
|
|
|
|
<connection>ervu_person_registry</connection>
|
2025-04-07 20:31:30 +03:00
|
|
|
<execute_each_row>N</execute_each_row>
|
|
|
|
|
<limit>0</limit>
|
2024-10-16 10:38:29 +03:00
|
|
|
<sql>select
|
2025-04-07 20:31:30 +03:00
|
|
|
ri.recruit_id recruit_id,
|
|
|
|
|
ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->>'serNomDok' licence_series,
|
|
|
|
|
--ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->>'nomVodUd' licence_number,
|
|
|
|
|
to_date(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->>'dataVydDok', 'YYYY-MM-DD') start_date,
|
|
|
|
|
to_date(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->>'srokDeistvDok', 'YYYY-MM-DD') close_date,
|
2024-10-16 10:38:29 +03:00
|
|
|
array_to_string(array(
|
2025-04-07 20:31:30 +03:00
|
|
|
select kat->>'naimKatTS'
|
|
|
|
|
from jsonb_array_elements(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat') as kat
|
|
|
|
|
where jsonb_typeof(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat') = 'array'), ',') categories
|
2024-10-16 10:38:29 +03:00
|
|
|
from public.recruits r
|
2025-05-12 14:39:11 +03:00
|
|
|
join public.recruits_info ri on r.id = ri.recruit_id AND r.system_update_date >= '${UP_D}'
|
2025-04-07 20:31:30 +03:00
|
|
|
where jsonb_typeof(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat') = 'array'
|
2025-05-12 14:39:11 +03:00
|
|
|
--AND r.system_update_date >= '${UP_D}'
|
2025-04-07 20:31:30 +03:00
|
|
|
</sql>
|
|
|
|
|
<variables_active>Y</variables_active>
|
2024-10-16 10:38:29 +03:00
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
|
|
|
|
<xloc>208</xloc>
|
|
|
|
|
<yloc>208</yloc>
|
|
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
|
|
|
|
<transform>
|
|
|
|
|
<name>Table input 2</name>
|
|
|
|
|
<type>TableInput</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
|
|
|
|
<connection>ervu_person_registry</connection>
|
2025-04-07 20:31:30 +03:00
|
|
|
<execute_each_row>N</execute_each_row>
|
|
|
|
|
<limit>0</limit>
|
2024-10-16 10:38:29 +03:00
|
|
|
<sql>select
|
|
|
|
|
r.id recruit_id,
|
2025-04-07 20:31:30 +03:00
|
|
|
ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM'->>'serUTM' licence_series,
|
|
|
|
|
ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM'->>'nomUTM' licence_number,
|
|
|
|
|
to_date(ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM'->>'dataVydUTM', 'YYYY-MM-DD') start_date,
|
|
|
|
|
to_date(ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM'->>'dataOkonchUTM', 'YYYY-MM-DD') close_date,
|
|
|
|
|
to_date(ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM'->>'dataIztUTM', 'YYYY-MM-DD') seizure_date, --
|
|
|
|
|
to_date(ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM'->>'dataZameny', 'YYYY-MM-DD') replacement_date,--
|
|
|
|
|
to_date(ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM'->>'dataVozvr', 'YYYY-MM-DD') return_date,--
|
2024-10-16 10:38:29 +03:00
|
|
|
array_to_string(array(
|
2025-04-07 20:31:30 +03:00
|
|
|
select kat->>'naimKatTS'
|
|
|
|
|
from jsonb_array_elements(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat') as kat
|
|
|
|
|
where jsonb_typeof(ri.info->'svedFL'->'svedVoditUdost'->'voditUdost'->'svedKat') = 'array'), ',') categories,
|
2024-10-16 10:38:29 +03:00
|
|
|
true tractor_driver
|
|
|
|
|
from public.recruits r
|
2025-05-12 14:39:11 +03:00
|
|
|
join public.recruits_info ri on r.id = ri.recruit_id AND r.system_update_date >= '${UP_D}'
|
2025-04-07 20:31:30 +03:00
|
|
|
where ri.info->'svedFL'->'svedUdostTraktMash'->'udostTraktMash'->'aktUTM' is not null
|
2025-05-12 14:39:11 +03:00
|
|
|
--AND r.system_update_date >= '${UP_D}'
|
2024-10-16 10:38:29 +03:00
|
|
|
</sql>
|
2025-04-07 20:31:30 +03:00
|
|
|
<variables_active>Y</variables_active>
|
2024-10-16 10:38:29 +03:00
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
|
|
|
|
<xloc>208</xloc>
|
2025-04-07 20:31:30 +03:00
|
|
|
<yloc>416</yloc>
|
2024-10-16 10:38:29 +03:00
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
|
|
|
|
<transform>
|
|
|
|
|
<name>Table output</name>
|
|
|
|
|
<type>TableOutput</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
|
|
|
|
<commit>1000</commit>
|
2025-04-07 20:31:30 +03:00
|
|
|
<connection>ervu-dashboard</connection>
|
|
|
|
|
<fields>
|
|
|
|
|
</fields>
|
2024-10-16 10:38:29 +03:00
|
|
|
<ignore_errors>N</ignore_errors>
|
2025-04-07 20:31:30 +03:00
|
|
|
<only_when_have_rows>N</only_when_have_rows>
|
2024-10-16 10:38:29 +03:00
|
|
|
<partitioning_daily>N</partitioning_daily>
|
2025-04-07 20:31:30 +03:00
|
|
|
<partitioning_enabled>N</partitioning_enabled>
|
2024-10-16 10:38:29 +03:00
|
|
|
<partitioning_monthly>Y</partitioning_monthly>
|
2025-04-07 20:31:30 +03:00
|
|
|
<return_keys>N</return_keys>
|
|
|
|
|
<schema>ervu_dashboard</schema>
|
|
|
|
|
<specify_fields>N</specify_fields>
|
|
|
|
|
<table>drivers_licence</table>
|
2024-10-16 10:38:29 +03:00
|
|
|
<tablename_in_field>N</tablename_in_field>
|
|
|
|
|
<tablename_in_table>Y</tablename_in_table>
|
2025-04-07 20:31:30 +03:00
|
|
|
<truncate>N</truncate>
|
|
|
|
|
<use_batch>Y</use_batch>
|
2024-10-16 10:38:29 +03:00
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
|
|
|
|
<xloc>416</xloc>
|
2025-04-07 20:31:30 +03:00
|
|
|
<yloc>64</yloc>
|
2024-10-16 10:38:29 +03:00
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
|
|
|
|
<transform>
|
|
|
|
|
<name>Table output 2</name>
|
|
|
|
|
<type>TableOutput</type>
|
|
|
|
|
<description/>
|
|
|
|
|
<distribute>Y</distribute>
|
|
|
|
|
<custom_distribution/>
|
|
|
|
|
<copies>1</copies>
|
|
|
|
|
<partitioning>
|
|
|
|
|
<method>none</method>
|
|
|
|
|
<schema_name/>
|
|
|
|
|
</partitioning>
|
|
|
|
|
<commit>1000</commit>
|
2025-04-07 20:31:30 +03:00
|
|
|
<connection>ervu-dashboard</connection>
|
|
|
|
|
<fields>
|
|
|
|
|
</fields>
|
2024-10-16 10:38:29 +03:00
|
|
|
<ignore_errors>N</ignore_errors>
|
2025-04-07 20:31:30 +03:00
|
|
|
<only_when_have_rows>N</only_when_have_rows>
|
2024-10-16 10:38:29 +03:00
|
|
|
<partitioning_daily>N</partitioning_daily>
|
2025-04-07 20:31:30 +03:00
|
|
|
<partitioning_enabled>N</partitioning_enabled>
|
2024-10-16 10:38:29 +03:00
|
|
|
<partitioning_monthly>Y</partitioning_monthly>
|
2025-04-07 20:31:30 +03:00
|
|
|
<return_keys>N</return_keys>
|
|
|
|
|
<schema>ervu_dashboard</schema>
|
|
|
|
|
<specify_fields>N</specify_fields>
|
|
|
|
|
<table>drivers_licence</table>
|
2024-10-16 10:38:29 +03:00
|
|
|
<tablename_in_field>N</tablename_in_field>
|
|
|
|
|
<tablename_in_table>Y</tablename_in_table>
|
2025-04-07 20:31:30 +03:00
|
|
|
<truncate>N</truncate>
|
|
|
|
|
<use_batch>Y</use_batch>
|
2024-10-16 10:38:29 +03:00
|
|
|
<attributes/>
|
|
|
|
|
<GUI>
|
|
|
|
|
<xloc>416</xloc>
|
2025-04-07 20:31:30 +03:00
|
|
|
<yloc>544</yloc>
|
2024-10-16 10:38:29 +03:00
|
|
|
</GUI>
|
|
|
|
|
</transform>
|
|
|
|
|
<transform_error_handling>
|
|
|
|
|
</transform_error_handling>
|
|
|
|
|
<attributes/>
|
|
|
|
|
</pipeline>
|