[COMPASS-5525] Latest Compass Release Export Does Not Preserve Field Ordering in CSV Created: 19/Feb/22  Updated: 10/Jan/24

Status: Open
Project: Compass
Component/s: Import/Export
Affects Version/s: 1.26.1, 1.30.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Valentina Jukic Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image (7).png    
Story Points: 3

 Description   

Problem Statement/Rationale

Customer noted that when exporting to CSV the export columns are sorted alphabetically rather than preserving the order in the latest release. Customer then downgraded to a previous version and it seems that behaviour has persisted in the previous version.

Steps to Reproduce

Export to CSV to confirm that the fields are in alphabetic order

Expected Results

CSV Export should maintain fields in the order they're configured

Actual Results

Fields are in alphabetic order

Additional Notes

As per customer:

Here is one more piece of info - JSON export preserves the order, as before, but CSV doesn't
In any case, I just wrote a utility that exports a collection to CSV correctly (and without the error in string export of the 1.2x versions of Compass) - that's how easy it should be for someone to fix that bug



 Comments   
Comment by Claudio YaƱez [ 12/May/23 ]

I can confirm this issue is still present in MongoDB Compass v1.31.2

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