MERGE restrictions
The following restrictions apply to updating and inserting table data with MERGE.
The following restrictions apply to updating and inserting table data with
MERGE
.
Constraint enforcement
If primary key, unique key, or check constraints are enabled for automatic enforcement in the target table, Vertica enforces those constraints when you load new data. If a violation occurs, Vertica rolls back the operation and returns an error.
Caution
If you run MERGE multiple times using the same target and source table, each iteration is liable to introduce duplicate values into the target columns and return with an error.Columns prohibited from merge
The following columns cannot be specified in a merge operation; attempts to do so return with an error:
-
Identity/auto-increment columns, or columns whose default value is set to a named sequence.
-
Vmap columns such as
__raw__
in flex tables. -
Columns of complex types (ARRAY, SET, ROW).