{"action":"closed","issue":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/2133","repository_url":"https://api.github.com/repos/arangodb/arangodb","labels_url":"https://api.github.com/repos/arangodb/arangodb/issues/2133/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/2133/comments","events_url":"https://api.github.com/repos/arangodb/arangodb/issues/2133/events","html_url":"https://github.com/arangodb/arangodb/issues/2133","id":185911932,"number":2133,"title":"arangoimp - persistent index - Expecting type Array","user":{"login":"schroedingerdb","id":5195686,"avatar_url":"https://avatars.githubusercontent.com/u/5195686?v=3","gravatar_id":"","url":"https://api.github.com/users/schroedingerdb","html_url":"https://github.com/schroedingerdb","followers_url":"https://api.github.com/users/schroedingerdb/followers","following_url":"https://api.github.com/users/schroedingerdb/following{/other_user}","gists_url":"https://api.github.com/users/schroedingerdb/gists{/gist_id}","starred_url":"https://api.github.com/users/schroedingerdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schroedingerdb/subscriptions","organizations_url":"https://api.github.com/users/schroedingerdb/orgs","repos_url":"https://api.github.com/users/schroedingerdb/repos","events_url":"https://api.github.com/users/schroedingerdb/events{/privacy}","received_events_url":"https://api.github.com/users/schroedingerdb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-28T12:32:27Z","updated_at":"2016-10-28T13:26:17Z","closed_at":"2016-10-28T13:26:17Z","body":"## my environment running ArangoDB\r\nI'm using the latest ArangoDB of the respective release series:\r\n- [x] 3.0\r\n\r\nOn this operating system:\r\n- [ ] DCOS on\r\n  - [x] own infrastructure\r\n- [ ] Linux \r\n  - [x] Debian .deb\r\n\r\nI'm issuing AQL via:\r\n- [x] arangosh\r\n\r\nSetup:\r\n- 3 x Agent\r\n- 3 x Database\r\n- 1 x Coordinator\r\n\r\n\r\n\r\n## setup collection document\r\n```\r\n$arangosh --server.endpoint tcp://localhost-1:8530 --server.database \"test\" --server.username root\r\n\r\nlocalhost-1:8530@test-db> db._create('test_bug', { waitForSync : true, numberOfShards: 6, shardKeys: [\"_key\"] });\r\n[ArangoCollection 705955592, \"test_bug\" (type document, status loaded)]\r\n\r\nlocalhost-1:8530@test-db> db.test_bug.ensureIndex({ type: \"persistent\", fields: [ \"id-2\", \"value\" ], sparse: false });\r\n{ \r\n  \"fields\" : [ \r\n    \"id-2\", \r\n    \"value\" \r\n  ], \r\n  \"id\" : \"test_bug/705955601\", \r\n  \"sparse\" : false, \r\n  \"type\" : \"persistent\", \r\n  \"unique\" : false, \r\n  \"isNewlyCreated\" : true, \r\n  \"code\" : 201 \r\n}\r\n```\r\n\r\n## test csv\r\n```\r\n$cat test.csv \r\nid-1,id-2,value\r\n1,1,3\r\n1,2,3\r\n1,3,3\r\n```\r\n\r\n## import data & error\r\n```\r\n$arangoimp --file /mnt/data01/csv/test.csv --type csv --collection test_bug --server.database test  --server.endpoint tcp://localhost-1:8530\r\nPlease specify a password: \r\nConnected to ArangoDB 'http+tcp://localhost-1:8530', version 3.0.10, database: 'test', username: 'root'\r\n----------------------------------------\r\ndatabase:               test\r\ncollection:             test_bug\r\ncreate:                 no\r\nsource filename:        /mnt/data01/csv/test.csv\r\nfile type:              csv\r\nquote:                  \"\r\nseparator:              \r\nconnect timeout:        5\r\nrequest timeout:        1200\r\n----------------------------------------\r\nStarting CSV import...\r\n\r\n2016-10-28T12:24:22Z [3938] ERROR error message:    Expecting type Array (exception location: /usr/src/packages/BUILD/arangod/HttpServer/HttpHandler.cpp:157). Please report this error to arangodb.com\r\n```\r\n\r\n## This error not occur when\r\n\r\n(1) I delete the persistent index\r\n(2) Or I have only 2 rows in my csv\r\n\r\n```\r\n$cat test.csv \r\nid-1,id-2,value\r\n1,1,3\r\n1,2,3\r\n\r\n$arangoimp --file /mnt/data01/csv/test.csv --type csv --collection test_bug --server.database test --server.endpoint tcp://localhost-1:8530\r\nPlease specify a password: \r\nConnected to ArangoDB 'http+tcp://localhost-1:8530', version 3.0.10, database: 'test', username: 'root'\r\n----------------------------------------\r\ndatabase:               test\r\ncollection:             test_bug\r\ncreate:                 no\r\nsource filename:        /mnt/data01/csv/test.csv\r\nfile type:              csv\r\nquote:                  \"\r\nseparator:              \r\nconnect timeout:        5\r\nrequest timeout:        1200\r\n----------------------------------------\r\nStarting CSV import...\r\n\r\ncreated:          2\r\nwarnings/errors:  0\r\nupdated/replaced: 0\r\nignored:          0\r\nlines read:       3\r\n```\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"schroedingerdb"}}