Debian Codegraph @

doc/source/example/reference/commands/logical_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_20150204 TABLE_HASH_KEY ShortText
8 # [[0,1337566253.89858,0.000355720520019531],true]
9 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
10 # [[0,1337566253.89858,0.000355720520019531],true]
11 table_create Logs TABLE_HASH_KEY ShortText
12 # [[0,1337566253.89858,0.000355720520019531],true]
13 column_create Logs original_id COLUMN_SCALAR UInt32
14 # [[0,1337566253.89858,0.000355720520019531],true]
15 column_create Logs timestamp_text COLUMN_SCALAR ShortText
16 # [[0,1337566253.89858,0.000355720520019531],true]
17 load --table Logs_20150203
18 [
19 {
20 "_key": "2015-02-03:1",
21 "timestamp": "2015-02-03 10:49:00"
22 },
23 {
24 "_key": "2015-02-03:2",
25 "timestamp": "2015-02-03 12:49:00"
26 }
27 ]
28 # [[0,1337566253.89858,0.000355720520019531],2]
29 load --table Logs_20150204
30 [
31 {
32 "_key": "2015-02-04:1",
33 "timestamp": "2015-02-04 00:00:00"
34 }
35 ]
36 # [[0,1337566253.89858,0.000355720520019531],1]
37 logical_select \
38 --logical_table Logs \
39 --shard_key timestamp \
40 --load_table Logs \
41 --load_columns "_key, original_id, timestamp_text" \
42 --load_values "_key, _id, timestamp"
43 # [
44 # [
45 # 0,
46 # 1337566253.89858,
47 # 0.000355720520019531
48 # ],
49 # [
50 # [
51 # [
52 # 3
53 # ],
54 # [
55 # [
56 # "_id",
57 # "UInt32"
58 # ],
59 # [
60 # "_key",
61 # "ShortText"
62 # ],
63 # [
64 # "timestamp",
65 # "Time"
66 # ]
67 # ],
68 # [
69 # 1,
70 # "2015-02-03:1",
71 # 1422928140.0
72 # ],
73 # [
74 # 2,
75 # "2015-02-03:2",
76 # 1422935340.0
77 # ],
78 # [
79 # 1,
80 # "2015-02-04:1",
81 # 1422975600.0
82 # ]
83 # ]
84 # ]
85 # ]
86 select --table Logs
87 # [
88 # [
89 # 0,
90 # 1337566253.89858,
91 # 0.000355720520019531
92 # ],
93 # [
94 # [
95 # [
96 # 3
97 # ],
98 # [
99 # [
100 # "_id",
101 # "UInt32"
102 # ],
103 # [
104 # "_key",
105 # "ShortText"
106 # ],
107 # [
108 # "original_id",
109 # "UInt32"
110 # ],
111 # [
112 # "timestamp_text",
113 # "ShortText"
114 # ]
115 # ],
116 # [
117 # 1,
118 # "2015-02-03:1",
119 # 1,
120 # "1422928140000000"
121 # ],
122 # [
123 # 2,
124 # "2015-02-03:2",
125 # 2,
126 # "1422935340000000"
127 # ],
128 # [
129 # 3,
130 # "2015-02-04:1",
131 # 1,
132 # "1422975600000000"
133 # ]
134 # ]
135 # ]
136 # ]