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

Import thinks the m in field [m] is an array index

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.39.4
    • None
    • Import/Export
    • None
    • OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Not Needed

    Description

      Suppose you have a collection with one document like:

      { field: ['foo', 'bar'] }
      

      When exported, this will result in the csv file:

      field[0],field[1]
      foo,bar
      

      The code that imports that again is too loose, so it thinks the following are also array fields:

      Length [m],Diameter [m]
      1,2
      

      Attachments

        Activity

          People

            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: