Debian Codegraph @

test/command/suite/select/drilldowns/table/slice.expected

raw
1 table_create Tags TABLE_PAT_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create Memos TABLE_HASH_KEY ShortText
4 [[0,0.0,0.0],true]
5 column_create Memos date COLUMN_SCALAR Time
6 [[0,0.0,0.0],true]
7 column_create Memos tag COLUMN_SCALAR Tags
8 [[0,0.0,0.0],true]
9 column_create Tags memos_tag COLUMN_INDEX Memos tag
10 [[0,0.0,0.0],true]
11 load --table Memos
12 [
13 {"_key": "Groonga is fast!", "date": "2016-05-19 12:00:00", "tag": "Groonga"},
14 {"_key": "Mroonga is fast!", "date": "2016-05-19 12:00:01", "tag": "Mroonga"},
15 {"_key": "Groonga sticker!", "date": "2016-05-19 12:00:02", "tag": "Groonga"},
16 {"_key": "Groonga site!", "date": "2016-05-19 12:00:02", "tag": "Groonga"},
17 {"_key": "Rroonga is fast!", "date": "2016-05-19 12:00:03", "tag": "Rroonga"}
18 ]
19 [[0,0.0,0.0],5]
20 select Memos --filter 'date < "2016-05-19 13:00:02"' --slices[groonga].filter 'tag @ "Groonga"' --slices[groonga].sort_keys '_id' --slices[groonga].output_columns '_key, date, tag' --drilldowns[tags].table groonga --drilldowns[tags].keys date
21 [
22 [
23 0,
24 0.0,
25 0.0
26 ],
27 [
28 [
29 [
30 5
31 ],
32 [
33 [
34 "_id",
35 "UInt32"
36 ],
37 [
38 "_key",
39 "ShortText"
40 ],
41 [
42 "date",
43 "Time"
44 ],
45 [
46 "tag",
47 "Tags"
48 ]
49 ],
50 [
51 1,
52 "Groonga is fast!",
53 1463626800.0,
54 "Groonga"
55 ],
56 [
57 2,
58 "Mroonga is fast!",
59 1463626801.0,
60 "Mroonga"
61 ],
62 [
63 3,
64 "Groonga sticker!",
65 1463626802.0,
66 "Groonga"
67 ],
68 [
69 4,
70 "Groonga site!",
71 1463626802.0,
72 "Groonga"
73 ],
74 [
75 5,
76 "Rroonga is fast!",
77 1463626803.0,
78 "Rroonga"
79 ]
80 ],
81 {
82 "groonga": [
83 [
84 3
85 ],
86 [
87 [
88 "_key",
89 "ShortText"
90 ],
91 [
92 "date",
93 "Time"
94 ],
95 [
96 "tag",
97 "Tags"
98 ]
99 ],
100 [
101 "Groonga is fast!",
102 1463626800.0,
103 "Groonga"
104 ],
105 [
106 "Groonga sticker!",
107 1463626802.0,
108 "Groonga"
109 ],
110 [
111 "Groonga site!",
112 1463626802.0,
113 "Groonga"
114 ]
115 ]
116 },
117 {
118 "tags": [
119 [
120 2
121 ],
122 [
123 [
124 "_key",
125 "Time"
126 ],
127 [
128 "_nsubrecs",
129 "Int32"
130 ]
131 ],
132 [
133 1463626800.0,
134 1
135 ],
136 [
137 1463626802.0,
138 2
139 ]
140 ]
141 }
142 ]
143 ]