alibaba / alibaba/DataX

mongodbreader 可以解析object 类型数据吗

Open
#1,446 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

如:
{
"_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"
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the mongodbreader entry point and its column mapping configuration, focusing on how nested names such as data.writeOffAmount and MongoDB object values are handled. Confirm whether the requested field can be selected with the shown configuration and define done as successfully reading its value from the sample document.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.