Skip to content

Commit ca3452b

Browse files
authored
Merge pull request #158406 from fqazi/skipDropColumnError
release-24.3: sql: TestExplainGist ignore DROP COLUMN flakes
2 parents 6717536 + 20362d7 commit ca3452b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkg/ccl/testccl/sqlccl/explain_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,17 @@ func TestExplainGist(t *testing.T) {
215215
return
216216
}
217217
}
218+
// Check for declarative schema changer errors.
219+
for _, stmtAndError := range []struct {
220+
stmt string
221+
err string
222+
}{
223+
{"DROP COLUMN", "ALTER TABLE: unable to make progress"}, // #152841
224+
} {
225+
if strings.Contains(err.Error(), stmtAndError.err) && strings.Contains(stmt, stmtAndError.stmt) {
226+
return
227+
}
228+
}
218229
t.Log(stmts.String())
219230
t.Fatalf("%v:\n%s;", err, stmt)
220231
}

0 commit comments

Comments
 (0)