Debian Codegraph @

test/command/suite/select/load_table/key.expected

raw
1 table_create Logs TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Logs timestamp COLUMN_SCALAR Time
4 [[0,0.0,0.0],true]
5 table_create LoadedLogs TABLE_HASH_KEY ShortText
6 [[0,0.0,0.0],true]
7 column_create LoadedLogs original_id COLUMN_SCALAR UInt32
8 [[0,0.0,0.0],true]
9 column_create LoadedLogs timestamp_text COLUMN_SCALAR ShortText
10 [[0,0.0,0.0],true]
11 load --table Logs
12 [
13 {
14 "_key": "2015-02-03:1",
15 "timestamp": "2015-02-03 10:49:00"
16 },
17 {
18 "_key": "2015-02-03:2",
19 "timestamp": "2015-02-03 12:49:00"
20 },
21 {
22 "_key": "2015-02-04:1",
23 "timestamp": "2015-02-04 00:00:00"
24 }
25 ]
26 [[0,0.0,0.0],3]
27 select Logs --load_table LoadedLogs --load_columns "_key, original_id, timestamp_text" --load_values "cast_loose(ShortText, timestamp, '') + ':' + _id, _id, timestamp" --limit 0
28 [
29 [
30 0,
31 0.0,
32 0.0
33 ],
34 [
35 [
36 [
37 3
38 ],
39 [
40 [
41 "_id",
42 "UInt32"
43 ],
44 [
45 "_key",
46 "ShortText"
47 ],
48 [
49 "timestamp",
50 "Time"
51 ]
52 ]
53 ]
54 ]
55 ]
56 #>select --limit "0" --load_columns "_key, original_id, timestamp_text" --load_table "LoadedLogs" --load_values "cast_loose(ShortText, timestamp, '') + ':' + _id, _id, timestamp" --table "Logs"
57 #:000000000000000 select(3)
58 #:000000000000000 load(3): [LoadedLogs][3]
59 #:000000000000000 output(0)
60 #:000000000000000 send(0)
61 #<000000000000000 rc=0
62 select --table LoadedLogs
63 [
64 [
65 0,
66 0.0,
67 0.0
68 ],
69 [
70 [
71 [
72 3
73 ],
74 [
75 [
76 "_id",
77 "UInt32"
78 ],
79 [
80 "_key",
81 "ShortText"
82 ],
83 [
84 "original_id",
85 "UInt32"
86 ],
87 [
88 "timestamp_text",
89 "ShortText"
90 ]
91 ],
92 [
93 1,
94 "1422928140000000:1",
95 1,
96 "1422928140000000"
97 ],
98 [
99 2,
100 "1422935340000000:2",
101 2,
102 "1422935340000000"
103 ],
104 [
105 3,
106 "1422975600000000:3",
107 3,
108 "1422975600000000"
109 ]
110 ]
111 ]
112 ]