ervu-dashboard-etl/mappings/country/total_registered.subpoenas.ktr

1171 lines
36 KiB
Text
Raw Normal View History

2024-08-29 11:49:52 +03:00
<?xml version="1.0" encoding="UTF-8"?>
<transformation>
<info>
<name>total_registered.subpoenas</name>
<description/>
<extended_description/>
<trans_version/>
<trans_type>Normal</trans_type>
<trans_status>0</trans_status>
<directory>/</directory>
<parameters>
</parameters>
<log>
<trans-log-table>
<connection/>
<schema/>
<table/>
<size_limit_lines/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STATUS</id>
<enabled>Y</enabled>
<name>STATUS</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
<subject/>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
<subject/>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
<subject/>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
<subject/>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
<subject/>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
<subject/>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>STARTDATE</id>
<enabled>Y</enabled>
<name>STARTDATE</name>
</field>
<field>
<id>ENDDATE</id>
<enabled>Y</enabled>
<name>ENDDATE</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>DEPDATE</id>
<enabled>Y</enabled>
<name>DEPDATE</name>
</field>
<field>
<id>REPLAYDATE</id>
<enabled>Y</enabled>
<name>REPLAYDATE</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>Y</enabled>
<name>LOG_FIELD</name>
</field>
<field>
<id>EXECUTING_SERVER</id>
<enabled>N</enabled>
<name>EXECUTING_SERVER</name>
</field>
<field>
<id>EXECUTING_USER</id>
<enabled>N</enabled>
<name>EXECUTING_USER</name>
</field>
<field>
<id>CLIENT</id>
<enabled>N</enabled>
<name>CLIENT</name>
</field>
</trans-log-table>
<perf-log-table>
<connection/>
<schema/>
<table/>
<interval/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>SEQ_NR</id>
<enabled>Y</enabled>
<name>SEQ_NR</name>
</field>
<field>
<id>LOGDATE</id>
<enabled>Y</enabled>
<name>LOGDATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>INPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>INPUT_BUFFER_ROWS</name>
</field>
<field>
<id>OUTPUT_BUFFER_ROWS</id>
<enabled>Y</enabled>
<name>OUTPUT_BUFFER_ROWS</name>
</field>
</perf-log-table>
<channel-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>LOGGING_OBJECT_TYPE</id>
<enabled>Y</enabled>
<name>LOGGING_OBJECT_TYPE</name>
</field>
<field>
<id>OBJECT_NAME</id>
<enabled>Y</enabled>
<name>OBJECT_NAME</name>
</field>
<field>
<id>OBJECT_COPY</id>
<enabled>Y</enabled>
<name>OBJECT_COPY</name>
</field>
<field>
<id>REPOSITORY_DIRECTORY</id>
<enabled>Y</enabled>
<name>REPOSITORY_DIRECTORY</name>
</field>
<field>
<id>FILENAME</id>
<enabled>Y</enabled>
<name>FILENAME</name>
</field>
<field>
<id>OBJECT_ID</id>
<enabled>Y</enabled>
<name>OBJECT_ID</name>
</field>
<field>
<id>OBJECT_REVISION</id>
<enabled>Y</enabled>
<name>OBJECT_REVISION</name>
</field>
<field>
<id>PARENT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>PARENT_CHANNEL_ID</name>
</field>
<field>
<id>ROOT_CHANNEL_ID</id>
<enabled>Y</enabled>
<name>ROOT_CHANNEL_ID</name>
</field>
</channel-log-table>
<step-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>TRANSNAME</id>
<enabled>Y</enabled>
<name>TRANSNAME</name>
</field>
<field>
<id>STEPNAME</id>
<enabled>Y</enabled>
<name>STEPNAME</name>
</field>
<field>
<id>STEP_COPY</id>
<enabled>Y</enabled>
<name>STEP_COPY</name>
</field>
<field>
<id>LINES_READ</id>
<enabled>Y</enabled>
<name>LINES_READ</name>
</field>
<field>
<id>LINES_WRITTEN</id>
<enabled>Y</enabled>
<name>LINES_WRITTEN</name>
</field>
<field>
<id>LINES_UPDATED</id>
<enabled>Y</enabled>
<name>LINES_UPDATED</name>
</field>
<field>
<id>LINES_INPUT</id>
<enabled>Y</enabled>
<name>LINES_INPUT</name>
</field>
<field>
<id>LINES_OUTPUT</id>
<enabled>Y</enabled>
<name>LINES_OUTPUT</name>
</field>
<field>
<id>LINES_REJECTED</id>
<enabled>Y</enabled>
<name>LINES_REJECTED</name>
</field>
<field>
<id>ERRORS</id>
<enabled>Y</enabled>
<name>ERRORS</name>
</field>
<field>
<id>LOG_FIELD</id>
<enabled>N</enabled>
<name>LOG_FIELD</name>
</field>
</step-log-table>
<metrics-log-table>
<connection/>
<schema/>
<table/>
<timeout_days/>
<field>
<id>ID_BATCH</id>
<enabled>Y</enabled>
<name>ID_BATCH</name>
</field>
<field>
<id>CHANNEL_ID</id>
<enabled>Y</enabled>
<name>CHANNEL_ID</name>
</field>
<field>
<id>LOG_DATE</id>
<enabled>Y</enabled>
<name>LOG_DATE</name>
</field>
<field>
<id>METRICS_DATE</id>
<enabled>Y</enabled>
<name>METRICS_DATE</name>
</field>
<field>
<id>METRICS_CODE</id>
<enabled>Y</enabled>
<name>METRICS_CODE</name>
</field>
<field>
<id>METRICS_DESCRIPTION</id>
<enabled>Y</enabled>
<name>METRICS_DESCRIPTION</name>
</field>
<field>
<id>METRICS_SUBJECT</id>
<enabled>Y</enabled>
<name>METRICS_SUBJECT</name>
</field>
<field>
<id>METRICS_TYPE</id>
<enabled>Y</enabled>
<name>METRICS_TYPE</name>
</field>
<field>
<id>METRICS_VALUE</id>
<enabled>Y</enabled>
<name>METRICS_VALUE</name>
</field>
</metrics-log-table>
</log>
<maxdate>
<connection/>
<table/>
<field/>
<offset>0.0</offset>
<maxdiff>0.0</maxdiff>
</maxdate>
<size_rowset>10000</size_rowset>
<sleep_time_empty>50</sleep_time_empty>
<sleep_time_full>50</sleep_time_full>
<unique_connections>N</unique_connections>
<feedback_shown>Y</feedback_shown>
<feedback_size>50000</feedback_size>
<using_thread_priorities>Y</using_thread_priorities>
<shared_objects_file/>
<capture_step_performance>N</capture_step_performance>
<step_performance_capturing_delay>1000</step_performance_capturing_delay>
<step_performance_capturing_size_limit>100</step_performance_capturing_size_limit>
<dependencies>
</dependencies>
<partitionschemas>
</partitionschemas>
<slaveservers>
<slaveserver>
<name>local</name>
<hostname>localhost</hostname>
<port>8888</port>
<webAppName/>
<username>cluster</username>
<password>Encrypted 2be98afc86aa7f2e4cb1aa265cd86aac8</password>
<proxy_hostname/>
<proxy_port/>
<non_proxy_hosts/>
<master>Y</master>
<sslMode>N</sslMode>
</slaveserver>
</slaveservers>
<clusterschemas>
</clusterschemas>
<created_user>-</created_user>
<created_date>2024/08/02 11:56:22.507</created_date>
<modified_user>-</modified_user>
<modified_date>2024/08/02 11:56:22.507</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads>
</notepads>
<connection>
<name>ervu-dashboard</name>
<server>dashboard-dbhost</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>dashboard-dbname</database>
<port>1111</port>
<username>dashboard-dbuser</username>
<password>Encrypted 2daf9dca008c89396af54aa72ce93bcc9</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute>
<code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>IS_CLUSTERED</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>PORT_NUMBER</code>
<attribute>1111</attribute>
</attribute>
<attribute>
<code>PRESERVE_RESERVED_WORD_CASE</code>
<attribute>Y</attribute>
</attribute>
<attribute>
<code>QUOTE_ALL_FIELDS</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>USE_POOLING</code>
<attribute>N</attribute>
</attribute>
</attributes>
</connection>
<connection>
<name>postgres.subpoena</name>
<server>subpoena-dbhost</server>
<type>POSTGRESQL</type>
<access>Native</access>
<database>subpoena-dbname</database>
<port>5555</port>
<username>subpoena-dbuser</username>
<password>Encrypted 2beebdaaa1ac8978aaa54aa72ce93bcc9</password>
<servername/>
<data_tablespace/>
<index_tablespace/>
<attributes>
<attribute>
<code>FORCE_IDENTIFIERS_TO_LOWERCASE</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>FORCE_IDENTIFIERS_TO_UPPERCASE</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>IS_CLUSTERED</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>PORT_NUMBER</code>
<attribute>5555</attribute>
</attribute>
<attribute>
<code>PRESERVE_RESERVED_WORD_CASE</code>
<attribute>Y</attribute>
</attribute>
<attribute>
<code>QUOTE_ALL_FIELDS</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>SUPPORTS_BOOLEAN_DATA_TYPE</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>SUPPORTS_TIMESTAMP_DATA_TYPE</code>
<attribute>N</attribute>
</attribute>
<attribute>
<code>USE_POOLING</code>
<attribute>N</attribute>
</attribute>
</attributes>
</connection>
<order>
<hop>
<from>Get variables 4</from>
<to>Select values 4</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Table input (subpoena)РФ/рег</from>
<to>Get variables 4</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Select values 4</from>
<to>Insert / update (total_registered.subpoenas)</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Get variables 4 3</from>
<to>Select values 4 3</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Select values 4 3</from>
<to>Insert / update (total_registered.subpoenas) 2</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Table input (subpoena) РФ/не рег</from>
<to>Get variables 4 3</to>
<enabled>Y</enabled>
</hop>
</order>
<step>
<name>Get variables 4</name>
<type>GetVariable</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
</fields>
<attributes/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>448</xloc>
<yloc>64</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Get variables 4 3</name>
<type>GetVariable</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
</fields>
<attributes/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>448</xloc>
<yloc>160</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Insert / update (total_registered.subpoenas)</name>
<type>InsertUpdate</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>ervu-dashboard</connection>
<commit>100</commit>
<update_bypassed>N</update_bypassed>
<lookup>
<schema>total_registered</schema>
<table>subpoenas</table>
<key>
2024-08-30 16:06:17 +03:00
<name>recruitment_id</name>
<field>recruitment_id</field>
2024-08-29 11:49:52 +03:00
<condition>=</condition>
<name2/>
</key>
<key>
<name>mil_reg</name>
2024-08-30 11:15:16 +03:00
<field>mil_reg</field>
2024-08-29 11:49:52 +03:00
<condition>=</condition>
<name2/>
</key>
<value>
<name>subpoena</name>
<rename>subpoena</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>appeared</name>
<rename>appeared</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>average_appeared</name>
<rename>average_appeared</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>not_appeared</name>
<rename>not_appeared</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>not_ap_good_reason</name>
<rename>not_ap_good_reason</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>introduced_measures</name>
<rename>introduced_measures</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>ap_not_required</name>
<rename>ap_not_required</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>electron</name>
<rename>electron</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>paper</name>
<rename>paper</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>restrictions_applied</name>
<rename>restrictions_applied</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
2024-08-30 10:37:11 +03:00
<name>recruitment_id</name>
2024-08-29 11:49:52 +03:00
<rename>recruitment_id</rename>
<update>N</update>
</value>
<value>
2024-08-30 10:58:45 +03:00
<name>mil_reg</name>
2024-08-29 11:49:52 +03:00
<rename>mil_reg</rename>
<update>N</update>
</value>
<value>
<name>appeared_percent</name>
<rename>appeared_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>not_appeared_percent</name>
<rename>not_appeared_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>not_ap_good_reason_percent</name>
<rename>not_ap_good_reason_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>ap_not_required_percent</name>
<rename>ap_not_required_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>electron_percent</name>
<rename>electron_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>paper_percent</name>
<rename>paper_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>restrictions_applied_percent</name>
<rename>restrictions_applied_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>introduced_measures_percent</name>
<rename>introduced_measures_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
</lookup>
<attributes/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>864</xloc>
<yloc>64</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Insert / update (total_registered.subpoenas) 2</name>
<type>InsertUpdate</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>ervu-dashboard</connection>
<commit>100</commit>
<update_bypassed>N</update_bypassed>
<lookup>
<schema>total_registered</schema>
<table>subpoenas</table>
<key>
2024-08-30 16:06:17 +03:00
<name>recruitment_id</name>
<field>recruitment_id</field>
2024-08-29 11:49:52 +03:00
<condition>=</condition>
<name2/>
</key>
<key>
<name>mil_reg</name>
2024-08-30 11:15:16 +03:00
<field>mil_reg</field>
2024-08-29 11:49:52 +03:00
<condition>=</condition>
<name2/>
</key>
<value>
<name>subpoena</name>
<rename>subpoena</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>appeared</name>
<rename>appeared</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>average_appeared</name>
<rename>average_appeared</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>not_appeared</name>
<rename>not_appeared</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>not_ap_good_reason</name>
<rename>not_ap_good_reason</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>introduced_measures</name>
<rename>introduced_measures</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>ap_not_required</name>
<rename>ap_not_required</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>electron</name>
<rename>electron</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>paper</name>
<rename>paper</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>restrictions_applied</name>
<rename>restrictions_applied</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
2024-08-30 10:37:11 +03:00
<name>recruitment_id</name>
2024-08-29 11:49:52 +03:00
<rename>recruitment_id</rename>
<update>N</update>
</value>
<value>
2024-08-30 10:58:45 +03:00
<name>mil_reg</name>
2024-08-29 11:49:52 +03:00
<rename>mil_reg</rename>
<update>N</update>
</value>
<value>
<name>appeared_percent</name>
<rename>appeared_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>not_appeared_percent</name>
<rename>not_appeared_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>not_ap_good_reason_percent</name>
<rename>not_ap_good_reason_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>ap_not_required_percent</name>
<rename>ap_not_required_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>electron_percent</name>
<rename>electron_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>paper_percent</name>
<rename>paper_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>restrictions_applied_percent</name>
<rename>restrictions_applied_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
<value>
<name>introduced_measures_percent</name>
<rename>introduced_measures_percent</rename>
2024-08-30 16:06:17 +03:00
<update>Y</update>
2024-08-29 11:49:52 +03:00
</value>
</lookup>
<attributes/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>864</xloc>
<yloc>160</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Select values 4</name>
<type>SelectValues</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<select_unspecified>N</select_unspecified>
</fields>
<attributes/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>640</xloc>
<yloc>64</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Select values 4 3</name>
<type>SelectValues</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<select_unspecified>N</select_unspecified>
</fields>
<attributes/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>640</xloc>
<yloc>160</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Table input (subpoena) РФ/не рег</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>postgres.subpoena</connection>
<sql>with
t1 as (select count(distinct subpoena.id) as subpoena FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type='1' and sub_stat_hist.code ='3'),
t2 as (select round(avg(extract(day from subpoena_history.date_time::timestamp - (subpoena.send_date::timestamptz AT time zone 'UTC')::timestamp)), 1) as average_appeared FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where subpoena_reason.type = '1' and (sub_stat_hist.code = '4.1' or sub_stat_hist.code = '4.2')),
t3 as (select count(distinct subpoena.id) as appeared FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type='1' and sub_stat_hist.code in ('4.1','4.2')),
t4 as (select count(distinct subpoena.id) as not_appeared FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type='1' and sub_stat_hist.code ='5'),
t5 as (select count(*) as not_ap_good_reason FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type='1' and sub_stat_hist.code='5.1'),
t6 as (select count(distinct subpoena.id) as ap_not_required FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type='1' and sub_stat_hist.code in ('3.8','5.2')),
t7 as (select count(distinct rdi.id) as restrictions_applied from restriction_document_item rdi
join restriction_document on restriction_document.id = rdi.restriction_document_create_id
join subpoena on subpoena.id = restriction_document.subpoena_id
join subpoena_reason on subpoena_reason.id = subpoena.reason_id
where rdi.restriction_document_cancel_id is null and subpoena_reason.type = '1'),
t8 as (select count(distinct rdi.id) as introduced_measures from restriction_document_item rdi
join restriction_document on restriction_document.id = rdi.restriction_document_create_id
join subpoena on subpoena.id = restriction_document.subpoena_id
join subpoena_reason on subpoena_reason.id = subpoena.reason_id
where rdi.restriction_document_cancel_id is null and rdi.applied_date is not null and subpoena_reason.type = '1'),
t9 as (select count(distinct subpoena.id) as paper FROM subpoena
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
join subpoena_send_info on subpoena_send_info.subpoena_id = subpoena.id
where subpoena_reason.type = '1' and subpoena_send_info.delivery_code = '14'),
t10 as (select count(distinct subpoena.id) as electron FROM subpoena
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
join subpoena_send_info on subpoena_send_info.subpoena_id = subpoena.id
where subpoena_reason.type = '1' and subpoena_send_info.delivery_code = '7')
select t1.subpoena, t2.average_appeared, t3.appeared, t4.not_appeared, t5.not_ap_good_reason, t6.ap_not_required, t7.restrictions_applied, t8.introduced_measures, t9.paper, t10.electron, '00' as recruitment_id, 1 as org, 0 as mil_reg,
0 as appeared_percent, 0 as not_appeared_percent, 0 as not_ap_good_reason_percent, 0 as ap_not_required_percent, 0 as electron_percent, 0 as paper_percent, 0 as restrictions_applied_percent, 0 as introduced_measures_percent
from t1 full outer join t2 on 1 = 1 full outer join t3 on 1 = 1 full outer join t4 on 1 = 1 full outer join t5 on 1 = 1 full outer join t6 on 1 = 1 full outer join t7 on 1 = 1 full outer join t8 on 1 = 1 full outer join t9 on 1 = 1 full outer join t10 on 1 = 1
</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>N</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<attributes/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>256</xloc>
<yloc>160</yloc>
<draw>Y</draw>
</GUI>
</step>
<step>
<name>Table input (subpoena)РФ/рег</name>
<type>TableInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<connection>postgres.subpoena</connection>
<sql>with
t1 as (select count(distinct subpoena.id) as subpoena FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type !='1' and sub_stat_hist.code ='3'),
t2 as (select round(avg(extract(day from subpoena_history.date_time::timestamp - (subpoena.send_date::timestamptz AT time zone 'UTC')::timestamp)), 1) as average_appeared FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where subpoena_reason.type != '1' and (sub_stat_hist.code = '4.1' or sub_stat_hist.code = '4.2')),
t3 as (select count(distinct subpoena.id) as appeared FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type !='1' and sub_stat_hist.code in ('4.1','4.2')),
t4 as (select count(distinct subpoena.id) as not_appeared FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type !='1' and sub_stat_hist.code ='5'),
t5 as (select count(*) as not_ap_good_reason FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type !='1' and sub_stat_hist.code='5.1'),
t6 as (select count(distinct subpoena.id) as ap_not_required FROM subpoena
JOIN subpoena_history ON subpoena_history.subpoena_id = subpoena.id
JOIN subpoena_status AS sub_status ON sub_status.id = subpoena.status_id
JOIN subpoena_status AS sub_stat_hist ON sub_stat_hist.id = subpoena_history.status_id
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
where not subpoena_reason.type !='1' and sub_stat_hist.code in ('3.8','5.2')),
t7 as (select count(distinct rdi.id) as restrictions_applied from restriction_document_item rdi
join restriction_document on restriction_document.id = rdi.restriction_document_create_id
join subpoena on subpoena.id = restriction_document.subpoena_id
join subpoena_reason on subpoena_reason.id = subpoena.reason_id
where rdi.restriction_document_cancel_id is null and subpoena_reason.type != '1'),
t8 as (select count(distinct rdi.id) as introduced_measures from restriction_document_item rdi
join restriction_document on restriction_document.id = rdi.restriction_document_create_id
join subpoena on subpoena.id = restriction_document.subpoena_id
join subpoena_reason on subpoena_reason.id = subpoena.reason_id
where rdi.restriction_document_cancel_id is null and rdi.applied_date is not null and subpoena_reason.type != '1'),
t9 as (select count(distinct subpoena.id) as paper FROM subpoena
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
join subpoena_send_info on subpoena_send_info.subpoena_id = subpoena.id
where subpoena_reason.type != '1' and subpoena_send_info.delivery_code = '14'),
t10 as (select count(distinct subpoena.id) as electron FROM subpoena
JOIN subpoena_reason ON subpoena_reason.id = subpoena.reason_id
join subpoena_send_info on subpoena_send_info.subpoena_id = subpoena.id
where subpoena_reason.type != '1' and subpoena_send_info.delivery_code = '7')
select t1.subpoena, t2.average_appeared, t3.appeared, t4.not_appeared, t5.not_ap_good_reason, t6.ap_not_required, t7.restrictions_applied, t8.introduced_measures, t9.paper, t10.electron, '00' as recruitment_id, 1 as org, 1 as mil_reg,
0 as appeared_percent, 0 as not_appeared_percent, 0 as not_ap_good_reason_percent, 0 as ap_not_required_percent, 0 as electron_percent, 0 as paper_percent, 0 as restrictions_applied_percent, 0 as introduced_measures_percent
from t1 full outer join t2 on 1 = 1 full outer join t3 on 1 = 1 full outer join t4 on 1 = 1 full outer join t5 on 1 = 1 full outer join t6 on 1 = 1 full outer join t7 on 1 = 1 full outer join t8 on 1 = 1 full outer join t9 on 1 = 1 full outer join t10 on 1 = 1
</sql>
<limit>0</limit>
<lookup/>
<execute_each_row>N</execute_each_row>
<variables_active>N</variables_active>
<lazy_conversion_active>N</lazy_conversion_active>
<attributes/>
<cluster_schema/>
<remotesteps>
<input>
</input>
<output>
</output>
</remotesteps>
<GUI>
<xloc>256</xloc>
<yloc>64</yloc>
<draw>Y</draw>
</GUI>
</step>
<step_error_handling>
</step_error_handling>
<slave-step-copy-partition-distribution>
</slave-step-copy-partition-distribution>
<slave_transformation>N</slave_transformation>
<attributes/>
</transformation>