Azure Data Factory->从SQL复制到表存储(布尔映射)

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

我正在Azure数据工厂中添加管道,以将数据从SQL迁移到表存储。一切似乎工作正常,但是我观察到位列未按预期获取副本。我在SQL DB中有一个归档的“ IsMinor”。

如果我不按原样为位列添加显式映射,则将其复制为null如果从SQL将其设置为“ True”或“ False”,则会将其复制为String,而不是TableStorage中的布尔值。

我还尝试在映射字段时指定类型,即“ IsMinor (Boolean)”,但是效果不佳。以下是我的样本表

enter image description here

我希望上面的位值在表存储中而不是字符串中复制为“ Boolean”。

azure-data-factory azure-table-storage copy-activity
1个回答
0
投票

我尝试将布尔数据从我的SQL数据库复制到表Storage,它可以工作。

您知道,SQL Server不支持布尔数据类型,所以我创建了这样的表:enter image description here

所有数据预览在Source数据集中看起来都不错:enter image description here

我只是在表存储中创建表test1,让数据工厂自动创建PartitionKey和RowKey。

运行管道并使用Storage Explorer检查test1中的数据:enter image description here

从文档Understanding the Table service data model,表存储不支持布尔属性类型。

希望获得帮助。

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