| 1 |
#$GRN_ERROR_CANCEL_INTERVAL=1 |
| 2 |
|
| 3 |
table_create Items TABLE_HASH_KEY ShortText |
| 4 |
column_create Items price COLUMN_SCALAR UInt32 |
| 5 |
|
| 6 |
table_create Prices TABLE_PAT_KEY UInt32 |
| 7 |
column_create Prices item_index COLUMN_INDEX Items price |
| 8 |
|
| 9 |
load --table Items |
| 10 |
[ |
| 11 |
{"_key": "Book", "price": 1000}, |
| 12 |
{"_key": "Note", "price": 1000}, |
| 13 |
{"_key": "Box", "price": 520}, |
| 14 |
{"_key": "Pen", "price": 510}, |
| 15 |
{"_key": "Food", "price": 500}, |
| 16 |
{"_key": "Drink", "price": 300} |
| 17 |
] |
| 18 |
|
| 19 |
select Items \ |
| 20 |
--filter 'true' \ |
| 21 |
--post_filter 'price >= 510' \ |
| 22 |
--sort_keys _id |