github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/sstable/testdata/rewriter_v3 (about) 1 build block-size=1 index-block-size=1 filter 2 a_xyz.SET.1:a 3 b_xyz.SET.1:b 4 c_xyz.SET.1:c 5 ---- 6 point: [a_xyz#1,1-c_xyz#1,1] 7 seqnums: [1-1] 8 9 rewrite from=xyz to=123 block-size=1 index-block-size=1 filter 10 ---- 11 rewrite failed: a valid splitter is required to rewrite suffixes 12 13 rewrite from=xyz to=123 block-size=1 index-block-size=1 filter comparer-split-4b-suffix 14 ---- 15 rewrite failed: rewriting data blocks: mismatched Comparer leveldb.BytewiseComparator vs comparer-split-4b-suffix, replacement requires same splitter to copy filters 16 17 build block-size=1 index-block-size=1 filter comparer-split-4b-suffix 18 aa_xyz.SET.1:a 19 ba_xyz.SET.1:b 20 ca_xyz.SET.1:c 21 ---- 22 point: [aa_xyz#1,1-ca_xyz#1,1] 23 seqnums: [1-1] 24 25 rewrite from=yz to=23 block-size=1 index-block-size=1 filter comparer-split-4b-suffix 26 ---- 27 rewrite failed: rewriting data blocks: key has suffix "_xyz", expected "yz" 28 29 rewrite from=a_xyz to=a_123 block-size=1 index-block-size=1 filter comparer-split-4b-suffix 30 ---- 31 rewrite failed: rewriting data blocks: key has suffix "_xyz", expected "a_xyz" 32 33 build block-size=1 index-block-size=1 filter comparer-split-4b-suffix 34 a_xyz.SET.1:a 35 b_xyz.SET.1:b 36 c_xyz.SET.1:c 37 ---- 38 point: [a_xyz#1,1-c_xyz#1,1] 39 seqnums: [1-1] 40 41 layout 42 ---- 43 0 data (26) 44 31 data (26) 45 62 data (26) 46 93 filter (69) 47 167 index (22) 48 194 index (22) 49 221 index (22) 50 248 top-index (48) 51 301 properties (630) 52 936 meta-index (79) 53 1020 footer (53) 54 1073 EOF 55 56 scan 57 ---- 58 a_xyz#1,1:a 59 b_xyz#1,1:b 60 c_xyz#1,1:c 61 62 get 63 b_xyz 64 f_xyz 65 c_xyz 66 ---- 67 b 68 get f_xyz: pebble: not found 69 c 70 71 rewrite from=_xyz to=_123 block-size=1 index-block-size=1 filter comparer-split-4b-suffix 72 ---- 73 point: [a_123#1,1-c_123#1,1] 74 seqnums: [1-1] 75 76 layout 77 ---- 78 0 data (26) 79 31 data (26) 80 62 data (26) 81 93 filter (69) 82 167 index (22) 83 194 index (22) 84 221 index (22) 85 248 top-index (48) 86 301 properties (630) 87 936 meta-index (79) 88 1020 footer (53) 89 1073 EOF 90 91 scan 92 ---- 93 a_123#1,1:a 94 b_123#1,1:b 95 c_123#1,1:c 96 97 get 98 b_123 99 f_123 100 c_123 101 ---- 102 b 103 get f_123: pebble: not found 104 c 105 106 rewrite from=_123 to=_456 block-size=1 index-block-size=1 filter comparer-split-4b-suffix concurrency=2 107 ---- 108 point: [a_456#1,1-c_456#1,1] 109 seqnums: [1-1] 110 111 layout 112 ---- 113 0 data (26) 114 31 data (26) 115 62 data (26) 116 93 filter (69) 117 167 index (22) 118 194 index (22) 119 221 index (22) 120 248 top-index (48) 121 301 properties (630) 122 936 meta-index (79) 123 1020 footer (53) 124 1073 EOF 125 126 scan 127 ---- 128 a_456#1,1:a 129 b_456#1,1:b 130 c_456#1,1:c 131 132 get 133 b_456 134 f_456 135 c_456 136 ---- 137 b 138 get f_456: pebble: not found 139 c 140 141 rewrite from=_456 to=_xyz block-size=1 index-block-size=1 filter comparer-split-4b-suffix concurrency=3 142 ---- 143 point: [a_xyz#1,1-c_xyz#1,1] 144 seqnums: [1-1] 145 146 layout 147 ---- 148 0 data (26) 149 31 data (26) 150 62 data (26) 151 93 filter (69) 152 167 index (22) 153 194 index (22) 154 221 index (22) 155 248 top-index (48) 156 301 properties (630) 157 936 meta-index (79) 158 1020 footer (53) 159 1073 EOF 160 161 scan 162 ---- 163 a_xyz#1,1:a 164 b_xyz#1,1:b 165 c_xyz#1,1:c 166 167 get 168 b_xyz 169 f_xyz 170 c_xyz 171 ---- 172 b 173 get f_xyz: pebble: not found 174 c 175 176 177 rewrite from=_xyz to=_123 block-size=1 index-block-size=1 filter comparer-split-4b-suffix concurrency=4 178 ---- 179 point: [a_123#1,1-c_123#1,1] 180 seqnums: [1-1] 181 182 layout 183 ---- 184 0 data (26) 185 31 data (26) 186 62 data (26) 187 93 filter (69) 188 167 index (22) 189 194 index (22) 190 221 index (22) 191 248 top-index (48) 192 301 properties (630) 193 936 meta-index (79) 194 1020 footer (53) 195 1073 EOF 196 197 scan 198 ---- 199 a_123#1,1:a 200 b_123#1,1:b 201 c_123#1,1:c 202 203 get 204 b_123 205 f_123 206 c_123 207 ---- 208 b 209 get f_123: pebble: not found 210 c 211 212 # Rewrite a table that contain only range keys. 213 214 build block-size=1 index-block-size=1 filter comparer-split-4b-suffix 215 rangekey: a-b:{(#1,RANGEKEYSET,_xyz)} 216 rangekey: b-c:{(#1,RANGEKEYSET,_xyz)} 217 rangekey: c-d:{(#1,RANGEKEYSET,_xyz)} 218 ---- 219 rangekey: [a#1,21-d#72057594037927935,21] 220 seqnums: [1-1] 221 222 scan-range-key 223 ---- 224 a-b:{(#1,RANGEKEYSET,_xyz)} 225 b-c:{(#1,RANGEKEYSET,_xyz)} 226 c-d:{(#1,RANGEKEYSET,_xyz)} 227 228 rewrite from=_xyz to=_123 block-size=1 index-block-size=1 filter comparer-split-4b-suffix 229 ---- 230 rangekey: [a#1,21-d#72057594037927935,21] 231 seqnums: [1-1] 232 233 scan-range-key 234 ---- 235 a-b:{(#1,RANGEKEYSET,_123)} 236 b-c:{(#1,RANGEKEYSET,_123)} 237 c-d:{(#1,RANGEKEYSET,_123)}