Debian Codegraph @

test/command/suite/index_column_diff/remains/with_section.test

raw
1 table_create Data TABLE_NO_KEY
2 column_create Data value1 COLUMN_SCALAR ShortText
3 column_create Data value2 COLUMN_SCALAR ShortText
4
5 table_create Patterns TABLE_PAT_KEY ShortText \
6 --normalizer NormalizerNFKC100
7
8 table_create Terms TABLE_PAT_KEY ShortText \
9 --default_tokenizer "TokenTable('table', 'Patterns')" \
10 --normalizer NormalizerNFKC100
11 column_create Terms data_values_index \
12 COLUMN_INDEX|WITH_POSITION|WITH_SECTION \
13 Data value1,value2
14
15 load --table Patterns
16 [
17 {"_key": "World"},
18 {"_key": "Groonga"}
19 ]
20
21 load --table Data
22 [
23 {"value1": "Hello World",
24 "value2": "Good-by World"},
25 {"value1": "Hello Groonga",
26 "value2": "Good-by Groonga"}
27 ]
28
29 truncate Patterns
30
31 load --table Data
32 [
33 {"_id": 1,
34 "value1": "Hello Groonga",
35 "value2": "Good-by Groonga"},
36 {"_id": 2,
37 "value1": "Hello World",
38 "value2": "Good-by World"}
39 ]
40
41 load --table Patterns
42 [
43 {"_key": "World"},
44 {"_key": "Groonga"}
45 ]
46
47 index_column_diff Terms data_values_index