Supported DDL Operations for Amazon Redshift Targets
The Applier task can apply the following DDL operations to Amazon Redshift targets:
ALTER TABLE
table_name
ADD
column_name
datatype
ALTER TABLE
table_name
ADD
constraint_name
PRIMARY KEY (
column_name
)
ALTER TABLE
table_name
DROP COLUMN
column_name
CASCADE
ALTER TABLE
table_name
DROP
constraint_name
CASCADE
ALTER TABLE
table_name
RENAME COLUMN
column_name
TO
new_name
CREATE TABLE
table_name
(
column_name
datatype
) [DISTSTYLE KEY DISTKEY
(
primary_key_column_name
)
|DISTSTYLE EVEN]
DROP TABLE
table_name
TRUNCATE TABLE
table_name
To replicate CREATE TABLE and ADD COLUMN operations to Amazon Redshift targets in Audit Apply and Merge Apply modes, you must specify the new source table and column names in all lowercase. If you use uppercase, the Applier cannot replicate subsequent DML operations for the new table or column.
Data Replication cannot replicate ADD COLUMN and CREATE TABLE operations that include columns with binary datatypes.
Data Replication does not replicate ALTER COLUMN operations to Amazon Redshift targets because Amazon Redshift does not support these types of DDL operations. If you try to replicate ALTER COLUMN operations, the Applier ends with an error. Either do not enable replication of ALTER COLUMN operations or set the apply.skip_alter_column_failed_ddl runtime parameter to 1 to skip these errors.