-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Import/Export
-
None
-
Not Needed
Problem Description
When a json file contains single document instead of array of documents, import process actually imports values of the keys instead of the value itself. For example, if you have a file with following content:
{ someKey: { val: 1 }, anotherKey: { val: 2 } }
import process will import two documents val: 1 and val: 2.
This is not expected and can not only lead to weird data being added to the database, but also to very confusing error messages if values are not supported document types
Steps to Reproduce
Described above
Expected Results
A single document is imported
Actual Results
Described above
Additional Notes
Having multiple line separated files (as in LDJSON) should also work when importing
- depends on
-
COMPASS-6424 importJSON() import function and tests
- Closed
-
COMPASS-6519 Switch to using importCSV()
- Closed
-
COMPASS-6520 Switch to using importJSON()
- Closed
- is duplicated by
-
COMPASS-4867 Importing JSON with Arrays does not work
- Closed