Debian Codegraph @

test/command/suite/sharding/logical_table_remove/broken/index_column/default.test

raw
1 #@on-error omit
2 plugin_register sharding
3 #@on-error default
4
5 table_create Paths_20150203 TABLE_HASH_KEY|KEY_LARGE ShortText
6 table_create Logs_20150203 TABLE_NO_KEY
7 column_create Logs_20150203 timestamp COLUMN_SCALAR Time
8 column_create Logs_20150203 path COLUMN_SCALAR Paths_20150203
9 table_create Times_20150203 TABLE_PAT_KEY Time
10 column_create Times_20150203 timestamp_index COLUMN_INDEX Logs_20150203 timestamp
11
12 table_create PathTerms_20150203 TABLE_PAT_KEY ShortText \
13 --default_tokenizer TokenBigram \
14 --normalizer NormalizerAuto
15 column_create PathTerms_20150203 index COLUMN_INDEX|WITH_POSITION \
16 Paths_20150203 _key
17
18
19 table_create NotRelated_20150204 TABLE_NO_KEY
20
21 table_create Paths_20150204 TABLE_HASH_KEY|KEY_LARGE ShortText
22 table_create Logs_20150204 TABLE_NO_KEY
23 column_create Logs_20150204 timestamp COLUMN_SCALAR Time
24 column_create Logs_20150204 path COLUMN_SCALAR Paths_20150204
25 table_create Times_20150204 TABLE_PAT_KEY Time
26 column_create Times_20150204 timestamp_index COLUMN_INDEX Logs_20150204 timestamp
27
28 table_create PathTerms_20150204 TABLE_PAT_KEY ShortText \
29 --default_tokenizer TokenBigram \
30 --normalizer NormalizerAuto
31 column_create PathTerms_20150204 index COLUMN_INDEX|WITH_POSITION \
32 Paths_20150204 _key
33
34
35 load --table Logs_20150203
36 [
37 {"timestamp": "2015-02-03 12:49:00", "path": "/tmp/log"},
38 {"timestamp": "2015-02-03 23:59:59", "path": "/var/"}
39 ]
40
41 load --table Logs_20150204
42 [
43 {"timestamp": "2015-02-04 00:00:00", "path": "/tmp/log"},
44 {"timestamp": "2015-02-04 13:49:00", "path": "/root/"},
45 {"timestamp": "2015-02-04 13:50:00", "path": "/etc/aliases"}
46 ]
47
48 #@disable-logging
49 thread_limit 1
50 database_unmap
51 #@enable-logging
52
53 #@copy-path fixture/sharding/logical_table_remove/broken.data #{db_path}.0000114
54
55 logical_table_remove Logs timestamp \
56 --min "2015-02-04 00:00:00" \
57 --min_border "include"
58
59 object_exist Times_20150204.timestamp_index
60
61 dump