Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-148

Produce error on duplicate keys at the same level

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      With this input file and mongoimport:

      { "_id" : 1, "_id" : "a" }
      { "_id" : 2, "_id" : "b" }
      { "_id" : 3, "_id" : "c" }
      { "_id" : 4, "_id" : "d" }
      

      Produces this in the database:

      ongoexport -d test -c dups
      connected to: 127.0.0.1
      { "_id" : 1, "_id" : "a" }
      { "_id" : 2, "_id" : "b" }
      { "_id" : 3, "_id" : "c" }
      { "_id" : 4, "_id" : "d" }
      

      Parser should probably catch this, or maybe a unique key contraint on the bson object.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gabriel.russell Gabriel Russell
                Reporter:
                ian.whalen Ian Whalen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: