Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Access Policy transformation
  6. Aggregator transformation
  7. B2B transformation
  8. Chunking transformation
  9. Cleanse transformation
  10. Data Masking transformation
  11. Data Services transformation
  12. Deduplicate transformation
  13. Expression transformation
  14. Filter transformation
  15. Hierarchy Builder transformation
  16. Hierarchy Parser transformation
  17. Hierarchy Processor transformation
  18. Input transformation
  19. Java transformation
  20. Java transformation API reference
  21. Joiner transformation
  22. Labeler transformation
  23. Lookup transformation
  24. Machine Learning transformation
  25. Mapplet transformation
  26. Normalizer transformation
  27. Output transformation
  28. Parse transformation
  29. Python transformation
  30. Rank transformation
  31. Router transformation
  32. Rule Specification transformation
  33. Sequence transformation
  34. Sorter transformation
  35. SQL transformation
  36. Structure Parser transformation
  37. Transaction Control transformation
  38. Union transformation
  39. Vector Embedding transformation
  40. Velocity transformation
  41. Verifier transformation
  42. Web Services transformation

Transformations

Transformations

Dynamic Lookup example

Dynamic Lookup example

To configure a Lookup transformation to be dynamic, use a dynamic lookup cache.
A dynamic cache is helpful when the source table contains a large amount of data or it contains duplicate primary keys.
The following example illustrates the advantage of using a dynamic cache rather than a static cache when the source table includes duplicate primary keys.
You want to update your payroll table with data from your Human Resources department. The payroll table includes the following data, where ID is the primary key:
ID
Name
Location
1
Abhi
USA
2
Alice
UK
You create a mapping with a Lookup transformation and use the payroll table for the target and the lookup cache. You configure the cache to be dynamic because you expect the Human Resources department's table to contain duplicate keys.
In the mapping, you specify the Human Resources department's table to be the source. The source table includes the following data:
ID
Name
Location
1
Abhi
India
2
Alice
UK
3
James
Japan
3
James
USA
You create a
mapping
task to update the payroll table. When the
mapping
task begins, it creates the cache file that contains the rows in the target table. As the task processes the rows, it flags the first row as an update and it updates the cache. It flags the third row as an insert and inserts the row in the cache. It flags the fourth row as an update because the row exists in the cache.
If you follow the same scenario using a static cache, the task flags the fourth row as an insert. The cache does not contain the row for James because it does not update as the task processes the rows. The target database produces an error because it cannot handle two rows with the same primary key.

0 COMMENTS

We’d like to hear from you!