| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <pipeline> |
| <info> |
| <name>0004-concat-fields</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>2021/01/15 11:20:00.108</created_date> |
| <modified_user>-</modified_user> |
| <modified_date>2021/01/15 11:20:00.108</modified_date> |
| <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key> |
| <is_key_private>N</is_key_private> |
| </info> |
| <notepads> |
| <notepad> |
| <note>This reads a file with lazy conversion. |
| We check to see that the fields are concatenated but also that binary to normal |
| storage conversion correctly takes place in the transform. |
| </note> |
| <xloc>112</xloc> |
| <yloc>208</yloc> |
| <width>414</width> |
| <heigth>73</heigth> |
| <fontname>Noto Sans</fontname> |
| <fontsize>11</fontsize> |
| <fontbold>N</fontbold> |
| <fontitalic>N</fontitalic> |
| <fontcolorred>14</fontcolorred> |
| <fontcolorgreen>58</fontcolorgreen> |
| <fontcolorblue>90</fontcolorblue> |
| <backgroundcolorred>201</backgroundcolorred> |
| <backgroundcolorgreen>232</backgroundcolorgreen> |
| <backgroundcolorblue>251</backgroundcolorblue> |
| <bordercolorred>14</bordercolorred> |
| <bordercolorgreen>58</bordercolorgreen> |
| <bordercolorblue>90</bordercolorblue> |
| </notepad> |
| </notepads> |
| <order> |
| <hop> |
| <from>files/customers-100.txt</from> |
| <to>concat with comma</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>concat with comma</from> |
| <to>OUTPUT</to> |
| <enabled>Y</enabled> |
| </hop> |
| </order> |
| <transform> |
| <name>OUTPUT</name> |
| <type>Dummy</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <attributes/> |
| <GUI> |
| <xloc>480</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>concat with comma</name> |
| <type>ConcatFields</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <separator>,</separator> |
| <enclosure>"</enclosure> |
| <enclosure_forced>N</enclosure_forced> |
| <enclosure_fix_disabled>N</enclosure_fix_disabled> |
| <format/> |
| <encoding/> |
| <fields> |
| <field> |
| <name>id</name> |
| <type>Integer</type> |
| <format>0</format> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| <field> |
| <name>name</name> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| <field> |
| <name>firstname</name> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| <field> |
| <name>zip</name> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| <field> |
| <name>city</name> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| <field> |
| <name>birthdate</name> |
| <type>Date</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| <field> |
| <name>street</name> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| <field> |
| <name>housenr</name> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| <field> |
| <name>stateCode</name> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| <field> |
| <name>state</name> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <nullif/> |
| <trim_type>both</trim_type> |
| <length>-1</length> |
| <precision>-1</precision> |
| </field> |
| </fields> |
| <ConcatFields> |
| <targetFieldName>fields</targetFieldName> |
| <targetFieldLength>500</targetFieldLength> |
| <removeSelectedFields>N</removeSelectedFields> |
| </ConcatFields> |
| <attributes/> |
| <GUI> |
| <xloc>320</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>files/customers-100.txt</name> |
| <type>CSVInput</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <filename>${PROJECT_HOME}/files/customers-100.txt</filename> |
| <filename_field/> |
| <rownum_field/> |
| <include_filename>N</include_filename> |
| <separator>;</separator> |
| <enclosure>"</enclosure> |
| <header>Y</header> |
| <buffer_size>50000</buffer_size> |
| <lazy_conversion>Y</lazy_conversion> |
| <add_filename_result>N</add_filename_result> |
| <parallel>N</parallel> |
| <newline_possible>N</newline_possible> |
| <encoding/> |
| <fields> |
| <field> |
| <name>id</name> |
| <type>Integer</type> |
| <format> #</format> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>15</length> |
| <precision>0</precision> |
| <trim_type>none</trim_type> |
| </field> |
| <field> |
| <name>name</name> |
| <type>String</type> |
| <format/> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>20</length> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| </field> |
| <field> |
| <name>firstname</name> |
| <type>String</type> |
| <format/> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>20</length> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| </field> |
| <field> |
| <name>zip</name> |
| <type>String</type> |
| <format/> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>20</length> |
| <precision>0</precision> |
| <trim_type>both</trim_type> |
| </field> |
| <field> |
| <name>city</name> |
| <type>String</type> |
| <format/> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>8</length> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| </field> |
| <field> |
| <name>birthdate</name> |
| <type>Date</type> |
| <format>yyyy/MM/dd</format> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>-1</length> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| </field> |
| <field> |
| <name>street</name> |
| <type>String</type> |
| <format/> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>20</length> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| </field> |
| <field> |
| <name>housenr</name> |
| <type>String</type> |
| <format> #</format> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>20</length> |
| <precision>0</precision> |
| <trim_type>both</trim_type> |
| </field> |
| <field> |
| <name>stateCode</name> |
| <type>String</type> |
| <format/> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>30</length> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| </field> |
| <field> |
| <name>state</name> |
| <type>String</type> |
| <format/> |
| <currency>$</currency> |
| <decimal>.</decimal> |
| <group>,</group> |
| <length>50</length> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| </field> |
| </fields> |
| <attributes/> |
| <GUI> |
| <xloc>160</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform_error_handling> |
| </transform_error_handling> |
| <attributes/> |
| </pipeline> |