Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-81

mongoexport --csv exports oddly formatted floats

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: Legacy C++ Implementation
    • Fix Version/s: 2.8.0-rc0
    • Component/s: mongoexport
    • Labels:

      Description

      The CSV format of mongoexport seems to export floats like -0.00002 as "-2e-05.0", a format which is not a valid literal in C, Java, Python, JSON, bc(1), printf(1), and many other tools. This makes it difficult to read in mongo exports in those tools.

      The JSON export outputs the more common format "-2e-05".

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jdanger John Danger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: