Debian Codegraph @

test/command/suite/select/drilldowns/keys/index/nested/scalar.expected

raw
1 table_create Products TABLE_PAT_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create Purchases TABLE_NO_KEY
4 [[0,0.0,0.0],true]
5 column_create Purchases product COLUMN_SCALAR Products
6 [[0,0.0,0.0],true]
7 column_create Purchases tag COLUMN_SCALAR ShortText
8 [[0,0.0,0.0],true]
9 column_create Products purchases COLUMN_INDEX Purchases product
10 [[0,0.0,0.0],true]
11 load --table Products
12 [
13 {"_key": "apple"},
14 {"_key": "banana"},
15 {"_key": "cacao"}
16 ]
17 [[0,0.0,0.0],3]
18 load --table Purchases
19 [
20 {"product": "apple", "tag": "man"},
21 {"product": "banana", "tag": "man"},
22 {"product": "cacao", "tag": "woman"},
23 {"product": "apple", "tag": "many"}
24 ]
25 [[0,0.0,0.0],4]
26 select Products --drilldowns[tag].keys purchases.tag
27 [
28 [
29 0,
30 0.0,
31 0.0
32 ],
33 [
34 [
35 [
36 3
37 ],
38 [
39 [
40 "_id",
41 "UInt32"
42 ],
43 [
44 "_key",
45 "ShortText"
46 ],
47 [
48 "purchases",
49 "UInt32"
50 ]
51 ],
52 [
53 1,
54 "apple",
55 4
56 ],
57 [
58 2,
59 "banana",
60 1
61 ],
62 [
63 3,
64 "cacao",
65 1
66 ]
67 ],
68 {
69 "tag": [
70 [
71 3
72 ],
73 [
74 [
75 "_key",
76 "ShortText"
77 ],
78 [
79 "_nsubrecs",
80 "Int32"
81 ]
82 ],
83 [
84 "man",
85 2
86 ],
87 [
88 "many",
89 1
90 ],
91 [
92 "woman",
93 1
94 ]
95 ]
96 }
97 ]
98 ]