Not able to retrieve key from CLI, otherwise available through AQL


#1

I am trying to use AQL and CLI to see if I get consistent results doing a “GET” operation.

AQL:

select * from bar.collection where PK=221023161

I get valid result with 1 bin. ( althrough results are truncated, bin stores string array)

CLI:

cli -h server-01 -n bar -s collection -k 221023161

most problematic part is CLI returns “no data retrieved”.

Any help appreciated as I am exploring Aerospike.


#2

CLI is treating the number as a string, try:

cli -h server-01 -n bar -s collection -k 221023161 --integer-key