You are on page 1of 8

Switch Stage

Important Instructions: 
· Please read the document thoroughly before you code. 
· Please do not change the Business Requirements. 

Coverage: 
1. Switch Stage 

Source File: Order_Details.csv

Complexity Level: Easy


Exercise 1: Use “Order_Details.csv” as your source file and groups of data using Switch Stage as
explained below.

Column Name ORDER_NO


Group 1 All the ORDER_NOs smaller than or equal to 1500 should
be part of this group
Group 2 All the ORDER_NOs greater than 1500 and smaller than
3000 should be part of this group
Group 3 All the ORDER_NOs greater than 3000 and smaller than
4500 should be part of this group
Other / Default All the other rows should go to this group

Questions to be answered: After you successfully run the job, see the output of the Default group
carefully. Do you see any rows in this group that should belong to a different group? If yes, you need to
review the group conditions of Switch Stage carefully and make any necessary modifications.

Controlled copy

Project ID: <Project ID. > <SCI.ID. > / Ver: <Ver No.>

Release ID: QTAD-SRDUC.doc / 1.0 / 21.07.2020 C2: Protected


Switch Stage

Controlled copy

Project ID: <Project ID. > <SCI.ID. > / Ver: <Ver No.>

Release ID: QTAD-SRDUC.doc / 1.0 / 21.07.2020 C2: Protected


Switch Stage

Controlled copy

Project ID: <Project ID. > <SCI.ID. > / Ver: <Ver No.>

Release ID: QTAD-SRDUC.doc / 1.0 / 21.07.2020 C2: Protected


Switch Stage

Complexity Level: Hard


Exercise 2: Use “Order_Details.csv” as your source file and groups of data using Switch Stage as
explained below.

Column Name ITEM_NO


GroupAG All the ITEM_NOs where the first letter of the ITEM_NO is
is between A to G. For example, AC 75 , BF 128

GroupHN All the ITEM_NOs where the first letter of the ITEM_NO is
between H to N. For example, HE 103, JD 140
GroupOT All the ITEM_NOs where the first letter of the ITEM_NO is
between O to T.
GroupUZ All the ITEM_NOs where the first letter of the ITEM_NO is
between U to Z
Other / Default All the rows that did not belong to any of the above
groups

Controlled copy

Project ID: <Project ID. > <SCI.ID. > / Ver: <Ver No.>

Release ID: QTAD-SRDUC.doc / 1.0 / 21.07.2020 C2: Protected


Switch Stage

Questions to be answered: After you successfully run the job, see the output of the Default group
carefully. What rows made it to the default group.

Hint: You may have to use an Transformer Stage before the Switch Stage.

Controlled copy

Project ID: <Project ID. > <SCI.ID. > / Ver: <Ver No.>

Release ID: QTAD-SRDUC.doc / 1.0 / 21.07.2020 C2: Protected


Switch Stage

Controlled copy

Project ID: <Project ID. > <SCI.ID. > / Ver: <Ver No.>

Release ID: QTAD-SRDUC.doc / 1.0 / 21.07.2020 C2: Protected


Switch Stage

Controlled copy

Project ID: <Project ID. > <SCI.ID. > / Ver: <Ver No.>

Release ID: QTAD-SRDUC.doc / 1.0 / 21.07.2020 C2: Protected


Switch Stage

Controlled copy

Project ID: <Project ID. > <SCI.ID. > / Ver: <Ver No.>

Release ID: QTAD-SRDUC.doc / 1.0 / 21.07.2020 C2: Protected

You might also like