[COMPASS-3651] Compass needs an end-of-character to import and to parse correctly a json document Created: 20/May/19  Updated: 27/Oct/23  Resolved: 03/Jun/19

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ivan Grigolon Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Testes in Compass 1.18 on both Windows and Mac.

Importing the following json doc fails to import the document but the UI shows that import is successful:

{"a":"b"}

If you add an end-of-line character like this it works fine:

{"a":"b"}

This also is NOT REPORTING an error while it should:

{"a":"b",abc}



 Comments   
Comment by Massimiliano Marcon [ 03/Jun/19 ]

In the current implementation, Compass imports JSON files line by line, where each line is a valid JSON document. The end of line character is needed so we can stream files and load them into collections line by line. We might change the implementation as part of COMPASS-3013 but for the time being, we expect an EOL for the last line too.

Generated at Wed Feb 07 22:33:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.