Search

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

# Struct Data Type

A struct data type represents a collection of elements of different data types. A struct data type has an associated schema that defines the structure of the data. To pass, generate, or process struct data, assign the struct data type to ports.
The schema for the struct data type determines the element names and the number of elements in the struct data. The schema also determines the order of elements in the struct data. Informatica uses complex data type definitions to represent the schema of struct data.
The transformation language includes operators to access struct elements. It also includes functions to generate, process, and parse struct data and to modify the schema of the data.

## Format

`struct {element_name1:value1 [, element_name2:value2, ...]}`
Schema for the struct is of the following format:
`schema {element_name1:data_type1 [, element_name2:data_type2, ...]}`
The following table describes the arguments for this data type:
Argument
Description
struct
Name of the struct column or port.
schema
A definition of the structure of data.
Schema is a name-type pair that determines the name and data type of the struct elements.
element_name
Name of the struct element.
value
Value of the struct element.
data_type
Data type of the element value.
The element values can be of a primitive or complex data type. Each element in the struct can have a different data type.

## Struct Example

The following schema is for struct data to store customer addresses:
```address
{st_number:integer,st_name:string,city:string,state:string,zip:string}```
The following example shows struct data values for the cust_address column:
`cust_address`
`{st_number:154,st_name:Addison Ave,city:Redwood City,state:CA,zip:94065}`
`{st_number:204,st_name:Ellis St,city:Mountain View,state:CA,zip:94043}`
`{st_number:357,st_name:First St,city:Sunnyvale,state:CA,zip:94085}`
Actions
Resources