Debian Codegraph @

test/command/suite/wal_recover/ja/update/huge/1_segment.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": 2,
27 "type": 2,
28 "type_name": "huge",
29 "value": 0
30 }
31 ],
32 "garbage_counts": {},
33 "free_elements": {}
34 },
35 "summary": {
36 "flags": "0000C000",
37 "curr seg": 0,
38 "curr pos": 4194304,
39 "max_element_size": 65536,
40 "chunk_threshold": 16,
41 "n_element_variations": 14,
42 "n_using_segments": 2,
43 "valid": true
44 }
45 }
46 ]
47 plugin_register functions/string
48 [[0,0.0,0.0],true]
49 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
50 [
51 [
52 0,
53 0.0,
54 0.0
55 ],
56 [
57 [
58 [
59 1
60 ],
61 [
62 [
63 "_key",
64 "ShortText"
65 ],
66 [
67 "content_head",
68 "ShortText"
69 ],
70 [
71 "content_tail",
72 "ShortText"
73 ],
74 [
75 "content_length",
76 "UInt32"
77 ]
78 ],
79 [
80 "huge: 4MiB <=: 1 segment",
81 "ABCDA",
82 "DABCD",
83 4194304
84 ]
85 ]
86 ]
87 ]
88 _database_close
89 [[0,0.0,0.0],true]
90 _database_reopen
91 [[0,0.0,0.0],true]
92 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
93 [
94 [
95 0,
96 0.0,
97 0.0
98 ],
99 [
100 [
101 [
102 1
103 ],
104 [
105 [
106 "_key",
107 "ShortText"
108 ],
109 [
110 "content_head",
111 "ShortText"
112 ],
113 [
114 "content_tail",
115 "ShortText"
116 ],
117 [
118 "content_length",
119 "UInt32"
120 ]
121 ],
122 [
123 "huge: 4MiB <=: 1 segment",
124 "ABCDA",
125 "DABCD",
126 4194304
127 ]
128 ]
129 ]
130 ]
131 check --obj Memos.content
132 [
133 [
134 0,
135 0.0,
136 0.0
137 ],
138 {
139 "details": {
140 "segments": [
141 {
142 "id": 0,
143 "type": 3,
144 "type_name": "element info",
145 "element_info_index": 0,
146 "referred_segment": 0,
147 "valid": true
148 },
149 {
150 "id": 2,
151 "type": 2,
152 "type_name": "huge",
153 "value": 0
154 }
155 ],
156 "garbage_counts": {},
157 "free_elements": {}
158 },
159 "summary": {
160 "flags": "0000C000",
161 "curr seg": 0,
162 "curr pos": 4194304,
163 "max_element_size": 65536,
164 "chunk_threshold": 16,
165 "n_element_variations": 14,
166 "n_using_segments": 2,
167 "valid": true
168 }
169 }
170 ]