Debian Codegraph @

test/command/suite/select/slices/sort_keys/column.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 load --table Memos
10 [
11 {"_key": "Groonga is fast!", "date": "2016-05-19 12:00:00", "tag": "Groonga"},
12 {"_key": "Mroonga is fast!", "date": "2016-05-19 12:00:01", "tag": "Mroonga"},
13 {"_key": "Groonga sticker!", "date": "2016-05-19 12:00:02", "tag": "Groonga"},
14 {"_key": "Rroonga is fast!", "date": "2016-05-19 12:00:03", "tag": "Rroonga"}
15 ]
16 [[0,0.0,0.0],4]
17 select Memos --slices[groonga].filter 'tag == "Groonga"' --slices[groonga].sort_keys 'date' --slices[groonga].output_columns '_key, date'
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 "date",
40 "Time"
41 ],
42 [
43 "tag",
44 "Tags"
45 ]
46 ],
47 [
48 1,
49 "Groonga is fast!",
50 1463626800.0,
51 "Groonga"
52 ],
53 [
54 2,
55 "Mroonga is fast!",
56 1463626801.0,
57 "Mroonga"
58 ],
59 [
60 3,
61 "Groonga sticker!",
62 1463626802.0,
63 "Groonga"
64 ],
65 [
66 4,
67 "Rroonga is fast!",
68 1463626803.0,
69 "Rroonga"
70 ]
71 ],
72 {
73 "groonga": [
74 [
75 2
76 ],
77 [
78 [
79 "_key",
80 "ShortText"
81 ],
82 [
83 "date",
84 "Time"
85 ]
86 ],
87 [
88 "Groonga is fast!",
89 1463626800.0
90 ],
91 [
92 "Groonga sticker!",
93 1463626802.0
94 ]
95 ]
96 }
97 ]
98 ]