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

ignoreBlanks doesn't work on some fields

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0-rc5
    • 2.8.0-rc4
    • mongoimport
    • None

    Description

      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
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: