Debian Codegraph @

test/command/suite/select/drilldown/labeled/table/two.expected

raw
1 table_create Categories TABLE_PAT_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Categories sub_category COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 table_create Tags TABLE_PAT_KEY ShortText
6 [[0,0.0,0.0],true]
7 column_create Tags category COLUMN_SCALAR Categories
8 [[0,0.0,0.0],true]
9 table_create Memos TABLE_HASH_KEY ShortText
10 [[0,0.0,0.0],true]
11 column_create Memos tag COLUMN_SCALAR Tags
12 [[0,0.0,0.0],true]
13 load --table Memos
14 [
15 {"_key": "Groonga is fast!", "tag": "Groonga"},
16 {"_key": "Mroonga is fast!", "tag": "Mroonga"},
17 {"_key": "Groonga sticker!", "tag": "Groonga"},
18 {"_key": "Rroonga is fast!", "tag": "Rroonga"}
19 ]
20 [[0,0.0,0.0],4]
21 load --table Tags
22 [
23 {"_key": "Groonga", "category": "C/C++"},
24 {"_key": "Mroonga", "category": "C/C++"},
25 {"_key": "Rroonga", "category": "Ruby"}
26 ]
27 [[0,0.0,0.0],3]
28 load --table Categories
29 [
30 {"_key": "C/C++", "sub_category": "Programming language"},
31 {"_key": "Ruby", "sub_category": "Programming language"}
32 ]
33 [[0,0.0,0.0],2]
34 select Memos --drilldown[category].table tag --drilldown[category].keys category --drilldown[category].output_columns _key,_nsubrecs,sub_category --drilldown[sub_category].table category --drilldown[sub_category].keys sub_category --drilldown[sub_category].output_columns _key,_nsubrecs --drilldown[tag].keys tag --drilldown[tag].output_columns _key,_nsubrecs,category
35 [
36 [
37 0,
38 0.0,
39 0.0
40 ],
41 [
42 [
43 [
44 4
45 ],
46 [
47 [
48 "_id",
49 "UInt32"
50 ],
51 [
52 "_key",
53 "ShortText"
54 ],
55 [
56 "tag",
57 "Tags"
58 ]
59 ],
60 [
61 1,
62 "Groonga is fast!",
63 "Groonga"
64 ],
65 [
66 2,
67 "Mroonga is fast!",
68 "Mroonga"
69 ],
70 [
71 3,
72 "Groonga sticker!",
73 "Groonga"
74 ],
75 [
76 4,
77 "Rroonga is fast!",
78 "Rroonga"
79 ]
80 ],
81 {
82 "category": [
83 [
84 2
85 ],
86 [
87 [
88 "_key",
89 "ShortText"
90 ],
91 [
92 "_nsubrecs",
93 "Int32"
94 ],
95 [
96 "sub_category",
97 "ShortText"
98 ]
99 ],
100 [
101 "C/C++",
102 2,
103 "Programming language"
104 ],
105 [
106 "Ruby",
107 1,
108 "Programming language"
109 ]
110 ],
111 "sub_category": [
112 [
113 1
114 ],
115 [
116 [
117 "_key",
118 "ShortText"
119 ],
120 [
121 "_nsubrecs",
122 "Int32"
123 ]
124 ],
125 [
126 "Programming language",
127 2
128 ]
129 ],
130 "tag": [
131 [
132 3
133 ],
134 [
135 [
136 "_key",
137 "ShortText"
138 ],
139 [
140 "_nsubrecs",
141 "Int32"
142 ],
143 [
144 "category",
145 "Categories"
146 ]
147 ],
148 [
149 "Groonga",
150 2,
151 "C/C++"
152 ],
153 [
154 "Mroonga",
155 1,
156 "C/C++"
157 ],
158 [
159 "Rroonga",
160 1,
161 "Ruby"
162 ]
163 ]
164 }
165 ]
166 ]