aerospike / aerospike-loader

Aerospike Data Loader
42 stars 37 forks source link

How to set column_position/column_name when header_exist is false. #9

Closed zhangnew closed 5 years ago

zhangnew commented 7 years ago

I want use the first column as the key, but when I set this in the Configuration file:

            "key" : {
                "column_position" : 1,
                "type" : "string"
            },

run_loader then I get this error:

java.lang.Exception: Column position defined for data file without header !!
kitex commented 6 years ago

if(dsvHasHeader()) { updateColumnInfoForMappingDefs(columnNames); }

instead of updateColumnInfoForMappingDefs(columnNames);

It would work. I changed the code and checked it.

arrowplum commented 5 years ago

We have fixed this problem. A fix will be included in the next release.