我正在尝试创建具有参数化文件名和架构的通用CSV数据集,以便能够在包含文件列表的foreach循环中使用它,并且在发布时遇到了一些麻烦,而且我不知道做错了或框架文档不正确。
根据documentation,架构描述为:
定义数据集物理类型架构的列。类型:数组(或带有resultType数组的Expression),itemType:DatasetSchemaDataElement。
我有一个数据集,该数据集的参数名为Schema,类型为Array,“ schema”设置为返回此参数的表达式:
{
"name": "GenericCSVFile",
"properties": {
"linkedServiceName": {
"referenceName": "LinkedServiceReferenceName",
"type": "LinkedServiceReference"
},
"parameters": {
"Schema": {
"type": "array"
},
"TableName": {
"type": "string"
},
"TableSchema": {
"type": "string"
}
},
"folder": {
"name": "Folder"
},
"type": "DelimitedText",
"typeProperties": {
"location": {
"type": "AzureDataLakeStoreLocation",
"fileName": {
"value": "@concat(dataset().TableSchema,'.',dataset().TableName,'.csv')",
"type": "Expression"
},
"folderPath": "Path"
},
"columnDelimiter": ",",
"escapeChar": "\\",
"firstRowAsHeader": true,
"quoteChar": "\""
},
"schema": {
"value": "@dataset().Schema",
"type": "Expression"
}
},
"type": "Microsoft.DataFactory/factories/datasets"
}
但是,当我发布时,出现以下错误:
Error code: BadRequest
Inner error code: InvalidPropertyValue
Message: Invalid value for property 'schema'
我做错什么了吗?文档错了吗?