blob: d1ec058b33b52a0c794a9f12f25eb17fd48f60cd [file] [log] [blame]
<?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>0037-getfilenames-basic</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/12/14 20:52:16.637</created_date>
<modified_user>-</modified_user>
<modified_date>2021/12/14 20:52:16.637</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads>
</notepads>
<order>
<hop>
<from>Get file names</from>
<to>Count rows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Count rows</from>
<to>Check num rows</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Check num rows</from>
<to>No files found - Abort</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Check filename</from>
<to>Wrong file found - Abort</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Check num rows</from>
<to>Check filename</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Check filename</from>
<to>Success</to>
<enabled>Y</enabled>
</hop>
</order>
<transform>
<name>Get file names</name>
<type>GetFileNames</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<isaddresult>N</isaddresult>
<doNotFailIfNoFile>N</doNotFailIfNoFile>
<exclude_wildcard_Field/>
<filename_Field/>
<dynamic_include_subfolders>N</dynamic_include_subfolders>
<wildcard_Field/>
<filefield>N</filefield>
<file>
<exclude_filemask/>
<filemask/>
<name>${PROJECT_HOME}/files/sample-file1.txt</name>
<file_required>N</file_required>
<include_subfolders>N</include_subfolders>
</file>
<filter>
<filterfiletype>all_files</filterfiletype>
</filter>
<rownum>N</rownum>
<raiseAnExceptionIfNoFile>N</raiseAnExceptionIfNoFile>
<limit>0</limit>
<rownum_field/>
<attributes/>
<GUI>
<xloc>192</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>Count rows</name>
<type>GroupBy</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<all_rows>N</all_rows>
<ignore_aggregate>N</ignore_aggregate>
<field_ignore/>
<directory>${java.io.tmpdir}</directory>
<prefix>grp</prefix>
<add_linenr>N</add_linenr>
<linenr_fieldname/>
<give_back_row>N</give_back_row>
<group>
<field>
<name>short_filename</name>
</field>
</group>
<fields>
<field>
<aggregate>num_file</aggregate>
<subject/>
<type>COUNT_ANY</type>
<valuefield/>
</field>
</fields>
<attributes/>
<GUI>
<xloc>336</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>Check num rows</name>
<type>FilterRows</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<send_true_to>Check filename</send_true_to>
<send_false_to>No files found - Abort</send_false_to>
<compare>
<condition>
<negated>N</negated>
<leftvalue>num_file</leftvalue>
<function>=</function>
<rightvalue/>
<value>
<name>constant</name>
<type>Integer</type>
<text>1</text>
<length>-1</length>
<precision>0</precision>
<isnull>N</isnull>
<mask>####0;-####0</mask>
</value>
</condition>
</compare>
<attributes/>
<GUI>
<xloc>480</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>No files found - Abort</name>
<type>Abort</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<abort_option>ABORT_WITH_ERROR</abort_option>
<always_log_rows>Y</always_log_rows>
<message>No files found</message>
<row_threshold>0</row_threshold>
<attributes/>
<GUI>
<xloc>480</xloc>
<yloc>256</yloc>
</GUI>
</transform>
<transform>
<name>Check filename</name>
<type>FilterRows</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<send_true_to>Success</send_true_to>
<send_false_to>Wrong file found - Abort</send_false_to>
<compare>
<condition>
<negated>N</negated>
<leftvalue>short_filename</leftvalue>
<function>=</function>
<rightvalue/>
<value>
<name>constant</name>
<type>String</type>
<text>sample-file1.txt</text>
<length>-1</length>
<precision>-1</precision>
<isnull>N</isnull>
<mask/>
</value>
</condition>
</compare>
<attributes/>
<GUI>
<xloc>640</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>Wrong file found - Abort</name>
<type>Abort</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<abort_option>ABORT_WITH_ERROR</abort_option>
<always_log_rows>Y</always_log_rows>
<message>No files found</message>
<row_threshold>0</row_threshold>
<attributes/>
<GUI>
<xloc>640</xloc>
<yloc>256</yloc>
</GUI>
</transform>
<transform>
<name>Success</name>
<type>Dummy</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<attributes/>
<GUI>
<xloc>816</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform_error_handling>
</transform_error_handling>
<attributes/>
</pipeline>