DataX mongodbreader 可以解析object 类型数据吗

11dmarpk  于 2022-10-20  发布在  Go
关注(0)|答案(1)|浏览(215)

如:
{
"_id" : ObjectId("625f69a25c79722c3b4610c9"),
"recordId" : NumberLong("617"),
"recordType" : "order",
"recordTypeId" : NumberLong("70"),
"formId" : NumberLong("3000001"),
"delete" : false,
"data" : {
"isUpdateModifyTime" : "1",
"inspection_place" : "1",
"isSampleGroupApproved" : false,
"need_gm_approve" : false,
"opportunityId" : NumberLong("588"),
"writeOffAmount" : Double("0"),
"quote" : NumberLong("8003"),
"inactive" : false,
"isUpdateZone" : "1"
},
"asData" : {

},
"_class" : "com.suiteopen.boot.custom.domain.CustomRecord"

}

我想读取 data.writeOffAmount 该 如何配置 reader

"reader": {
"name": "mongodbreader",
"parameter": {
"address": ["17 :27017"],
"collectionName": "order",
"column": [
{
"name":"recordId",
"type":"string"
},
{ "name":"data.writeOffAmount",
"type":"string"
}
],
"dbName": "dd",
"userName": "dd t",
"userPassword": "a af"
}

相关问题