@@ -2885,7 +2885,6 @@ func TestChangefeedSchemaChangeAllowBackfill(t *testing.T) {
2885
2885
`drop_column: [2]->{"after": {"a": 2, "b": "2"}}` ,
2886
2886
})
2887
2887
sqlDB .Exec (t , `ALTER TABLE drop_column DROP COLUMN b` )
2888
- sqlDB .Exec (t , `INSERT INTO drop_column VALUES (3)` )
2889
2888
ts := schematestutils .FetchDescVersionModificationTime (t , s .TestServer .Server , `d` , `public` , `drop_column` , 2 )
2890
2889
2891
2890
// Backfill for DROP COLUMN b.
@@ -2896,7 +2895,8 @@ func TestChangefeedSchemaChangeAllowBackfill(t *testing.T) {
2896
2895
ts .AsOfSystemTime ()),
2897
2896
})
2898
2897
2899
- // Insert 3 into drop_column
2898
+ // Insert 3 into drop_column.
2899
+ sqlDB .Exec (t , `INSERT INTO drop_column VALUES (3)` )
2900
2900
assertPayloadsStripTs (t , dropColumn , []string {
2901
2901
`drop_column: [3]->{"after": {"a": 3}}` ,
2902
2902
})
@@ -2937,6 +2937,7 @@ func TestChangefeedSchemaChangeAllowBackfill(t *testing.T) {
2937
2937
// version 2. Then, when adding column c, it goes from 9->17, with the schema change being visible at
2938
2938
// the 7th step (version 15). Finally, when adding column d, it goes from 17->25 ith the schema change
2939
2939
// being visible at the 7th step (version 23).
2940
+ // TODO(#142936): Investigate if this descriptor version hardcoding is sound.
2940
2941
dropTS := schematestutils .FetchDescVersionModificationTime (t , s .TestServer .Server , `d` , `public` , `multiple_alters` , 2 )
2941
2942
addTS := schematestutils .FetchDescVersionModificationTime (t , s .TestServer .Server , `d` , `public` , `multiple_alters` , 15 )
2942
2943
addTS2 := schematestutils .FetchDescVersionModificationTime (t , s .TestServer .Server , `d` , `public` , `multiple_alters` , 23 )
0 commit comments