Enum SqlTableLike.FeatureOption

  • All Implemented Interfaces:
    Serializable, Comparable<SqlTableLike.FeatureOption>
    Enclosing class:
    SqlTableLike

    public static enum SqlTableLike.FeatureOption
    extends Enum<SqlTableLike.FeatureOption>
    A feature of a table descriptor that will be merged into the new table. The way how a certain feature will be merged into the final descriptor is controlled with SqlTableLike.MergingStrategy.
    • ALL - a shortcut to change the default merging strategy if none provided
    • CONSTRAINTS - constraints such as primary and unique keys
    • DISTRIBUTION - distribution of the table
    • GENERATED - computed columns
    • METADATA - metadata columns
    • WATERMARKS - watermark declarations
    • PARTITIONS - partition of the tables
    • OPTIONS - connector options that describe connector and format properties

    Example:

    
     LIKE `sourceTable` (
       INCLUDING ALL
       OVERWRITING OPTIONS
       EXCLUDING PARTITIONS
     )
     

    is equivalent to:

    
     LIKE `sourceTable` (
       INCLUDING GENERATED
       INCLUDING CONSTRAINTS
       INCLUDING DISTRIBUTION
       OVERWRITING OPTIONS
       EXCLUDING PARTITIONS
     )