An aerospike record has a data type associated with it.
Bin("size", Value.get("amod")); - string
Bin("size", Value.get(1)); - int
aql> select * from default where PK = 'key3'
[
{
"size": 1
}
]
aql> select * from default where PK = 'key2'
[
{
"size": "amod"
}
]
I was expecting some error when storing the bin ‘size’ with int as type for one key and string for another. But it works! So bin type works per record basis (this is another difference from the bin being as column of this no sql db). I totally understand the concept of being schema less. Just wanted to confirm this behavior and get more insight.