Debian Codegraph @

test/command/suite/select/drilldowns/keys/expression/reference.expected

raw
1 table_create Tags TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 table_create UserDataJP TABLE_HASH_KEY ShortText
4 [[0,0.0,0.0],true]
5 column_create UserDataJP tags COLUMN_VECTOR Tags
6 [[0,0.0,0.0],true]
7 table_create UserDataUS TABLE_HASH_KEY ShortText
8 [[0,0.0,0.0],true]
9 column_create UserDataUS tags COLUMN_VECTOR Tags
10 [[0,0.0,0.0],true]
11 table_create Users TABLE_HASH_KEY ShortText
12 [[0,0.0,0.0],true]
13 column_create Users jp COLUMN_SCALAR UserDataJP
14 [[0,0.0,0.0],true]
15 column_create Users us COLUMN_SCALAR UserDataUS
16 [[0,0.0,0.0],true]
17 load --table UserDataJP
18 [
19 {"_key": "alice", "tags": ["A", "B"]}
20 ]
21 [[0,0.0,0.0],1]
22 load --table UserDataUS
23 [
24 {"_key": "bob", "tags": ["A", "C"]}
25 ]
26 [[0,0.0,0.0],1]
27 load --table Users
28 [
29 {"_key": "alice", "jp": "alice"},
30 {"_key": "bob", "us": "bob"}
31 ]
32 [[0,0.0,0.0],2]
33 select Users --drilldowns[tag].keys "jp.tags || us.tags" --command_version 3
34 {
35 "header": {
36 "return_code": 0,
37 "start_time": 0.0,
38 "elapsed_time": 0.0
39 },
40 "body": {
41 "n_hits": 2,
42 "columns": [
43 {
44 "name": "_id",
45 "type": "UInt32"
46 },
47 {
48 "name": "_key",
49 "type": "ShortText"
50 },
51 {
52 "name": "jp",
53 "type": "UserDataJP"
54 },
55 {
56 "name": "us",
57 "type": "UserDataUS"
58 }
59 ],
60 "records": [
61 [
62 1,
63 "alice",
64 "alice",
65 ""
66 ],
67 [
68 2,
69 "bob",
70 "",
71 "bob"
72 ]
73 ],
74 "drilldowns": {
75 "tag": {
76 "n_hits": 3,
77 "columns": [
78 {
79 "name": "_key",
80 "type": "ShortText"
81 },
82 {
83 "name": "_nsubrecs",
84 "type": "Int32"
85 }
86 ],
87 "records": [
88 [
89 "A",
90 2
91 ],
92 [
93 "B",
94 1
95 ],
96 [
97 "C",
98 1
99 ]
100 ]
101 }
102 }
103 }
104 }