Table of Contents

Search

  1. Preface
  2. Mappings
  3. Mapplets
  4. Mapping Parameters
  5. Where to Assign Parameters
  6. Mapping Outputs
  7. Generate a Mapping from an SQL Query
  8. Dynamic Mappings
  9. How to Develop and Run a Dynamic Mapping
  10. Dynamic Mapping Use Cases
  11. Mapping Administration
  12. Export to PowerCenter
  13. Import From PowerCenter
  14. Performance Tuning
  15. Pushdown Optimization
  16. Partitioned Mappings
  17. Developer Tool Naming Conventions

Developer Mapping Guide

Developer Mapping Guide

Step 4. Define the Filter Query

Step 4. Define the Filter Query

In the Read transformation, configure a filter query to read data incrementally based on a parameterized field and its value.
  1. Select the Read transformation in the mapping editor to view the transformation properties.
  2. Open the
    Query
    view.
  3. Select the
    Edit
    button for the
    Filter
    property.
  4. Configure a filter to find values that are greater than the persisted value using the following form: $<input port parameter>
    >
    $<persisted value parameter>
    Input port parameter is the mapping parameter col_id_name for the ID column from the source relational table.
    Persisted value parameter is the mapping parameter col_id_val that you bind with the persisted mapping output value.
    If you assign a value to the col_id_val parameter in a parameter set or parameter file, the query uses that assigned value for the parameter. Otherwise the query uses the persisted value, if one exists, or the default value.
  5. Click
    OK
    to save the filter query.
    The filter query appears in the
    Filter
    property.
  6. Click
    File
    Save
    to save the Read transformation.
The following image shows the configured filter query: The Query view shows the configured filter for the Read transformation. The filter is defined as $col_id_name > $col_id_val.

0 COMMENTS

We’d like to hear from you!