Interface ExistingTableSchemaExpansionSupport

    • Method Detail

      • normalizeToTargetDataType

        DataType normalizeToTargetDataType​(TableId tableId,
                                           String columnName,
                                           DataType pipelineDataType,
                                           Schema existingTargetSchema)
        Converts a pipeline type to the canonical CDC representation of the physical type that this applier will create in the existing target table. For example, if both CHAR(n) and VARCHAR(n) map to target VARCHAR(n), this method should return the same VARCHAR(n) representation for both input types. The existing target schema provides table options needed by sinks whose type mapping depends on table properties.

        This method must not query or modify the target table.

      • isColumnNameCaseSensitive

        boolean isColumnNameCaseSensitive()
        Returns whether target column names are matched case-sensitively.