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

          For Gerrit Dashboard: MB-27676
          # Subject Branch Project Status CR V

          Activity

            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%

            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?
            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.

            Field reference syntax should match

            carlos.gonzalez Carlos Gonzalez Betancort (Inactive) added a comment - Field reference syntax should match

            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

            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)

            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