Debian Codegraph @

test/command/suite/sharding/logical_select/cache/query.test

raw
1 #@on-error omit
2 plugin_register sharding
3 #@on-error default
4
5 table_create Memos_20170416 TABLE_NO_KEY
6 column_create Memos_20170416 timestamp COLUMN_SCALAR Time
7 column_create Memos_20170416 content COLUMN_SCALAR Text
8
9 table_create Memos_20170417 TABLE_NO_KEY
10 column_create Memos_20170417 timestamp COLUMN_SCALAR Time
11 column_create Memos_20170417 content COLUMN_SCALAR Text
12
13 load --table Memos_20170416
14 [
15 {"timestamp": "2017/04/16 00:00:00", "content": "Groonga is fast."},
16 {"timestamp": "2017/04/16 01:00:00", "content": "Mroonga is fast and easy to use."}
17 ]
18
19 load --table Memos_20170417
20 [
21 {"timestamp": "2017/04/17 10:00:00", "content": "PGroonga is fast and easy to use."},
22 {"timestamp": "2017/04/17 11:00:00", "content": "Rroonga is fast and easy to use."}
23 ]
24
25 logical_select Memos \
26 --shard_key timestamp \
27 --query 'content:@easy'
28
29 logical_select Memos \
30 --shard_key timestamp \
31 --query 'content:@groonga'