<?xml version="1.0" encoding="UTF-8"?>
<pipeline>
  <info>
    <name>sport_constants_flow</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>2025/09/08 16:43:23.854</created_date>
    <modified_user>-</modified_user>
    <modified_date>2025/09/08 16:43:23.854</modified_date>
  </info>
  <notepads>
  </notepads>
  <order>
    <hop>
      <from>sport_type_input</from>
      <to>sport_type_output</to>
      <enabled>Y</enabled>
    </hop>
    <hop>
      <from>region_input</from>
      <to>region_output</to>
      <enabled>Y</enabled>
    </hop>
  </order>
  <transform>
    <name>region_input</name>
    <type>TableInput</type>
    <description/>
    <distribute>Y</distribute>
    <custom_distribution/>
    <copies>1</copies>
    <partitioning>
      <method>none</method>
      <schema_name/>
    </partitioning>
    <connection>ervu_nsi</connection>
    <execute_each_row>N</execute_each_row>
    <limit>0</limit>
    <sql>SELECT
    key as code,
    value ->> 'value' as value,
    NOT hidden as actual,
    updated_at
FROM classifier_records
WHERE code = 'listOfRussianRegions';</sql>
    <variables_active>N</variables_active>
    <attributes/>
    <GUI>
      <xloc>192</xloc>
      <yloc>240</yloc>
    </GUI>
  </transform>
  <transform>
    <name>region_output</name>
    <type>TableOutput</type>
    <description/>
    <distribute>Y</distribute>
    <custom_distribution/>
    <copies>1</copies>
    <partitioning>
      <method>none</method>
      <schema_name/>
    </partitioning>
    <commit>10000</commit>
    <connection>ervu-dashboard</connection>
    <fields>
      <field>
        <column_name>code</column_name>
        <stream_name>code</stream_name>
      </field>
      <field>
        <column_name>value</column_name>
        <stream_name>value</stream_name>
      </field>
      <field>
        <column_name>actual</column_name>
        <stream_name>actual</stream_name>
      </field>
      <field>
        <column_name>update_date</column_name>
        <stream_name>updated_at</stream_name>
      </field>
    </fields>
    <ignore_errors>N</ignore_errors>
    <only_when_have_rows>N</only_when_have_rows>
    <partitioning_daily>N</partitioning_daily>
    <partitioning_enabled>N</partitioning_enabled>
    <partitioning_monthly>Y</partitioning_monthly>
    <return_keys>N</return_keys>
    <schema>ervu_dashboard</schema>
    <specify_fields>Y</specify_fields>
    <table>russian_region</table>
    <tablename_in_field>N</tablename_in_field>
    <tablename_in_table>Y</tablename_in_table>
    <truncate>N</truncate>
    <use_batch>Y</use_batch>
    <attributes/>
    <GUI>
      <xloc>416</xloc>
      <yloc>240</yloc>
    </GUI>
  </transform>
  <transform>
    <name>sport_type_input</name>
    <type>TableInput</type>
    <description/>
    <distribute>Y</distribute>
    <custom_distribution/>
    <copies>1</copies>
    <partitioning>
      <method>none</method>
      <schema_name/>
    </partitioning>
    <connection>ervu_nsi</connection>
    <execute_each_row>N</execute_each_row>
    <limit>0</limit>
    <sql>SELECT
    key AS code,
    value ->> 'value' AS value,
    NOT hidden AS actual,
    updated_at
FROM classifier_records
WHERE code = 'listOfSportsType';</sql>
    <variables_active>N</variables_active>
    <attributes/>
    <GUI>
      <xloc>192</xloc>
      <yloc>144</yloc>
    </GUI>
  </transform>
  <transform>
    <name>sport_type_output</name>
    <type>TableOutput</type>
    <description/>
    <distribute>Y</distribute>
    <custom_distribution/>
    <copies>1</copies>
    <partitioning>
      <method>none</method>
      <schema_name/>
    </partitioning>
    <commit>10000</commit>
    <connection>ervu-dashboard</connection>
    <fields>
      <field>
        <column_name>code</column_name>
        <stream_name>code</stream_name>
      </field>
      <field>
        <column_name>value</column_name>
        <stream_name>value</stream_name>
      </field>
      <field>
        <column_name>actual</column_name>
        <stream_name>actual</stream_name>
      </field>
      <field>
        <column_name>update_date</column_name>
        <stream_name>updated_at</stream_name>
      </field>
    </fields>
    <ignore_errors>N</ignore_errors>
    <only_when_have_rows>N</only_when_have_rows>
    <partitioning_daily>N</partitioning_daily>
    <partitioning_enabled>N</partitioning_enabled>
    <partitioning_monthly>Y</partitioning_monthly>
    <return_keys>N</return_keys>
    <schema>ervu_dashboard</schema>
    <specify_fields>Y</specify_fields>
    <table>sport_type</table>
    <tablename_in_field>N</tablename_in_field>
    <tablename_in_table>Y</tablename_in_table>
    <truncate>N</truncate>
    <use_batch>Y</use_batch>
    <attributes/>
    <GUI>
      <xloc>416</xloc>
      <yloc>144</yloc>
    </GUI>
  </transform>
  <transform_error_handling>
  </transform_error_handling>
  <attributes/>
</pipeline>
