Details
-
Bug
-
Resolution: Fixed
-
Major
-
6.5.1, 6.6.0, 6.6.1, 6.5.0
-
Untriaged
-
1
-
Yes
Description
Problem
cbimport does not handle MONO_INCR starting at non-default value, the follow error is produce
JSON import failed: unable to parse MONO_INCR start point [100
|
Steps to reproduce
- Create the test file:
people.json
{"id": 1001,"name": "prasad","type":"employee","division": "Couchbase Cloud","manager": false,"salary": 1000.20,"office": "Santa Clara"}
{"id": 1002,"name": "rahul","type":"employee","division": "Couchbase Cloud","manager": true,"salary": 10000.20,"office": null}
{"id": 1003,"name": "jon","type":"employee","division": "Couchbase Cloud","manager": false,"salary": 2000.59}
{"id": 1004,"name": "idris","type":"employee","division": "Couchbase Server","manager": false,"salary": 5000,"office": "New York"}
{"id": 1005,"name": "anil","type":"contractor","division": "Product Management","manager": false,"salary": 12345.67}
- Run cbimport:
/opt/couchbase/bin/cbimport json -c localhost -u Administrator -p password -b people -f lines -d file://people.json --generator-delimiter '@' -g %id%::%name%#@MONO_INCR[100]@
JSON import failed: unable to parse MONO_INCR start point [100
Expectation
For documents to import with keys set correctly:
1001::prasad::100
|
1002::rahul::101
|