Defining a schema in a Job script
Use the addSchema {} function to define a schema in a Job
script.
addSchema {} properties
Function/parameter | Description | Mandatory? |
---|---|---|
NAME |
Give a name to the schema. |
Yes |
CONNECTOR |
Type in the connection type of the schema, for example: FLOW, REJECT, and so on. |
Yes |
addColumn {} |
Add a column to your schema and define its parameters:
You can use this function to add as many columns as your schema needs. |
Yes |
Example
The following Job script example defines a schema for component tFileInputDelimited_1, which contains two columns: firstName and lastName, both of type String.
addSchema {
NAME: "tFileInputDelimited_1",
CONNECTOR: "FLOW"
addColumn {
NAME: "firstName",
TYPE: "id_String"
}
addColumn {
NAME: "lastName",
TYPE: "id_String"
}
}