我正在尝试使用Azure数据工厂从Azure表存储中获取数据。我有一个名为orders的表,该表有30列。我只想从此表中获取3列(PartitionKey,RowKey和DeliveryDate)。 DeliveryDate列具有不同的数据类型,例如DateTime.Null(字符串值)和实际的datetime值。当我要预览数据时,出现以下错误:
数据源看起来像这样:
{
"name": "Orders",
"properties": {
"linkedServiceName": {
"referenceName": "AzureTableStorage",
"type": "LinkedServiceReference"
},
"annotations": [],
"type": "AzureTable",
"structure": [
{
"name": "PartitionKey",
"type": "String"
},
{
"name": "RowKey",
"type": "String"
},
{
"name": "DeliveryDate",
"type": "String"
}
],
"typeProperties": {
"tableName": "Orders"
}
},
"type": "Microsoft.DataFactory/factories/datasets"}
答案 0 :(得分:0)
我测试了您的问题,它可以工作。您能告诉我更多有关此问题的详细信息还是我的测试有问题吗?
以下是我的测试数据:
数据集代码:
{
"name": "Order",
"properties": {
"linkedServiceName": {
"referenceName": "AzureTableStorage",
"type": "LinkedServiceReference"
},
"annotations": [],
"type": "AzureTable",
"structure": [
{
"name": "PartitionKey",
"type": "String"
},
{
"name": "RowKey",
"type": "String"
},
{
"name": "DeliveryDate",
"type": "String"
}
],
"typeProperties": {
"tableName": "Table7"
}
},
"type": "Microsoft.DataFactory/factories/datasets"
}