[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:
If you add an end-of-line character like this it works fine:
This also is NOT REPORTING an error while it should:
|
| 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. |