Skip to content
v2.274.0

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 ​

MemberDescription
SET_TO_NULLReplaces data that exceeds the column width with null.
DISABLEDDoesn't perform surplus byte handling.
FAILCancels queries that return data exceeding the column width.
DROP_ROWDrop all rows that contain data exceeding column width.
TRUNCATERemoves the characters that exceed the maximum number of characters defined for the column.