github.com/zuoyebang/bitalostable@v1.0.1-0.20240229032404-e3b99a834294/internal/keyspan/testdata/truncate (about) 1 build 2 1: b-d 3 2: d-f 4 3: f-h 5 ---- 6 1: b-d 7 2: d-f 8 3: f-h 9 10 11 truncate a-b 12 ---- 13 14 truncate a-c 15 ---- 16 1: bc 17 18 truncate a-d 19 ---- 20 1: b-d 21 22 truncate a-e 23 ---- 24 1: b-d 25 2: de 26 27 # The second range tombstone should be elided, as it starts after the 28 # specified file end key. 29 30 truncate a-e endKey=(d.SET.3) 31 ---- 32 1: b-d 33 34 # The second range tombstone should be back in the below example, as the 35 # specified end key has a trailer (RANGEDEL.2) exactly matching that of the 36 # rangedel tombstone's start key. 37 38 truncate a-e endKey=(d.RANGEDEL.2) 39 ---- 40 1: b-d 41 2: de 42 43 truncate a-e endKey=(d.SET.1) 44 ---- 45 1: b-d 46 2: de 47 48 # Similarly, truncate range tombstones that end before the start key. 49 50 truncate a-e startKey=(d.SET.3) 51 ---- 52 2: de 53 54 truncate a-e startKey=(c.SET.3) 55 ---- 56 1: b-d 57 2: de 58 59 truncate a-f 60 ---- 61 1: b-d 62 2: d-f 63 64 truncate a-g 65 ---- 66 1: b-d 67 2: d-f 68 3: fg 69 70 truncate a-h 71 ---- 72 1: b-d 73 2: d-f 74 3: f-h 75 76 77 truncate b-b 78 ---- 79 80 truncate b-c 81 ---- 82 1: bc 83 84 truncate b-d 85 ---- 86 1: b-d 87 88 truncate b-e 89 ---- 90 1: b-d 91 2: de 92 93 truncate b-f 94 ---- 95 1: b-d 96 2: d-f 97 98 truncate b-g 99 ---- 100 1: b-d 101 2: d-f 102 3: fg 103 104 truncate b-h 105 ---- 106 1: b-d 107 2: d-f 108 3: f-h 109 110 111 truncate c-c 112 ---- 113 114 truncate c-d 115 ---- 116 1: cd 117 118 truncate c-e 119 ---- 120 1: cd 121 2: de 122 123 truncate c-f 124 ---- 125 1: cd 126 2: d-f 127 128 truncate c-g 129 ---- 130 1: cd 131 2: d-f 132 3: fg 133 134 truncate c-h 135 ---- 136 1: cd 137 2: d-f 138 3: f-h 139 140 141 truncate d-d 142 ---- 143 144 truncate d-e 145 ---- 146 2: de 147 148 truncate d-f 149 ---- 150 2: d-f 151 152 truncate d-g 153 ---- 154 2: d-f 155 3: fg 156 157 truncate d-h 158 ---- 159 2: d-f 160 3: f-h 161 162 163 truncate e-e 164 ---- 165 166 truncate e-f 167 ---- 168 2: ef 169 170 truncate e-g 171 ---- 172 2: ef 173 3: fg 174 175 truncate e-h 176 ---- 177 2: ef 178 3: f-h 179 180 181 truncate f-f 182 ---- 183 184 truncate f-g 185 ---- 186 3: fg 187 188 truncate f-h 189 ---- 190 3: f-h 191 192 193 truncate g-g 194 ---- 195 196 truncate g-h 197 ---- 198 3: gh