Help Center/ Cloud Data Migration/ User Guide/ Key Operation Guide/ Converting Unsupported Data Types
Updated on 2024-10-24 GMT+08:00

Converting Unsupported Data Types

Scenario

When field mapping is configured on CDM, a message is displayed indicating that the data type of the field is not supported and the field needs to be deleted. If you need to use this field, you can use SQL statements to convert the field type in the source job configuration to the type supported by CDM for data migration.

Procedure

  1. Modify the CDM migration job and enable Use SQL Statement.

    The SQL statement format is as follows: select id,cast(Original field name as INT) as New field name, which can be the same as the original field name from schemaName.tableName;

    Example: select `id`, `name`, cast(`gender` AS char(255) ) AS `gender` from `test_1117869`.`test_no_support_type`;

  2. Wait for the fields to be converted to the data types supported by CDM.