A complex data type definition represents the schema of the data of type struct. You can import the schema of the hierarchical data in the complex file to the type definition library as a complex data type definition.
Import complex data type definitions from an Avro, JSON, or Parquet schema file. For example, you can import an Avro schema from an .avsc file as a complex data type definition.
In the Developer tool, open the mapping or mapplet where you want to import a complex data type definition.
In the
Outline
view, select the
Type Definition Library
to view the
Type_Definition_Library
tab in the mapping editor.
Right-click an empty area of the editor and click
Import Complex Data Type Definitions
.
The
Import Complex Data Type Definitions
dialog box appears.
Select a complex file format from the
File Format
list.
Click
Browse
to select the complex file schema from which you want to import the complex data type definition.
Navigate to the complex file schema and click
Open
.
Click
Next
.
The
Choose Complex Data Type Definitions to Import
page appears.
Select one or more schemas from the list to import.
Click
Next
.
The
Complex Data Type Definitions to Import
page appears.
Review the complex data type definitions that you want to import and click