The table in the Avro Fields tab defines the following properties for the input fields from the Avro source:
Field Property | Description |
---|---|
Avro path (Avro type) | The location of the Avro source (and its format type). |
Indexed values |
The index key to use in an Avro path collection. You can use this field for map or array expansion, which expands array or map values to return multiple rows of data.
When this field is left blank, data is not returned for the field. |
Name | The name of the input field. |
Type | The type of the input field, such as String or Date. |
Format | The format of the input field. |
The Avro Fields tab also contains the following options for specifying how certain fields behave in this step:
Option | Description |
---|---|
Pass through fields from previous step |
Specify how fields pass through this step:
|
Allow null values for missing paths or fields |
Specify how missing fields should be replaced:
|
After you have provided a path to an Avro data file or Avro schema, click Get Fields to populate the fields.
These fields represent the Avro schema. When the schema field is retrieved, the Avro type is converted to an appropriate PDI type. A user can change the PDI type. Below is the Avro-to-PDI data type conversion table.
Avro Type | PDI Type |
---|---|
String | String |
TimeStamp | TimeStamp |
Bytes | Binary |
Decimal | BigNumber |
Boolean | Boolean |
Date | Date |
Long | Integer |
Double | Number |
int | Integer |
float | Number |