Debian Codegraph @

test/command/suite/select/function/in_values/with_index/reference/and_optimized.expected

raw
1 plugin_register ruby/eval
2 [[0,0.0,0.0],true]
3 table_create Tags TABLE_PAT_KEY 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 column_create Tags memos_tag COLUMN_INDEX Memos tag
10 [[0,0.0,0.0],true]
11 load --table Memos
12 [
13 {"_key": "Groonga is fast", "tag": "groonga"},
14 {"_key": "Mroonga is fast", "tag": "mroonga"},
15 {"_key": "Rroonga is fast", "tag": "rroonga"},
16 {"_key": "Droonga is fast", "tag": "droonga"},
17 {"_key": "Groonga is a HTTP server", "tag": "groonga"}
18 ]
19 [[0,0.0,0.0],5]
20 select Memos --output_columns _key,tag --filter 'all_records() && (tag == "groonga" || tag == "mroonga" || tag == "droonga")' --sortby _id
21 [
22 [
23 0,
24 0.0,
25 0.0
26 ],
27 [
28 [
29 [
30 4
31 ],
32 [
33 [
34 "_key",
35 "ShortText"
36 ],
37 [
38 "tag",
39 "Tags"
40 ]
41 ],
42 [
43 "Groonga is fast",
44 "groonga"
45 ],
46 [
47 "Mroonga is fast",
48 "mroonga"
49 ],
50 [
51 "Droonga is fast",
52 "droonga"
53 ],
54 [
55 "Groonga is a HTTP server",
56 "groonga"
57 ]
58 ]
59 ]
60 ]
61 #>select --filter "all_records() && (tag == \"groonga\" || tag == \"mroonga\" || tag == \"droonga\")" --output_columns "_key,tag" --sortby "_id" --table "Memos"
62 #:000000000000000 filter(4): in_values(Memos.tag, #<record:pat:Tags id:1 key:"groonga">, #<record:pat:Tags id:2 key:"mroonga">, #<record:pat:Tags id:4 key:"droonga">)
63 #:000000000000000 filter(4): all_records()
64 #:000000000000000 select(4)
65 #:000000000000000 sort(4): _id
66 #:000000000000000 output(4)
67 #:000000000000000 send(0)
68 #<000000000000000 rc=0