Table of Contents


  1. Preface
  2. Introduction to Informatica Data Engineering Integration
  3. Mappings
  4. Mapping Optimization
  5. Sources
  6. Targets
  7. Transformations
  8. Python Transformation
  9. Data Preview
  10. Cluster Workflows
  11. Profiles
  12. Monitoring
  13. Hierarchical Data Processing
  14. Hierarchical Data Processing Configuration
  15. Hierarchical Data Processing with Schema Changes
  16. Intelligent Structure Models
  17. Blockchain
  18. Stateful Computing
  19. Appendix A: Connections Reference
  20. Appendix B: Data Type Reference
  21. Appendix C: Function Reference

Flattening a Complex Port

Flattening a Complex Port

Use the
Flatten Complex Port
wizard to convert hierarchical data to relational data.
  1. In the transformation, select a complex port that you want to flatten.
  2. Right-click the selected ports, and select
    Hierarchical Conversions
    Flatten Complex Port
    Flatten Complex Port
    wizard appears with the list of elements in the complex port.
    The wizard shows the elements of the complex port. The elements of a complex data type have a check box against them. The wizard contains a Flatten All button.
  3. In the
    Select Elements
    column, select the check box for each element of a struct or an array data type that you want to extract.
    If you select a child element of a nested complex port, the wizard automatically selects the parent element to flatten.
    The image shows the parent element that is selected when you select to flatten a child element of a nested complex port.
  4. Optionally, click
    Flatten All
    to flatten all elements of struct or data type in the complex port.
    The wizard selects all elements of struct or data type in the complex port to flatten.
  5. Click
You can see the following changes in the mapping:
  • For each struct element that you selected to flatten, the mapping contains a new Expression transformation
    with the following ports:
    • The complex port from which you want to extract elements.
    • One or more output ports for the extracted elements.
      The output ports contain expressions that use complex operators to extract elements.
    • A dynamic port with ports from the upstream transformation
  • For each array element that you selected to flatten, the mapping contains a new Normalizer transformation
    with an input group and an output group. The output group contains the flattened normalized fields for the array element.
  • A final Expression transformation
    with a dynamic port that contains the flattened ports for the complex port and other ports in the upstream transformation.
The following image shows an example of mapping changes:
The mapping contains an Expression transformation with a struct port, two Expression transformations and a Normalizer transformation to flatten struct and array elements, and a final Expression transformation with the flattened ports.


We’d like to hear from you!