Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-27676

cbimport: should add flag of fields to ignore

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.5.0
    • tools

    Description

      I think that should add a flag for keys we want to ignore in the import process.
      For example:
      I've exported a file from bucket X to a json file, using the include-key flag.
       
      ./cbexport json -c localhost -u Administrator -p password -b default -f lines -o /home/default.json -t 4 --include-key docKey
       
      Now when I import it back - I don't want to have an extra field in the document named docKey. I wish to use it only of generating the doc ID but not more.
       
      It also useful when interacting with external systems which embed the key into the data file. 

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            roi.katz Roi Katz created issue -
            roi.katz Roi Katz added a comment -

            forgot to add the import command

            ./cbimport json -c ubuntu -u Administrator -p password -b targetBucket -d file:///home/people.json -f lines -g %docKey%

            roi.katz Roi Katz added a comment - forgot to add the import command ./cbimport json -c ubuntu -u Administrator -p password -b targetBucket -d file:///home/people.json -f lines -g %docKey%
            pvarley Patrick Varley made changes -
            Field Original Value New Value
            Component/s tools [ 10223 ]
            mikew Mike Wiederhold [X] (Inactive) made changes -
            Issue Type Task [ 3 ] Improvement [ 4 ]
            mikew Mike Wiederhold [X] (Inactive) made changes -
            Fix Version/s Mad-Hatter [ 15037 ]
            mikew Mike Wiederhold [X] (Inactive) made changes -
            Assignee Patrick Varley [ pvarley ]

            Roi Katz Is this related to a prospect or customer?

            pvarley Patrick Varley added a comment - Roi Katz Is this related to a prospect or customer?
            chaitra.ramarao Chaitra Ramarao (Inactive) made changes -
            Fix Version/s Alice [ 15048 ]
            Fix Version/s Mad-Hatter [ 15037 ]
            roi.katz Roi Katz added a comment -

            Hi yes, I may need to add tracking ticket.

            roi.katz Roi Katz added a comment - Hi yes, I may need to add tracking ticket.
            mikew Mike Wiederhold [X] (Inactive) made changes -
            Fix Version/s Mad-Hatter [ 15037 ]
            Fix Version/s Alice [ 15048 ]
            roi.katz Roi Katz made changes -
            Link This issue blocks CBSE-5548 [ CBSE-5548 ]
            pvarley Patrick Varley made changes -
            Assignee Patrick Varley [ pvarley ] Carlos Gonzalez Betancort [ carlos.gonzalez ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Summary cbimport: should add flag of keys to ignore cbimport: should add flag of fields to ignore
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Link This issue relates to MB-29092 [ MB-29092 ]

            Field reference syntax should match

            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) added a comment - Field reference syntax should match
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Actual Start 2018-10-24 05:02 (issue has been started)

            Build couchbase-server-6.5.0-1534 contains backup commit 6467b37 with commit message:
            MB-27676 Add ignore-field flag to cbimport

            build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1534 contains backup commit 6467b37 with commit message: MB-27676 Add ignore-field flag to cbimport
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Actual End 2018-11-02 07:42 (issue has been resolved)
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Sprint Status Current Sprint [ 10027 ]
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Resolved [ 5 ]
            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
            Actual End 2018-11-02 07:42 2018-11-02 08:39 (issue has been resolved)
            pvarley Patrick Varley made changes -
            Link This issue relates to MB-29468 [ MB-29468 ]
            pvarley Patrick Varley made changes -
            Link This issue blocks CBSE-6327 [ CBSE-6327 ]
            pvarley Patrick Varley made changes -
            Link This issue relates to MB-29468 [ MB-29468 ]
            pvarley Patrick Varley made changes -
            Link This issue is duplicated by MB-29468 [ MB-29468 ]
            pvarley Patrick Varley made changes -
            Link This issue is duplicated by MB-29468 [ MB-29468 ]
            pvarley Patrick Varley made changes -
            Link This issue relates to MB-29468 [ MB-29468 ]
            ritam.sharma Ritam Sharma made changes -
            Assignee Carlos Gonzalez Betancort [ carlos.gonzalez ] Thuan Nguyen [ thuan ]
            ritam.sharma Ritam Sharma made changes -
            Labels cbimport cbimport needs-qe

            Verified in 6.5.0-4676 - imported ignoring phone field from beer-sample (attaching screenshots)

            arunkumar Arunkumar Senthilnathan (Inactive) added a comment - Verified in 6.5.0-4676 - imported ignoring phone field from beer-sample (attaching screenshots)
            arunkumar Arunkumar Senthilnathan (Inactive) made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              thuan Thuan Nguyen
              roi.katz Roi Katz
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty