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

dotted field names should produce nested objects in mongoimport

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc0
    • Component/s: mongoimport
    • Labels:
      None
    • Documentation Changes:
      Completed
    • Epic Link:

      Description

      test file attached

        Issue Links

          Activity

          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'deafgoat', u'name': u'Wisdom Omuya', u'email': u'deafgoat@gmail.com'}

          Message: TOOLS-64/TOOLS-70: add TSV support tests

          Former-commit-id: c031252f537f6555f7a9a539af61906a02051223
          Branch: master
          https://github.com/mongodb/mongo-tools/commit/0eb1631256b8a58c17ee2e769d0fd1e5ac347c61

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'deafgoat', u'name': u'Wisdom Omuya', u'email': u'deafgoat@gmail.com'} Message: TOOLS-64 / TOOLS-70 : add TSV support tests Former-commit-id: c031252f537f6555f7a9a539af61906a02051223 Branch: master https://github.com/mongodb/mongo-tools/commit/0eb1631256b8a58c17ee2e769d0fd1e5ac347c61
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'deafgoat', u'name': u'Wisdom Omuya', u'email': u'deafgoat@gmail.com'}

          Message: TOOLS-64/TOOLS-70: code review updates

          Former-commit-id: 7071f24d047714ecccdf07727ec277516d076ed6
          Branch: master
          https://github.com/mongodb/mongo-tools/commit/ad2f74587d026d3becd71b1964782fe4906dc1d5

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'deafgoat', u'name': u'Wisdom Omuya', u'email': u'deafgoat@gmail.com'} Message: TOOLS-64 / TOOLS-70 : code review updates Former-commit-id: 7071f24d047714ecccdf07727ec277516d076ed6 Branch: master https://github.com/mongodb/mongo-tools/commit/ad2f74587d026d3becd71b1964782fe4906dc1d5
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'deafgoat', u'name': u'Wisdom Omuya', u'email': u'deafgoat@gmail.com'}

          Message: TOOLS-64/TOOLS-70: clean up tests

          Former-commit-id: 863b79a86e8730585f3e572f723418d66f4eb46d
          Branch: master
          https://github.com/mongodb/mongo-tools/commit/9268f4f6fec70d2025003ba364635ad1b8c28f86

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'deafgoat', u'name': u'Wisdom Omuya', u'email': u'deafgoat@gmail.com'} Message: TOOLS-64 / TOOLS-70 : clean up tests Former-commit-id: 863b79a86e8730585f3e572f723418d66f4eb46d Branch: master https://github.com/mongodb/mongo-tools/commit/9268f4f6fec70d2025003ba364635ad1b8c28f86
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'deafgoat', u'name': u'Wisdom Omuya', u'email': u'deafgoat@gmail.com'}

          Message: TOOLS-64/TOOLS-70: fix validation check

          Former-commit-id: deb3812f5b8ff8faa9d067443b951b0c64470793
          Branch: master
          https://github.com/mongodb/mongo-tools/commit/0cc08c83a6d45279a57cfb14b62a2035f5226c81

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'deafgoat', u'name': u'Wisdom Omuya', u'email': u'deafgoat@gmail.com'} Message: TOOLS-64 / TOOLS-70 : fix validation check Former-commit-id: deb3812f5b8ff8faa9d067443b951b0c64470793 Branch: master https://github.com/mongodb/mongo-tools/commit/0cc08c83a6d45279a57cfb14b62a2035f5226c81
          Hide
          sumit.sharma@wns.com Sumit Sharma added a comment -

          This fix does not support Array type. I have exported my collection with hashtags as Array type and it has the header line as below

          bei.hashtags.1.tag bei.hashtags.2.wt bei.hashtags.2.tag bei.hashtags.3.wt bei.hashtags.3.tag bei.hashtags.4.wt

          now, when I am importing the same I am getting this as Object rather as as Array with below structure

          "hashtags" : {
          "0" :

          { "wt" : NumberInt(5), "tag" : "avgeek" }

          ,
          "1" :

          { "wt" : NumberInt(5), "tag" : "FWWYN" }

          ,
          "2" :

          { "wt" : NumberInt(1), "tag" : "gethereearly" }

          ,
          "3" :

          { "wt" : "", "tag" : "" }

          This index values are unnecessary and mongo import is not considering this number as Array index location.

          Thanks
          Sumit

          Show
          sumit.sharma@wns.com Sumit Sharma added a comment - This fix does not support Array type. I have exported my collection with hashtags as Array type and it has the header line as below bei.hashtags.1.tag bei.hashtags.2.wt bei.hashtags.2.tag bei.hashtags.3.wt bei.hashtags.3.tag bei.hashtags.4.wt now, when I am importing the same I am getting this as Object rather as as Array with below structure "hashtags" : { "0" : { "wt" : NumberInt(5), "tag" : "avgeek" } , "1" : { "wt" : NumberInt(5), "tag" : "FWWYN" } , "2" : { "wt" : NumberInt(1), "tag" : "gethereearly" } , "3" : { "wt" : "", "tag" : "" } This index values are unnecessary and mongo import is not considering this number as Array index location. Thanks Sumit

            People

            • Assignee:
              adinoyi.omuya Wisdom Omuya
              Reporter:
              ian.whalen Ian Whalen
            • Votes:
              5 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: