Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5525

Latest Compass Release Export Does Not Preserve Field Ordering in CSV

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.26.1, 1.30.1
    • Component/s: Import/Export
    • Labels:
      None
    • 3

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            valentina.jukic@mongodb.com Valentina Jukic
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: