| 1 |
table_create Ages TABLE_PAT_KEY Int8 |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create Users TABLE_HASH_KEY ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Users age COLUMN_SCALAR Ages |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Ages users_age COLUMN_INDEX Users age |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Users |
| 10 |
[ |
| 11 |
{"_key": "Alice", "age": 29}, |
| 12 |
{"_key": "Bob", "age": 30}, |
| 13 |
{"_key": "Carlos", "age": 28} |
| 14 |
] |
| 15 |
[[0,0.0,0.0],3] |
| 16 |
log_level --level info |
| 17 |
[[0,0.0,0.0],true] |
| 18 |
select Users --filter 'age._key <= 29' --output_columns '_key, age, _score' |
| 19 |
[ |
| 20 |
[ |
| 21 |
0, |
| 22 |
0.0, |
| 23 |
0.0 |
| 24 |
], |
| 25 |
[ |
| 26 |
[ |
| 27 |
[ |
| 28 |
2 |
| 29 |
], |
| 30 |
[ |
| 31 |
[ |
| 32 |
"_key", |
| 33 |
"ShortText" |
| 34 |
], |
| 35 |
[ |
| 36 |
"age", |
| 37 |
"Ages" |
| 38 |
], |
| 39 |
[ |
| 40 |
"_score", |
| 41 |
"Int32" |
| 42 |
] |
| 43 |
], |
| 44 |
[ |
| 45 |
"Carlos", |
| 46 |
28, |
| 47 |
1 |
| 48 |
], |
| 49 |
[ |
| 50 |
"Alice", |
| 51 |
29, |
| 52 |
1 |
| 53 |
] |
| 54 |
] |
| 55 |
] |
| 56 |
] |
| 57 |
#|i| [table-selector][select][index][range][key] <Ages> |
| 58 |
#|i| [accessor][resolve][data-column][index] <Ages.users_age> |