Table action property
Use the Table action property to configure the connector to complete create, replace, and truncate actions on a table at run time. These actions are completed before any data is written to the table.
Usage
You can set the Table action property to the values that are listed in the following table.
Value | Description |
---|---|
Append | No action is completed on the table. This option is the default. |
Create | Create a table at run time. Use one of these
methods to specify the CREATE TABLE statement:
|
Replace | Replace a table at run time. Use one of these
methods to specify the DROP TABLE statement:
Use one of these methods to specify the CREATE TABLE statement:
|
Truncate | Truncate a table at run time. Use one of
these methods to specify the TRUNCATE TABLE statement:
|
To configure the job to fail when the statement that is specified by the table action fails, you can set the appropriate Fail on error property for each table action to Yes. Otherwise, when the statement fails, the connector logs a message, and the job continues.
Greenplum data types
When you use the table
action property to create a table that uses Greenplum data types that
are not directly supported by InfoSphere DataStage (for example, circle,
polygon, XML), you must complete one of the following tasks:
- Set the Generate create table statement at runtime property to No, and then enter an SQL statement that contains the Greenplum data types.
- Set the Generate create table statement at runtime property to Yes. To enable the Native type attribute, on the column's page in the Greenplum Connector stage, right-click in the column area, and then click Properties. Then, select the check box for the Native type. Then, on the Columns page, specify a Greenplum data type as the value for the Native type.

CREATE TABLE <<MyTable>>(col1 varchar(32), col2 varchar(32), col3 circle);