Debian Codegraph @

test/command/suite/select/slices/drilldowns/keys/one.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 tag COLUMN_SCALAR Tags
6 [[0,0.0,0.0],true]
7 load --table Memos
8 [
9 {"_key": "Groonga is fast!", "tag": "Groonga"},
10 {"_key": "Mroonga is fast!", "tag": "Mroonga"},
11 {"_key": "Groonga sticker!", "tag": "Groonga"},
12 {"_key": "Rroonga is fast!", "tag": "Rroonga"}
13 ]
14 [[0,0.0,0.0],4]
15 log_level --level debug
16 [[0,0.0,0.0],true]
17 select Memos --slices[no_rroonga].filter '_id < 4' --slices[no_rroonga].drilldowns[tag].keys tag
18 [
19 [
20 0,
21 0.0,
22 0.0
23 ],
24 [
25 [
26 [
27 4
28 ],
29 [
30 [
31 "_id",
32 "UInt32"
33 ],
34 [
35 "_key",
36 "ShortText"
37 ],
38 [
39 "tag",
40 "Tags"
41 ]
42 ],
43 [
44 1,
45 "Groonga is fast!",
46 "Groonga"
47 ],
48 [
49 2,
50 "Mroonga is fast!",
51 "Mroonga"
52 ],
53 [
54 3,
55 "Groonga sticker!",
56 "Groonga"
57 ],
58 [
59 4,
60 "Rroonga is fast!",
61 "Rroonga"
62 ]
63 ],
64 {
65 "no_rroonga": [
66 [
67 3
68 ],
69 [
70 [
71 "_id",
72 "UInt32"
73 ],
74 [
75 "_key",
76 "ShortText"
77 ],
78 [
79 "tag",
80 "Tags"
81 ]
82 ],
83 [
84 1,
85 "Groonga is fast!",
86 "Groonga"
87 ],
88 [
89 2,
90 "Mroonga is fast!",
91 "Mroonga"
92 ],
93 [
94 3,
95 "Groonga sticker!",
96 "Groonga"
97 ],
98 {
99 "tag": [
100 [
101 2
102 ],
103 [
104 [
105 "_key",
106 "ShortText"
107 ],
108 [
109 "_nsubrecs",
110 "Int32"
111 ]
112 ],
113 [
114 "Groonga",
115 2
116 ],
117 [
118 "Mroonga",
119 1
120 ]
121 ]
122 }
123 ]
124 }
125 ]
126 ]
127 #>select --slices[no_rroonga].drilldowns[tag].keys "tag" --slices[no_rroonga].filter "_id < 4" --table "Memos"
128 #:000000000000000 select(4)
129 #:000000000000000 slices[no_rroonga].filter(3): #<accessor _id(Memos)> less 4
130 #:000000000000000 slices[no_rroonga](3)
131 #:000000000000000 slices[no_rroonga].drilldowns[tag](2): tag
132 #:000000000000000 output(4)
133 #:000000000000000 slices[no_rroonga].output.drilldowns[tag](2)
134 #:000000000000000 slices[no_rroonga].output(3)
135 #:000000000000000 send(0)
136 #<000000000000000 rc=0
137 log_level --level notice
138 [[0,0.0,0.0],true]