Debian Codegraph @

test/command/suite/wal_recover/ja/update/huge/2_segments.expected

raw
1 table_create Memos TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Memos content COLUMN_SCALAR Text
4 [[0,0.0,0.0],true]
5 io_flush
6 [[0,0.0,0.0],true]
7 check --obj Memos.content
8 [
9 [
10 0,
11 0.0,
12 0.0
13 ],
14 {
15 "details": {
16 "segments": [
17 {
18 "id": 0,
19 "type": 3,
20 "type_name": "element info",
21 "element_info_index": 0,
22 "referred_segment": 0,
23 "valid": true
24 },
25 {
26 "id": 3,
27 "type": 2,
28 "type_name": "huge",
29 "value": 0
30 },
31 {
32 "id": 4,
33 "type": 2,
34 "type_name": "huge",
35 "value": 0
36 }
37 ],
38 "garbage_counts": {},
39 "free_elements": {}
40 },
41 "summary": {
42 "flags": "0000C000",
43 "curr seg": 0,
44 "curr pos": 4194304,
45 "max_element_size": 65536,
46 "chunk_threshold": 16,
47 "n_element_variations": 14,
48 "n_using_segments": 3,
49 "valid": true
50 }
51 }
52 ]
53 plugin_register functions/string
54 [[0,0.0,0.0],true]
55 select --table Memos --columns[content_head].stage output --columns[content_head].flags COLUMN_SCALAR --columns[content_head].type ShortText --columns[content_head].value 'string_slice(content, 0, 5)' --columns[content_tail].stage output --columns[content_tail].flags COLUMN_SCALAR --columns[content_tail].type ShortText --columns[content_tail].value 'string_slice(content, -5, 5)' --columns[content_length].stage output --columns[content_length].flags COLUMN_SCALAR --columns[content_length].type UInt32 --columns[content_length].value 'string_length(content)' --output_columns _key,content_head,content_tail,content_length
56 [
57 [
58 0,
59 0.0,
60 0.0
61 ],
62 [
63 [
64 [
65 1
66 ],
67 [
68 [
69 "_key",
70 "ShortText"
71 ],
72 [
73 "content_head",
74 "ShortText"
75 ],
76 [
77 "content_tail",
78 "ShortText"
79 ],
80 [
81 "content_length",
82 "UInt32"
83 ]
84 ],
85 [
86 "huge: 4MiB <=: 2 segments",
87 "ABCDA",
88 "ABCDX",
89 4194305
90 ]
91 ]
92 ]
93 ]
94 _database_close
95 [[0,0.0,0.0],true]
96 _database_reopen
97 [[0,0.0,0.0],true]
98 select --table Memos --columns[content_head].stage output --columns[content_head].flags COLUMN_SCALAR --columns[content_head].type ShortText --columns[content_head].value 'string_slice(content, 0, 5)' --columns[content_tail].stage output --columns[content_tail].flags COLUMN_SCALAR --columns[content_tail].type ShortText --columns[content_tail].value 'string_slice(content, -5, 5)' --columns[content_length].stage output --columns[content_length].flags COLUMN_SCALAR --columns[content_length].type UInt32 --columns[content_length].value 'string_length(content)' --output_columns _key,content_head,content_tail,content_length
99 [
100 [
101 0,
102 0.0,
103 0.0
104 ],
105 [
106 [
107 [
108 1
109 ],
110 [
111 [
112 "_key",
113 "ShortText"
114 ],
115 [
116 "content_head",
117 "ShortText"
118 ],
119 [
120 "content_tail",
121 "ShortText"
122 ],
123 [
124 "content_length",
125 "UInt32"
126 ]
127 ],
128 [
129 "huge: 4MiB <=: 2 segments",
130 "ABCDA",
131 "ABCDX",
132 4194305
133 ]
134 ]
135 ]
136 ]
137 check --obj Memos.content
138 [
139 [
140 0,
141 0.0,
142 0.0
143 ],
144 {
145 "details": {
146 "segments": [
147 {
148 "id": 0,
149 "type": 3,
150 "type_name": "element info",
151 "element_info_index": 0,
152 "referred_segment": 0,
153 "valid": true
154 },
155 {
156 "id": 3,
157 "type": 2,
158 "type_name": "huge",
159 "value": 0
160 },
161 {
162 "id": 4,
163 "type": 2,
164 "type_name": "huge",
165 "value": 0
166 }
167 ],
168 "garbage_counts": {},
169 "free_elements": {}
170 },
171 "summary": {
172 "flags": "0000C000",
173 "curr seg": 0,
174 "curr pos": 4194304,
175 "max_element_size": 65536,
176 "chunk_threshold": 16,
177 "n_element_variations": 14,
178 "n_using_segments": 3,
179 "valid": true
180 }
181 }
182 ]