
# 不支持数据类型转换规避指导
#### 操作场景
CDM在配置字段映射时提示字段的数据类型不支持，要求删除该字段。如果需要使用该字段，可在源端作业配置中使用SQL语句对字段类型进行转换，转换成CDM支持的类型，达到迁移数据的目的。
![](https://support.huaweicloud.com/bestpractice-dataartsstudio/zh-cn_image_0000001569592372.png "点击放大")
#### 操作步骤
1. 修改CDM迁移作业，通过使用SQL语句的方式迁移。 
   ![](https://support.huaweicloud.com/bestpractice-dataartsstudio/zh-cn_image_0000002022805416.png "点击放大")
   
   ![](https://support.huaweicloud.com/bestpractice-dataartsstudio/public_sys-resources/note_3.0-zh-cn.png)
   SQL语句格式为："select id,cast(原字段名 as INT) as 新字段名可以和原字段名一样 from schemaName.tableName;"
   例如：select \`id\`, \`name\`, cast(\`gender\` AS char(255) ) AS \`gender\` from \`test_1117869\`.\`test_no_support_type\`;
   
   
2. 转换后的字段就转换为CDM支持的数据类型。 
   ![](https://support.huaweicloud.com/bestpractice-dataartsstudio/zh-cn_image_0000002022648848.png "点击放大")
   
   
   
 
