Debian Codegraph @

test/command/suite/select/output_columns/index/nested/vector.expected

raw
1 table_create Tags TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create Products TABLE_PAT_KEY ShortText
4 [[0,0.0,0.0],true]
5 table_create Purchases TABLE_NO_KEY
6 [[0,0.0,0.0],true]
7 column_create Purchases product COLUMN_SCALAR Products
8 [[0,0.0,0.0],true]
9 column_create Purchases tags COLUMN_VECTOR Tags
10 [[0,0.0,0.0],true]
11 column_create Products purchases COLUMN_INDEX Purchases product
12 [[0,0.0,0.0],true]
13 load --table Products
14 [
15 {"_key": "apple"},
16 {"_key": "banana"},
17 {"_key": "cacao"}
18 ]
19 [[0,0.0,0.0],3]
20 load --table Purchases
21 [
22 {"product": "apple", "tags": ["man", "one"]},
23 {"product": "banana", "tags": ["man", "many"]},
24 {"product": "cacao", "tags": ["woman"]},
25 {"product": "apple", "tags": ["child", "many"]}
26 ]
27 [[0,0.0,0.0],4]
28 select Products --output_columns _key,purchases.tags
29 [
30 [
31 0,
32 0.0,
33 0.0
34 ],
35 [
36 [
37 [
38 3
39 ],
40 [
41 [
42 "_key",
43 "ShortText"
44 ],
45 [
46 "purchases.tags",
47 "Tags"
48 ]
49 ],
50 [
51 "apple",
52 [
53 [
54 "man",
55 "one"
56 ],
57 [
58 "child",
59 "many"
60 ]
61 ]
62 ],
63 [
64 "banana",
65 [
66 [
67 "man",
68 "many"
69 ]
70 ]
71 ],
72 [
73 "cacao",
74 [
75 [
76 "woman"
77 ]
78 ]
79 ]
80 ]
81 ]
82 ]