【mongoReader】When I read mongodb data, Fields with null values were discarded, resulting in inconsistent field order
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 5.7k
- PR merge metrics
- No merged PRs in 30d
Description
When I read mongodb data, Fields with null values were discarded, resulting in inconsistent field order
here is the mongo data

the follow is the json file:

You can see the index 4【PackageCode】is null。 The error log does not report this field

Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the mongoReader entry point and reproduce the issue using the MongoDB data and JSON shown in the report. Trace how null-valued fields are handled and compare the field order and error log with the expected records. Done means the null field is retained and field ordering remains consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mongodb
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100