Icon

Exercise 01 Development Data Pipeline

There has been no title set for this workflow's metadata.

Learning objective: In this exercise you'll practice capturing the data transformation workflow segment by means of Integrated Deployment extension and then writing the captured workflow segment to a specific location

Workflow description: This workflow showcases the process of reading orders data from restaurants and performing set of transformations to clean it and write the processed data to the database. Find below the three major tasks performed in this workflow

A sample of Orders data is read using the excel reader node, taking a sample of data allows us to experiment rapidly

Further the data is cleaned to remove duplicate rows and irrelevant columns, and then it is summarized using the shared component

At last, the transformed data is written to development database to allow us to check the consistency of the processed data

Step 2 : Write the transformed data to database

  1. Connect to PostgreSQL Development database and update table

    • Provide the username, password, hostname as provided by the instructors in the PostgreSQL Connection component to connect

    • Provide database name as "l3dedev"

    • Provide the Schema name as userXX (eg: user01) and table name as "orders-cleaned" in the Component

Step 1 : Capture the workflow segment using Integrated Deployment

  1. Capture the Data Processing and Summarize blocks of the workflow

    • After reading the data, add the Capture Workflow Start node to begin the workflow capturing process

    • Drag and drop the connection from CSV Reader to '+' button of the Capture Workflow Start node, the port will be added automatically

    • Use the Capture Workflow End node after the Summarize block to end the capturing process

    • Drag and drop the connection from Summarize TimeStamp-Hour Component to '+' button of the Capture Workflow End node, the port will be added automatically

Summarize
Development Database


Data Processing

Step 3 : Write the Workflow to custom location.


  1. Save data transformation workflow

    • Use Workflow Writer node to write the captured part

    • Connect the Captured Workflow Port Object of Capture Workflow End node to the Workflow Writer node

    • Use the workflow relative path to write the workflow to '/02_Deployment_Workflows' folder

    • Enable overwriting of the workflow by choosing the option "Overwrite" in the Workflow section

    • Use custom workflow name: 01_Data_Transformation_wf

    • In the "Inputs and outputs" tab of Workflow Writer node:

      • select Workflow Service Input for the input node

      • select Workflow Service Output for the output node

Session 1 - Preparing a Data Pipeline for Deployment

Exercise 1a Use Integrated Deployment nodes to capture the Data Transformation process

Learning objective: In this exercise you'll practice capturing the data transformation workflow segment by means of Integrated Deployment extension and then writing the captured workflow segment to a specific location


Workflow description: This workflow showcases the process of reading orders data from restaurants and performing set of transformations to clean it and write the processed data to the database. Find below the three major tasks performed in this workflow

  • A sample of Orders data is read using the excel reader node, taking a sample of data allows us to experiment rapidly

  • Further the data is cleaned to remove duplicate rows and irrelevant columns, and then it is summarized using the shared component

  • At last, the transformed data is written to development database to allow us to check the consistency of the processed data


You'll find the instructions to the exercises in the yellow annotations.

Read Data from Recent Week
Summarize Timestamp-Hour
"Price" Column to Number
String To Number
"Table ID" Column to Number
String To Number
append:orders-cleaned
DB Writer
by time, restaurant
Sorter
Date&Time
String to Date&Time
Development DB
PostgreSQL Connection
Capture Workflow Start
Remove Duplicates
Duplicate Row Filter
Capture Workflow End
Filter relevant cols
Column Filter
Sample data
CSV Reader
Write deplyoment workflow
Workflow Writer

Nodes

Extensions

Links