Debian Codegraph @

test/command/suite/wal_recover/db/auto_recovery/column/token_vector.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 Data content_terms COLUMN_VECTOR Terms 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 column_create Data content_terms COLUMN_VECTOR Terms content
25
26 load --table Terms
27 [
28 ["_key"],
29 ["a"],
30 ["and"],
31 ["b"],
32 ["c"],
33 ["d"],
34 ["e"],
35 ["f"]
36 ]
37
38 load --table Data
39 [
40 ["_key","content"],
41 ["abc","a and b and c"],
42 ["abcdef","a and b and c and d and e and f"]
43 ]
44 _database_close
45 [[0,0.0,0.0],true]
46 _database_reopen
47 [[0,0.0,0.0],true]
48 #|e| [reader][read-entry][ja][recover][Data.content_terms] must be map: <positive-integer>(2): path:<db/db.0000103>
49 #|n| [db][wal][recover] rebuild broken auto generated column: <Data.content_terms>(259)
50 #|n| DDL:260:column_create Data #recovering#content_terms
51 #|n| spec:260:update:Data.#recovering#content_terms:65(column:var_size):256(Terms)
52 #|n| DDL:260:set_source Data.#recovering#content_terms Data.content
53 #|n| spec:260:update:Data.#recovering#content_terms:65(column:var_size):256(Terms)
54 #|n| DDL:258:add_hook:set Data.content [Data.#recovering#content_terms(260),Data.content_terms(259)]
55 #|n| spec:258:update:Data.content:65(column:var_size):14(ShortText)
56 #|n| DDL:259:obj_remove Data.#broken#content_terms
57 #|n| DDL:258:delete_hook:set Data.content Data.#broken#content_terms(259) [Data.content_terms(260)]
58 #|n| spec:258:update:Data.content:65(column:var_size):14(ShortText)
59 #|n| spec:259:remove:Data.#broken#content_terms:65(column:var_size)
60 #|n| [db][wal][recover] succeeded to rebuild broken column: <Data.content_terms>(260)
61 select Data
62 [
63 [
64 0,
65 0.0,
66 0.0
67 ],
68 [
69 [
70 [
71 2
72 ],
73 [
74 [
75 "_id",
76 "UInt32"
77 ],
78 [
79 "_key",
80 "ShortText"
81 ],
82 [
83 "content",
84 "ShortText"
85 ],
86 [
87 "content_terms",
88 "Terms"
89 ]
90 ],
91 [
92 1,
93 "abc",
94 "a and b and c",
95 [
96 "a",
97 "and",
98 "b",
99 "and",
100 "c"
101 ]
102 ],
103 [
104 3,
105 "abcdef",
106 "a and b and c and d and e and f",
107 [
108 "a",
109 "and",
110 "b",
111 "and",
112 "c",
113 "and",
114 "d",
115 "and",
116 "e",
117 "and",
118 "f"
119 ]
120 ]
121 ]
122 ]
123 ]
124 dump
125 table_create Data TABLE_PAT_KEY ShortText
126 column_create Data content COLUMN_SCALAR ShortText
127
128 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenNgram --normalizer NormalizerNFKC130
129
130 column_create Data content_terms COLUMN_VECTOR Terms content
131
132 load --table Terms
133 [
134 ["_key"],
135 ["a"],
136 ["and"],
137 ["b"],
138 ["c"],
139 ["d"],
140 ["e"],
141 ["f"]
142 ]
143
144 load --table Data
145 [
146 ["_key","content"],
147 ["abc","a and b and c"],
148 ["abcdef","a and b and c and d and e and f"]
149 ]