Debian Codegraph @

test/command/suite/sharding/logical_select/load_table/invalid/too_few_columns.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 --load_table Logs --load_columns "_key" --load_values "_id, timestamp"
38 [
39 [
40 [
41 -22,
42 0.0,
43 0.0
44 ],
45 "invalid argument: <[output-columns][apply] the number of columns (1) must be 2: [#<accessor _key(Logs)>]>(-22)"
46 ]
47 ]
48 #|e| [output-columns][apply] the number of columns (1) must be 2: [#<accessor _key(Logs)>]
49 select --table Logs
50 [
51 [
52 0,
53 0.0,
54 0.0
55 ],
56 [
57 [
58 [
59 0
60 ],
61 [
62 [
63 "_id",
64 "UInt32"
65 ],
66 [
67 "_key",
68 "ShortText"
69 ],
70 [
71 "original_id",
72 "UInt32"
73 ],
74 [
75 "timestamp_text",
76 "ShortText"
77 ]
78 ]
79 ]
80 ]
81 ]