aql> select * from test.newtest
±------±----+
| a | b |
±------±----+
| “abc” | 123 |
±------±----+
1 row in set (0.605 secs)
aql> select * from test.new test
Un-supported command format with token - ‘test’
Type " aql --help " from console or simply “help” from within the aql-prompt.
aql> select * from test.‘new test’
±------±----+
| a | b |
±------±----+
| “abc” | 123 |
±------±----+
1 row in set (0.464 secs)
I created my set dynamically when I inserted data into the set. It works, but only because the single-quotes are part of the set name: “‘new test’” .
Do you have your set defined in aerospike.conf? Would you send that portion of the config file here? I would like to test with that, if possible.
we inserted the data into the set through the APIs by making use of the C client libraries. I see that in the example above the space between ‘new’ and ‘test’ is magically removed? I guess the difference is as follows (I’ve replicated your insert example:
The first line is created through our code by using the C API, the second one is created by executing the example through AQL. Like you said, it works because the single quotes are part of the set name. It would be good if AQL supported escaping of characters (like e.g. the bash shell does).
Normally I have seen AQL supporting single quotes and returning the results correctly but if you use double quotes it throws error. Even for a simple query on pk wiould fail if we use:
63 characters max for set name. Set name is stored on SSD with each record. So it takes up valuable space on the SSD. Also SSDs read data in 128 byte blocks - so if your total record size is 129 bytes including all overhead, you will occupy 256 bytes on the SSD. Keeping set names small will help you maximize SSD capacity utilization. Haven’t seen explicit description on allowable characters - best practice keep it alpha-numeric without special characters or dots or spaces. I have seen discussion that starting set name with an underscore may also not work.
For understanding record sizing, see http://www.aerospike.com/docs/operations/plan/capacity