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

Give mongoimport of CSV/TSVs a way to specify import types

    Details

    • Documentation Changes:
      Needed

      Description

      When using mongoimport to import a CSV, the field "0123" will get imported as the number 123 no matter what, there's no way to get mongoimport to treat it as a String.

      It could be nice to have an option to specify what type each field should be interpreted as. This could also be useful if we start supporting importing types beyond just strings and numbers (dates, for example).

        Issue Links

          Activity

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

          Author:

          {u'username': u'lucasem', u'name': u'Lucas Morales', u'email': u'lucas@lucasem.com'}

          Message: TOOLS-67
          Branch: TOOLS-67
          https://github.com/mongodb/mongo-tools/commit/976a0e3eef2f799df0369d401037e29e7b1673cf

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'lucasem', u'name': u'Lucas Morales', u'email': u'lucas@lucasem.com'} Message: TOOLS-67 Branch: TOOLS-67 https://github.com/mongodb/mongo-tools/commit/976a0e3eef2f799df0369d401037e29e7b1673cf
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'lucasem', u'name': u'Lucas Morales', u'email': u'lucas@lucasem.com'}

          Message: TOOLS-67
          Branch: TOOLS-67
          https://github.com/mongodb/mongo-tools/commit/7e8ffc0964e1c612e72103c722e0ddf4cc04ce15

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'lucasem', u'name': u'Lucas Morales', u'email': u'lucas@lucasem.com'} Message: TOOLS-67 Branch: TOOLS-67 https://github.com/mongodb/mongo-tools/commit/7e8ffc0964e1c612e72103c722e0ddf4cc04ce15
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'lucasem', u'name': u'Lucas Morales', u'email': u'lucas@lucasem.com'}

          Message: TOOLS-67 mongoimport typed fields

          Signed-off-by: Zachary Snow <zach.snow@mongodb.com>
          Branch: master
          https://github.com/mongodb/mongo-tools/commit/22346e99032c23c04b6c7ce4e0ff7206833d8e26

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'lucasem', u'name': u'Lucas Morales', u'email': u'lucas@lucasem.com'} Message: TOOLS-67 mongoimport typed fields Signed-off-by: Zachary Snow <zach.snow@mongodb.com> Branch: master https://github.com/mongodb/mongo-tools/commit/22346e99032c23c04b6c7ce4e0ff7206833d8e26
          Hide
          zach.snow Zach Snow (Inactive) added a comment -

          Documentation ticket is DOCS-8094

          Show
          zach.snow Zach Snow (Inactive) added a comment - Documentation ticket is DOCS-8094
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'lucasem', u'name': u'Lucas Morales', u'email': u'lucas@lucasem.com'}

          Message: TOOLS-67 mongoimport typed fields

          Signed-off-by: Zachary Snow <zach.snow@mongodb.com>
          Branch: v3.3
          https://github.com/mongodb/mongo-tools/commit/22346e99032c23c04b6c7ce4e0ff7206833d8e26

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'lucasem', u'name': u'Lucas Morales', u'email': u'lucas@lucasem.com'} Message: TOOLS-67 mongoimport typed fields Signed-off-by: Zachary Snow <zach.snow@mongodb.com> Branch: v3.3 https://github.com/mongodb/mongo-tools/commit/22346e99032c23c04b6c7ce4e0ff7206833d8e26

            People

            • Assignee:
              zach.snow Zach Snow (Inactive)
              Reporter:
              spencer Spencer T Brody
            • Votes:
              20 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: