Snowflake Data Cloud Connector > Part II: Data Integration with Snowflake Data Cloud Connector > Mappings for Snowflake Data Cloud > Handling dynamic schemas
  

Handling dynamic schemas

When you add a mapping to a mapping task, you can choose how Data Integration handles changes in the data object schemas. To refresh the schema every time the task runs, you can enable dynamic schema handling in the task.
A schema change includes one or more of the following changes to the data object:
Configure schema change handling in the Advanced Options section on the Runtime Options tab when you configure the task. You can configure asynchronous or dynamic schema change handling.
When you configure dynamic schema change handling, you can choose from the following options to refresh the schema:
Alter and apply changes
Data Integration applies the following changes from the source schema to the target schema:
Note: To include schema changes for renamed or new fields for mappings in advanced mode, see Handling dynamic schemas for mappings in advanced mode.
Don't apply DDL changes
Data Integration does not apply the schema changes to the target.
Drop current and recreate
Drops the existing target table and then recreates the target table at runtime using all the incoming metadata fields from the source.

Handling dynamic schemas for mappings in advanced mode

When you run a mapping in advanced mode and if a column is renamed or a field is added to the source, the target schema is jumbled because of the difference in columns in the source and target schema.
To avoid this, set the following properties, separated by an ampersand, in the Additional Write Runtime Parameters field in the Target transformation:
When you set these properties, Data Integration includes the name and also ignores any mismatch between the source and target schema when the column names contain uppercase letters, digits, or underscore.
If the column names do not contain uppercase letters, you must additionally set the keep_column_case=on parameter in both the Source and Target transformations:

Rules and guidelines for dynamic schema handling

Consider the following rules and guidelines when you enable dynamic schema change handling: