Debian Codegraph @

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

raw
1 table_create Tags TABLE_HASH_KEY ShortText
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 tag COLUMN_SCALAR Tags
6 [[0,0.0,0.0],true]
7 load --table Data
8 [
9 {"_key": "abc", "tag": "A"},
10 {"_key": "ABC", "tag": "A"},
11 {"_key": "abcdef", "tag": "B"}
12 ]
13 [[0,0.0,0.0],3]
14 delete --table Data --key ABC
15 [[0,0.0,0.0],true]
16 dump
17 table_create Data TABLE_PAT_KEY ShortText
18
19 table_create Tags TABLE_HASH_KEY ShortText
20
21 column_create Data tag COLUMN_SCALAR Tags
22
23 load --table Tags
24 [
25 ["_key"],
26 ["A"],
27 ["B"]
28 ]
29
30 load --table Data
31 [
32 ["_key","tag"],
33 ["abc","A"],
34 ["abcdef","B"]
35 ]
36 _database_close
37 [[0,0.0,0.0],true]
38 _database_reopen
39 [[0,0.0,0.0],true]
40 #|e| [reader][read-entry][ra][recover][Data.tag] must be map: <positive-integer>(2): path:<db/db.0000102>
41 #|n| [db][wal][recover] rebuild broken data column: <Data.tag>(258)
42 #|n| DDL:259:column_create Data #recovering#tag
43 #|n| spec:259:update:Data.#recovering#tag:64(column:fix_size):256(Tags)
44 #|n| DDL:258:obj_remove Data.#broken#tag
45 #|n| spec:258:remove:Data.#broken#tag:64(column:fix_size)
46 #|n| [db][wal][recover] succeeded to rebuild broken column: <Data.tag>(259)
47 dump
48 table_create Data TABLE_PAT_KEY ShortText
49
50 table_create Tags TABLE_HASH_KEY ShortText
51
52 column_create Data tag COLUMN_SCALAR Tags
53
54 load --table Tags
55 [
56 ["_key"],
57 ["A"],
58 ["B"]
59 ]
60
61 load --table Data
62 [
63 ["_key","tag"],
64 ["abc","A"],
65 ["abcdef","B"]
66 ]