[英]Azure data factory copy activity dynamic mapping error : Syntax error: Missing comma between arguments
I am trying to convert json to csv and want to use dynamic mapping instead of manual mapping.我正在尝试将 json 转换为 csv 并希望使用动态映射而不是手动映射。 I dynamic mapping I see an error message Syntax error: Missing comma between arguments我动态映射我看到一条错误消息 Syntax error: Missing comma between arguments
below is the json iam trying to add in dynamic content下面是我试图添加动态内容的 json
{
"type": "TabularTranslator",
"mappings": [
{
"source": {
"path": "$['longitude']"
},
"sink": {
"name": "longitude",
"type": "String"
}
},
{
"source": {
"path": "$['City']"
},
"sink": {
"name": "City",
"type": "String"
}
},
{
"source": {
"path": "$['temeprature']"
},
"sink": {
"name": "temeprature",
"type": "String"
}
},
{
"source": {
"path": "$['max']"
},
"sink": {
"name": "max",
"type": "String"
}
},
{
"source": {
"path": "$['speed']"
},
"sink": {
"name": "speed",
"type": "String"
}
}
]
}
See error message in this screenshot在此屏幕截图中查看错误消息
The error is occurring because the incorrect format used to specify dynamic mapping.发生错误是因为用于指定动态映射的格式不正确。 The following is a demonstration on the same.以下是关于相同的演示。
Syntax error: Missing comma between arguments
.当我使用用于动态映射列的 JSON 语法时,我遇到了同样的错误,即Syntax error: Missing comma between arguments
。"name": "longitude"
.由于我们将源列 (json) 映射到目标 (csv),我们可以将映射中的源指定为"name": "longitude"
。 I considered only longitude column for this demonstration and the following is the JSON that I used for mapping:我只考虑了这个演示的经度列,以下是我用于映射的 JSON:@json('{
"type": "TabularTranslator",
"mappings": [
{
"source": {
"name": "longitude"
},
"sink": {
"name": "longitude",
"type": "String"
}
},
{
"source": {
"name": "city"
},
"sink": {
"name": "city",
"type": "String"
}
}
]
}'
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.