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

Developing and Running Dynamic Mappings

Developing and Running Dynamic Mappings

Perform the following tasks to develop and run a dynamic mapping to read or write to Snowflake. The tasks and the order in which you perform the tasks depend on the mapping scenario and the transformations that you plan to use in the mapping.
  1. Create a Snowflake mapping and add the Snowflake objects.
  2. Configure a Snowflake dynamic source for the Read or Lookup transformation to get metadata changes from the Snowflake source at run time. Select the Snowflake source object and perform one of the following tasks based on your requirement:
    • Use a parameter as a source for a dynamic mapping source object.
    • Configure data sources for source objects in mappings to get metadata changes at run time. To dynamically get columns from the data source file at run time, select
      At run time, get data object columns from the data source
      .
  3. Create dynamic ports in transformations and link ports.
  4. Define input rules for dynamic ports to determine which generated ports to create.
  5. Configure a Write transformation to write to a Snowflake dynamic target. Select the Snowflake target object and perform one of the following tasks based on your requirement:
    • Use a parameter as the data object for the transformation and then change the parameter at run time.
    • To dynamically get data object columns from the data source at run-time, enable the option
      At run time, get data object columns from the data source
      .
    • Define target object columns by mapping flow to enable upstream mapping objects to update the incoming ports for the Write transformation.
      To do this, select
      Columns defined by: Mapping flow
      in the
      Ports
      tab of the Properties view and then select
      Create or replace table at run time
      in the
      Target Schema Strategy
      list.
  6. Create and configure a run-time link to determine which ports to link at run time.
  7. Validate the mapping.
  8. Compile and run the dynamic mapping.

0 COMMENTS

We’d like to hear from you!