Table of Contents

Search

  1. Preface
  2. Introduction to PowerExchange for Snowflake
  3. Snowflake Connections
  4. PowerExchange for Snowflake Data Objects
  5. PowerExchange for Snowflake Mappings
  6. PowerExchange for Snowflake Dynamic Mappings
  7. Snowflake Run-Time Processing
  8. Pushdown Optimization
  9. Appendix A: Snowflake Data Type Reference

PowerExchange for Snowflake User Guide

PowerExchange for Snowflake User Guide

Snowflake Mapping Example

Snowflake Mapping Example

Your organization has a large amount of customer data from across regions stored in flat files. You organization needs to analyze data in the APAC region. Create a mapping that reads all the customer records from the flat file and write those records to a Snowflake table.
You can use the following objects in a Snowflake mapping:
Flat file input
The input file is a flat file that contains customer names and their details.
Create a flat file data object. Configure the flat file connection and specify the flat file that contains the customer data as a resource for the data object. Use the data object in a mapping as a read data object.
Transformations
Add a Filter transformation to extract customer data in the APAC region.
The Filter transformation filters the source data based on the value you specify for the region ID column. The Data Integration Service returns the rows that meet the filter condition.
Snowflake output
Create a Snowflake data object write operation. Configure the Snowflake connection and specify the Snowflake object as a target for the data object. Use the data object in a mapping as a target data object.
The following image shows the Snowflake mapping example:
You can view the mapping that reads from the flat file object and writes to the Snowflake object, ADOO_load_customer.
When you run the mapping, the Data Integration Server reads customer records from the flat file and writes to the Snowflake table.

0 COMMENTS

We’d like to hear from you!