Debian Codegraph @

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

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