Debian Codegraph @

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