数据工厂:csv列的类型都是字符串,不能更改它们

问题描述 投票:0回答:1

我正在使用datafactory创建数据流,目前正在从blob获取一个csv。

3列应视为两倍。当我执行“导入模式”时,结果如下:

enter image description here

但是在数据预览中:enter image description here

并且如果我将类型更改为字符串,则可以正常工作:

enter image description here

为什么认为不可能是双倍?我需要进行汇总并求和值,以便字符串完全不兼容

我尝试指定格式,但不会更改任何内容(这里是一个只有2行的测试csv文件,因此在其他行中具有字符串或类似内容没有问题)谢谢

编辑:我不了解的是,导入模式将列理解为双精度列,那么为什么它在数据预览中失败了?

string types double azure-data-factory
1个回答
0
投票

错误是由于选项Validate schema引起的,请不要选择它。

例如:

这是我的csv数据:

enter image description here

单击Validate schema时:

enter image description here

enter image description here

enter image description here

[如果我们不选择Validate schema,则数据预览效果很好:

enter image description here

enter image description here

根据我的经验,如果我们在数据流中选择Validate schema选项,则数据预览通常会出现错误。

希望这会有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.