Debian Codegraph @

test/command/suite/wal_recover/db/auto_recovery/column/indexed_column.expected

raw
1 table_create Terms TABLE_PAT_KEY ShortText --normalizer NormalizerNFKC130 --default_tokenizer TokenNgram
2 [[0,0.0,0.0],true]
3 table_create Data TABLE_PAT_KEY ShortText
4 [[0,0.0,0.0],true]
5 column_create Data content COLUMN_SCALAR ShortText
6 [[0,0.0,0.0],true]
7 column_create Terms data_content COLUMN_INDEX|WITH_POSITION Data content
8 [[0,0.0,0.0],true]
9 load --table Data
10 [
11 {"_key": "abc", "content": "a and b and c"},
12 {"_key": "ABC", "content": "A and B and C"},
13 {"_key": "abcdef", "content": "a and b and c and d and e and f"}
14 ]
15 [[0,0.0,0.0],3]
16 delete --table Data --key ABC
17 [[0,0.0,0.0],true]
18 dump
19 table_create Data TABLE_PAT_KEY ShortText
20 column_create Data content COLUMN_SCALAR ShortText
21
22 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC130
23
24 load --table Data
25 [
26 ["_key","content"],
27 ["abc","a and b and c"],
28 ["abcdef","a and b and c and d and e and f"]
29 ]
30
31 column_create Terms data_content COLUMN_INDEX|WITH_POSITION Data content
32 _database_close
33 [[0,0.0,0.0],true]
34 _database_reopen
35 [[0,0.0,0.0],true]
36 #|e| [reader][read-entry][ja][recover][Data.content] must be map: <positive-integer>(2): path:<db/db.0000102>
37 #|n| [db][wal][recover] rebuild broken data column: <Data.content>(258)
38 #|n| DDL:260:column_create Data #recovering#content
39 #|n| spec:260:update:Data.#recovering#content:65(column:var_size):14(ShortText)
40 #|n| [db][wal][recover] rebuild broken auto generated column: <Terms.data_content>(259)
41 #|n| DDL:261:column_create Terms #recovering#data_content
42 #|n| spec:261:update:Terms.#recovering#data_content:72(column:index):257(Data)
43 #|n| DDL:261:set_source Terms.#recovering#data_content Data.#recovering#content
44 #|n| spec:261:update:Terms.#recovering#data_content:72(column:index):257(Data)
45 #|n| DDL:260:add_hook:set Data.#recovering#content [Terms.#recovering#data_content(261)]
46 #|n| spec:260:update:Data.#recovering#content:65(column:var_size):14(ShortText)
47 #|n| DDL:258:obj_remove Data.#broken#content
48 #|n| DDL:259:obj_remove Terms.data_content
49 #|n| spec:259:remove:Terms.data_content:72(column:index)
50 #|n| spec:258:remove:Data.#broken#content:65(column:var_size)
51 #|n| [db][wal][recover] succeeded to rebuild broken column: <Data.content>(260)
52 #|n| [db][wal][recover] succeeded to rebuild broken column: <Terms.data_content>(261)
53 dump
54 table_create Data TABLE_PAT_KEY ShortText
55 column_create Data content COLUMN_SCALAR ShortText
56
57 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC130
58
59 load --table Data
60 [
61 ["_key","content"],
62 ["abc","a and b and c"],
63 ["abcdef","a and b and c and d and e and f"]
64 ]
65
66 column_create Terms data_content COLUMN_INDEX|WITH_POSITION Data content
67 index_column_diff --table Terms --name data_content
68 [[0,0.0,0.0],[]]
69 select Data --match_columns 'content * 2' --query d --output_columns _id,_key,content,_score
70 [
71 [
72 0,
73 0.0,
74 0.0
75 ],
76 [
77 [
78 [
79 1
80 ],
81 [
82 [
83 "_id",
84 "UInt32"
85 ],
86 [
87 "_key",
88 "ShortText"
89 ],
90 [
91 "content",
92 "ShortText"
93 ],
94 [
95 "_score",
96 "Int32"
97 ]
98 ],
99 [
100 3,
101 "abcdef",
102 "a and b and c and d and e and f",
103 2
104 ]
105 ]
106 ]
107 ]