Enum SurplusBytesHandlingAction

java.lang.Object
java.lang.Enum<SurplusBytesHandlingAction>
software.amazon.awscdk.services.glue.alpha.SurplusBytesHandlingAction
All Implemented Interfaces:
Serializable, Comparable<SurplusBytesHandlingAction>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:41.466Z") @Stability(Experimental) public enum SurplusBytesHandlingAction extends Enum<SurplusBytesHandlingAction>
(experimental) 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.

See Also:
  • Enum Constant Details

    • SET_TO_NULL

      @Stability(Experimental) public static final SurplusBytesHandlingAction SET_TO_NULL
      (experimental) Replaces data that exceeds the column width with null.
    • DISABLED

      @Stability(Experimental) public static final SurplusBytesHandlingAction DISABLED
      (experimental) Doesn't perform surplus byte handling.
    • FAIL

      @Stability(Experimental) public static final SurplusBytesHandlingAction FAIL
      (experimental) Cancels queries that return data exceeding the column width.
    • DROP_ROW

      @Stability(Experimental) public static final SurplusBytesHandlingAction DROP_ROW
      (experimental) Drop all rows that contain data exceeding column width.
    • TRUNCATE

      @Stability(Experimental) public static final SurplusBytesHandlingAction TRUNCATE
      (experimental) Removes the characters that exceed the maximum number of characters defined for the column.
  • Method Details

    • values

      public static SurplusBytesHandlingAction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SurplusBytesHandlingAction valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null