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

ignoreBlanks doesn't work on some fields

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc5
    • Affects Version/s: 2.8.0-rc4
    • Component/s: mongoimport
    • None

      e.g. run mongoimport on a csv document containing:
      mongoimport --type csv --headerline --ignoreBlanks --drop

      a,b,c
      ,,4

      you get

      {
        "_id": ObjectId("54aa95293069cd4edd382109"),
        "b": "",
        "c": 4
      }

      instead of

      {
        "_id": ObjectId("54aa95293069cd4edd382109"),
        "c": 4
      }

            Assignee:
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Reporter:
            adinoyi.omuya@mongodb.com Adinoyi Omuya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: