Append data to bin (type : list) for same key


#1

I am trying to load data into aerospike using aerospike-loader(https://github.com/aerospike/aerospike-loader)

Is there any way to append the data to the bin if key already exists

Eg data.tsv

set:userid:segment
set1:1b35d70d3:abc,def
set1:1b35d70d3:pqr,mno

template.json

{
  "version" : "1.0",
  "input_type": "csv",
  "csv_style": {
    "delimiter": ":",
    "n_columns_datafile": 3,
    "ignore_first_line": true
  },
  "key": {
    "column_name": "userid",
    "type": "string"
  },
  "set": {
    "column_name": "set",
    "type" : "string"
  },
  "binlist": [
    {
      "name": "segment",
      "value": {
        "column_name": "segment",
        "type": "list"
      }
    }
  ]
}

command

./run_loader -h <hostname> -n <namespave> -wa update -c template.json data.tsv

The output I am getting is

set1:1b35d70d3:pqr,mno

Output which I want

set1:1b35d70d3:abc,def,pqr,mno

Please Help


#2

For support on a specific tool you really should contact the owner… that being said, if you have the source and can locate a specific issue in the cod, or have a specific question, I’d be happy to try and help.