Debian Codegraph @

test/command/suite/wal_recover/db/auto_recovery/column/index.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| [ii][wal][recover][Terms.data_content] not implemented: path:<db/db.0000103>
37 #|n| [db][wal][recover] rebuild broken auto generated column: <Terms.data_content>(259)
38 #|n| DDL:260:column_create Terms #recovering#data_content
39 #|n| spec:260:update:Terms.#recovering#data_content:72(column:index):257(Data)
40 #|n| DDL:260:set_source Terms.#recovering#data_content Data.content
41 #|n| spec:260:update:Terms.#recovering#data_content:72(column:index):257(Data)
42 #|n| DDL:258:add_hook:set Data.content [Terms.#recovering#data_content(260),Terms.data_content(259)]
43 #|n| spec:258:update:Data.content:65(column:var_size):14(ShortText)
44 #|n| DDL:259:obj_remove Terms.#broken#data_content
45 #|n| DDL:258:delete_hook:set Data.content Terms.#broken#data_content(259) [Terms.data_content(260)]
46 #|n| spec:258:update:Data.content:65(column:var_size):14(ShortText)
47 #|n| spec:259:remove:Terms.#broken#data_content:72(column:index)
48 #|n| [db][wal][recover] succeeded to rebuild broken column: <Terms.data_content>(260)
49 dump
50 table_create Data TABLE_PAT_KEY ShortText
51 column_create Data content COLUMN_SCALAR ShortText
52
53 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC130
54
55 load --table Data
56 [
57 ["_key","content"],
58 ["abc","a and b and c"],
59 ["abcdef","a and b and c and d and e and f"]
60 ]
61
62 column_create Terms data_content COLUMN_INDEX|WITH_POSITION Data content
63 index_column_diff --table Terms --name data_content
64 [[0,0.0,0.0],[]]
65 select Data --match_columns 'content * 2' --query d --output_columns _id,_key,content,_score
66 [
67 [
68 0,
69 0.0,
70 0.0
71 ],
72 [
73 [
74 [
75 1
76 ],
77 [
78 [
79 "_id",
80 "UInt32"
81 ],
82 [
83 "_key",
84 "ShortText"
85 ],
86 [
87 "content",
88 "ShortText"
89 ],
90 [
91 "_score",
92 "Int32"
93 ]
94 ],
95 [
96 3,
97 "abcdef",
98 "a and b and c and d and e and f",
99 2
100 ]
101 ]
102 ]
103 ]