Debian Codegraph @

test/command/suite/sharding/logical_select/load_table/key.expected

raw
1 plugin_register sharding
2 [[0,0.0,0.0],true]
3 table_create Logs_20150203 TABLE_HASH_KEY ShortText
4 [[0,0.0,0.0],true]
5 column_create Logs_20150203 timestamp COLUMN_SCALAR Time
6 [[0,0.0,0.0],true]
7 table_create Logs_20150204 TABLE_HASH_KEY ShortText
8 [[0,0.0,0.0],true]
9 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
10 [[0,0.0,0.0],true]
11 table_create Logs TABLE_HASH_KEY ShortText
12 [[0,0.0,0.0],true]
13 column_create Logs original_id COLUMN_SCALAR UInt32
14 [[0,0.0,0.0],true]
15 column_create Logs timestamp_text COLUMN_SCALAR ShortText
16 [[0,0.0,0.0],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,0.0,0.0],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,0.0,0.0],1]
37 logical_select --logical_table Logs --shard_key timestamp --filter true --load_table Logs --load_columns "_key, original_id, timestamp_text" --load_values "cast_loose(ShortText, timestamp, '') + ':' + _id, _id, timestamp" --limit 0
38 [
39 [
40 0,
41 0.0,
42 0.0
43 ],
44 [
45 [
46 [
47 3
48 ],
49 [
50 [
51 "_id",
52 "UInt32"
53 ],
54 [
55 "_key",
56 "ShortText"
57 ],
58 [
59 "timestamp",
60 "Time"
61 ]
62 ]
63 ]
64 ]
65 ]
66 #>logical_select --filter "true" --limit "0" --load_columns "_key, original_id, timestamp_text" --load_table "Logs" --load_values "cast_loose(ShortText, timestamp, '') + ':' + _id, _id, timestamp" --logical_table "Logs" --shard_key "timestamp"
67 #:000000000000000 filter(2): true
68 #:000000000000000 select(2)[Logs_20150203]
69 #:000000000000000 filter(1): true
70 #:000000000000000 select(1)[Logs_20150204]
71 #:000000000000000 load(2)[Logs_20150203]: [Logs][2]
72 #:000000000000000 load(1)[Logs_20150204]: [Logs][3]
73 #:000000000000000 load(3): [Logs][3]
74 #:000000000000000 output(0)
75 #:000000000000000 send(0)
76 #<000000000000000 rc=0
77 select --table Logs
78 [
79 [
80 0,
81 0.0,
82 0.0
83 ],
84 [
85 [
86 [
87 3
88 ],
89 [
90 [
91 "_id",
92 "UInt32"
93 ],
94 [
95 "_key",
96 "ShortText"
97 ],
98 [
99 "original_id",
100 "UInt32"
101 ],
102 [
103 "timestamp_text",
104 "ShortText"
105 ]
106 ],
107 [
108 1,
109 "1422928140000000:1",
110 1,
111 "1422928140000000"
112 ],
113 [
114 2,
115 "1422935340000000:2",
116 2,
117 "1422935340000000"
118 ],
119 [
120 3,
121 "1422975600000000:1",
122 1,
123 "1422975600000000"
124 ]
125 ]
126 ]
127 ]