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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.39.4
    • Affects Version/s: None
    • Component/s: Import/Export
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Not Needed

      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
      

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

              Created:
              Updated:
              Resolved: