@@ -217,7 +217,6 @@ func TestAdaptiveEncodingText(t *testing.T) {
217217
218218func TestAdaptiveEncodingVarbit (t * testing.T ) {
219219 columnType := "varbit"
220- fullSizeOutOfLineRepr := fullSizeVarbit
221220 RunScripts (t , []ScriptTest {
222221 {
223222 Name : "Adaptive Encoding With One Column" ,
@@ -293,59 +292,6 @@ func TestAdaptiveEncodingVarbit(t *testing.T) {
293292 Query : "select i from blobt2 where b2 = LOAD_FILE('testdata/halfSize')" ,
294293 Expected : []sql.Row {{"FH" }, {"HH" }, {"TH" }},
295294 },
296- {
297- // Test creating an index on an adaptive encoding column, matching against out-of-band values
298- Query : "CREATE INDEX bidx ON blobt2 (b1)" ,
299- },
300- {
301- Query : "select i, b1 FROM blobt2 WHERE b1 LIKE '\x01 %'" ,
302- Expected : []sql.Row {
303- {"FF" , fullSizeOutOfLineRepr },
304- {"FH" , fullSizeOutOfLineRepr },
305- {"FT" , fullSizeOutOfLineRepr },
306- },
307- },
308- {
309- // Test creating an index on an adaptive encoding column, matching against inline values
310- Query : "CREATE INDEX bidx2 ON blobt2 (b2)" ,
311- },
312- {
313- Query : "select i, b2 FROM blobt2 WHERE b2 LIKE '\x02 %'" ,
314- Expected : []sql.Row {
315- {"FH" , halfSizeVarbit },
316- {"HH" , halfSizeVarbit },
317- {"TH" , halfSizeVarbit },
318- },
319- },
320- {
321- // Tuples containing adaptive columns should be independent of how the tuple was created.
322- // And adaptive values are always outlined starting from the left.
323- // This means that in a table with two adaptive columns where both columns were previously stored out-of line,
324- // Decreasing the size of the second column may allow both columns to be stored inline.
325- Query : "UPDATE blobt2 SET b2 = LOAD_FILE('testdata/tinyFileVarbit') WHERE i = 'HH'" ,
326- },
327- {
328- Query : "select i, b1, b2 from blobt2 where i = 'HH'" ,
329- Expected : []sql.Row {{"HH" , halfSizeVarbit , tinyVarbit }},
330- },
331- {
332- // Similar to the above, dropping a column can change whether the other column is inlined.
333- Query : "ALTER TABLE blobt2 DROP COLUMN b2" ,
334- },
335- {
336- Query : "select i, b1 from blobt2" ,
337- Expected : []sql.Row {
338- {"FF" , fullSizeVarbit },
339- {"HF" , halfSizeVarbit },
340- {"TF" , tinyVarbit },
341- {"FH" , fullSizeVarbit },
342- {"HH" , halfSizeVarbit },
343- {"TH" , tinyVarbit },
344- {"FT" , fullSizeVarbit },
345- {"HT" , halfSizeVarbit },
346- {"TT" , tinyVarbit },
347- },
348- },
349295 },
350296 },
351297 })
0 commit comments