Enum ExistingTableSchemaExpansionMode
- java.lang.Object
-
- java.lang.Enum<ExistingTableSchemaExpansionMode>
-
- org.apache.flink.cdc.common.pipeline.ExistingTableSchemaExpansionMode
-
- All Implemented Interfaces:
Serializable,Comparable<ExistingTableSchemaExpansionMode>
@Experimental public enum ExistingTableSchemaExpansionMode extends Enum<ExistingTableSchemaExpansionMode>
Strategy for handling an existing target table when the initialCreateTableEventarrives.CHECKguards the initial table state and is independent ofSchemaChangeBehavior.TRY_EXPANDandEXPANDskip the framework-side initial handling whenSchemaChangeBehaviorisIGNOREorEXCEPTION; subsequent source schema changes are always controlled bySchemaChangeBehavior.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKValidate that the existing target table can contain every upstream column without executing any DDL.DISABLEDDo not check or expand the existing target table; keep the sink's original behavior.EXPANDCheck and expand the existing target table with safe DDL.TRY_EXPANDCheck and best-effort expand the existing target table with safe DDL.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExistingTableSchemaExpansionModevalueOf(String name)Returns the enum constant of this type with the specified name.static ExistingTableSchemaExpansionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final ExistingTableSchemaExpansionMode DISABLED
Do not check or expand the existing target table; keep the sink's original behavior.
-
CHECK
public static final ExistingTableSchemaExpansionMode CHECK
Validate that the existing target table can contain every upstream column without executing any DDL. Fails the job with an aggregated error (including suggested repair statements) if the target table is missing or incompatible. This mode guards the initial table state and runs regardless ofSchemaChangeBehavior.
-
TRY_EXPAND
public static final ExistingTableSchemaExpansionMode TRY_EXPAND
Check and best-effort expand the existing target table with safe DDL. Failures of this mechanism are logged and delegated to the sink's original behavior.A connector that does not implement
ExistingTableSchemaExpansionSupportis a configuration error and fails the job rather than silently degrading.
-
EXPAND
public static final ExistingTableSchemaExpansionMode EXPAND
Check and expand the existing target table with safe DDL. Any incompatibility or failure of this mechanism fails the job.
-
-
Method Detail
-
values
public static ExistingTableSchemaExpansionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExistingTableSchemaExpansionMode c : ExistingTableSchemaExpansionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExistingTableSchemaExpansionMode 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 nameNullPointerException- if the argument is null
-
-