Debian Codegraph @

test/command/suite/select/load_table/key_reference.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 Times TABLE_PAT_KEY Time
6 [[0,0.0,0.0],true]
7 column_create Times logs_timestamp COLUMN_INDEX Logs timestamp
8 [[0,0.0,0.0],true]
9 table_create LoadedLogs TABLE_HASH_KEY Logs
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 log_level --level info
28 [[0,0.0,0.0],true]
29 select Logs --load_table LoadedLogs --load_columns "_key" --load_values "_key" --limit 0
30 [
31 [
32 0,
33 0.0,
34 0.0
35 ],
36 [
37 [
38 [
39 3
40 ],
41 [
42 [
43 "_id",
44 "UInt32"
45 ],
46 [
47 "_key",
48 "ShortText"
49 ],
50 [
51 "timestamp",
52 "Time"
53 ]
54 ]
55 ]
56 ]
57 ]
58 #>select --limit "0" --load_columns "_key" --load_table "LoadedLogs" --load_values "_key" --table "Logs"
59 #:000000000000000 select(3)
60 #:000000000000000 load(3): [LoadedLogs][3]
61 #:000000000000000 output(0)
62 #:000000000000000 send(0)
63 #<000000000000000 rc=0
64 select --table LoadedLogs --filter 'timestamp >= "2015-02-03 12:49:00"'
65 [
66 [
67 0,
68 0.0,
69 0.0
70 ],
71 [
72 [
73 [
74 2
75 ],
76 [
77 [
78 "_id",
79 "UInt32"
80 ],
81 [
82 "_key",
83 "ShortText"
84 ],
85 [
86 "timestamp",
87 "Time"
88 ]
89 ],
90 [
91 2,
92 "2015-02-03:2",
93 1422935340.0
94 ],
95 [
96 3,
97 "2015-02-04:1",
98 1422975600.0
99 ]
100 ]
101 ]
102 ]
103 #|i| [table-selector][select][index][range] <Times.logs_timestamp>
104 #|i| [accessor][resolve][table] <LoadedLogs> -> <Logs> -> <ShortText>
105 #>select --filter "timestamp >= \"2015-02-03 12:49:00\"" --table "LoadedLogs"
106 #:000000000000000 filter(2): #<accessor _key(LoadedLogs).timestamp(Logs)> greater_equal "2015-02-03 12:49:00"
107 #:000000000000000 select(2)
108 #:000000000000000 output(2)
109 #:000000000000000 send(0)
110 #<000000000000000 rc=0
111 log_level --level notice
112 [[0,0.0,0.0],true]