Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3690

don't count csv headerline when reporting objects imported

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: None
    • Component/s: Tools
    • None
    • ALL

      For the same file with 1 header line and 3 data fields:

      $ ./mongoimport --type csv --headerline -c test -d test --drop /tmp/test.csv
      connected to: 127.0.0.1
      dropping: test.test
      imported 4 objects

      $ ./mongoimport --type csv -c test -d test --drop /tmp/test.csv --fields foo,bar,baz,qux
      connected to: 127.0.0.1
      dropping: test.test
      imported 4 objects

            Assignee:
            brandon Brandon Diamond
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: