Debian Codegraph @

test/command/suite/sharding/logical_select/load_table/invalid/too_much_columns.test

raw
1 #@on-error omit
2 plugin_register sharding
3 #@on-error default
4
5 table_create Logs_20150203 TABLE_HASH_KEY ShortText
6 column_create Logs_20150203 timestamp COLUMN_SCALAR Time
7
8 table_create Logs_20150204 TABLE_HASH_KEY ShortText
9 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
10
11 table_create Logs TABLE_HASH_KEY ShortText
12 column_create Logs original_id COLUMN_SCALAR UInt32
13 column_create Logs timestamp_text COLUMN_SCALAR ShortText
14
15 load --table Logs_20150203
16 [
17 {
18 "_key": "2015-02-03:1",
19 "timestamp": "2015-02-03 10:49:00"
20 },
21 {
22 "_key": "2015-02-03:2",
23 "timestamp": "2015-02-03 12:49:00"
24 }
25 ]
26
27 load --table Logs_20150204
28 [
29 {
30 "_key": "2015-02-04:1",
31 "timestamp": "2015-02-04 00:00:00"
32 }
33 ]
34
35 logical_select \
36 --logical_table Logs \
37 --shard_key timestamp \
38 --load_table Logs \
39 --load_columns "original_id, timestamp_text, _key" \
40 --load_values "_id, timestamp"
41
42 select --table Logs