SurplusBytesHandlingAction Enum
Specifies how to handle data being loaded that exceeds the length of the data type defined for columns containing VARBYTE data.
By default, Redshift Spectrum sets the value to null for data that exceeds the width of the column.
Members
| Member | Description |
|---|---|
SET_TO_NULL | Replaces data that exceeds the column width with null. |
DISABLED | Doesn't perform surplus byte handling. |
FAIL | Cancels queries that return data exceeding the column width. |
DROP_ROW | Drop all rows that contain data exceeding column width. |
TRUNCATE | Removes the characters that exceed the maximum number of characters defined for the column. |