| <?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>00100-add-sequence-copies</name> |
| <name_sync_with_filename>Y</name_sync_with_filename> |
| <description/> |
| <extended_description/> |
| <pipeline_version/> |
| <pipeline_type>Normal</pipeline_type> |
| <pipeline_status>0</pipeline_status> |
| <parameters> |
| <parameter> |
| <name>COUNT</name> |
| <default_value>1000000</default_value> |
| <description>Number of IDs to generate</description> |
| </parameter> |
| </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>2020/12/16 12:25:44.129</created_date> |
| <modified_user>-</modified_user> |
| <modified_date>2020/12/16 12:25:44.129</modified_date> |
| <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key> |
| <is_key_private>N</is_key_private> |
| </info> |
| <notepads> |
| </notepads> |
| <order> |
| <hop> |
| <from>${COUNT} rows</from> |
| <to>id</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>not expected?</from> |
| <to>Abort</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>id</from> |
| <to>count distinct</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>count distinct</from> |
| <to>expected count</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>expected count</from> |
| <to>not expected?</to> |
| <enabled>Y</enabled> |
| </hop> |
| </order> |
| <transform> |
| <name>${COUNT} rows</name> |
| <type>RowGenerator</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <fields> |
| </fields> |
| <limit>${COUNT}</limit> |
| <never_ending>N</never_ending> |
| <interval_in_ms>5000</interval_in_ms> |
| <row_time_field>now</row_time_field> |
| <last_time_field>FiveSecondsAgo</last_time_field> |
| <attributes/> |
| <GUI> |
| <xloc>128</xloc> |
| <yloc>96</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>Abort</name> |
| <type>Abort</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <row_threshold>0</row_threshold> |
| <message>Transform Add Sequence didn't generate the expected IDs running in a multiple copies</message> |
| <always_log_rows>Y</always_log_rows> |
| <abort_option>ABORT_WITH_ERROR</abort_option> |
| <attributes/> |
| <GUI> |
| <xloc>736</xloc> |
| <yloc>96</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>count distinct</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> |
| </group> |
| <fields> |
| <field> |
| <aggregate>count</aggregate> |
| <subject>id</subject> |
| <type>COUNT_DISTINCT</type> |
| <valuefield/> |
| </field> |
| </fields> |
| <attributes/> |
| <GUI> |
| <xloc>400</xloc> |
| <yloc>96</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>expected count</name> |
| <type>GetVariable</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <fields> |
| <field> |
| <name>expectedCount</name> |
| <variable>${COUNT}</variable> |
| <type>String</type> |
| <format/> |
| <currency/> |
| <decimal/> |
| <group/> |
| <length>-1</length> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| </field> |
| </fields> |
| <attributes/> |
| <GUI> |
| <xloc>512</xloc> |
| <yloc>96</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>id</name> |
| <type>Sequence</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>10</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <valuename>id</valuename> |
| <use_database>N</use_database> |
| <connection/> |
| <schema/> |
| <seqname>SEQ_</seqname> |
| <use_counter>Y</use_counter> |
| <counter_name/> |
| <start_at>1</start_at> |
| <increment_by>1</increment_by> |
| <max_value>999999999</max_value> |
| <attributes/> |
| <GUI> |
| <xloc>256</xloc> |
| <yloc>96</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>not expected?</name> |
| <type>FilterRows</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <send_true_to/> |
| <send_false_to/> |
| <compare> |
| <condition> |
| <negated>N</negated> |
| <leftvalue>count</leftvalue> |
| <function><></function> |
| <rightvalue>expectedCount</rightvalue> |
| </condition> |
| </compare> |
| <attributes/> |
| <GUI> |
| <xloc>624</xloc> |
| <yloc>96</yloc> |
| </GUI> |
| </transform> |
| <transform_error_handling> |
| </transform_error_handling> |
| <attributes/> |
| </pipeline> |