Debian Codegraph @

test/command/suite/sharding/logical_select/cache/match_columns.expected

raw
1 plugin_register sharding
2 [[0,0.0,0.0],true]
3 table_create Memos_20170416 TABLE_NO_KEY
4 [[0,0.0,0.0],true]
5 column_create Memos_20170416 timestamp COLUMN_SCALAR Time
6 [[0,0.0,0.0],true]
7 column_create Memos_20170416 title COLUMN_SCALAR Text
8 [[0,0.0,0.0],true]
9 column_create Memos_20170416 content COLUMN_SCALAR Text
10 [[0,0.0,0.0],true]
11 table_create Memos_20170417 TABLE_NO_KEY
12 [[0,0.0,0.0],true]
13 column_create Memos_20170417 timestamp COLUMN_SCALAR Time
14 [[0,0.0,0.0],true]
15 column_create Memos_20170417 title COLUMN_SCALAR Text
16 [[0,0.0,0.0],true]
17 column_create Memos_20170417 content COLUMN_SCALAR Text
18 [[0,0.0,0.0],true]
19 load --table Memos_20170416
20 [
21 {"timestamp": "2017/04/16 10:00:00", "title": "Easy PGroonga", "content": "PGroonga is fast and easy to use."},
22 {"timestamp": "2017/04/16 11:00:00", "title": "Easy Rroonga", "content": "Rroonga is fast and easy to use."}
23 ]
24 [[0,0.0,0.0],2]
25 load --table Memos_20170417
26 [
27 {"timestamp": "2017/04/17 00:00:00", "title": "Easy Groonga", "content": "Groonga is fast."},
28 {"timestamp": "2017/04/17 01:00:00", "title": "Easy Mroonga", "content": "Mroonga is fast and easy to use."}
29 ]
30 [[0,0.0,0.0],2]
31 logical_select Memos --shard_key timestamp --query easy --match_columns 'title'
32 [
33 [
34 0,
35 0.0,
36 0.0
37 ],
38 [
39 [
40 [
41 4
42 ],
43 [
44 [
45 "_id",
46 "UInt32"
47 ],
48 [
49 "content",
50 "Text"
51 ],
52 [
53 "timestamp",
54 "Time"
55 ],
56 [
57 "title",
58 "Text"
59 ]
60 ],
61 [
62 1,
63 "PGroonga is fast and easy to use.",
64 1492304400.0,
65 "Easy PGroonga"
66 ],
67 [
68 2,
69 "Rroonga is fast and easy to use.",
70 1492308000.0,
71 "Easy Rroonga"
72 ],
73 [
74 1,
75 "Groonga is fast.",
76 1492354800.0,
77 "Easy Groonga"
78 ],
79 [
80 2,
81 "Mroonga is fast and easy to use.",
82 1492358400.0,
83 "Easy Mroonga"
84 ]
85 ]
86 ]
87 ]
88 logical_select Memos --shard_key timestamp --query easy --match_columns 'content'
89 [
90 [
91 0,
92 0.0,
93 0.0
94 ],
95 [
96 [
97 [
98 3
99 ],
100 [
101 [
102 "_id",
103 "UInt32"
104 ],
105 [
106 "content",
107 "Text"
108 ],
109 [
110 "timestamp",
111 "Time"
112 ],
113 [
114 "title",
115 "Text"
116 ]
117 ],
118 [
119 1,
120 "PGroonga is fast and easy to use.",
121 1492304400.0,
122 "Easy PGroonga"
123 ],
124 [
125 2,
126 "Rroonga is fast and easy to use.",
127 1492308000.0,
128 "Easy Rroonga"
129 ],
130 [
131 2,
132 "Mroonga is fast and easy to use.",
133 1492358400.0,
134 "Easy Mroonga"
135 ]
136 ]
137 ]
138 ]