Debian Codegraph @

doc/source/example/reference/commands/select/load_table.log

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