Add tests for DROP INDEX#2747
Conversation
|
Ito Test Report ✅13 test cases ran. 13 passed. All 13 test cases passed with zero failures, indicating the DROP INDEX path is behaving as expected in this run, including under upgraded dependencies and controlled local auth/SCRAM bypass settings used only to stabilize execution. The key verified behaviors were: plain DROP INDEX succeeds once then returns “unable to find index” on repeat or missing targets (surfacing migration drift), DROP INDEX IF EXISTS is idempotent and deterministic even in concurrent races, quoted mixed-case name handling drops only the intended index, and planner/catalog state correctly invalidates index plans after drops (no stale IndexedTableAccess across repeats or reconnects). ✅ Passed (13)Commit: Tell us how we did: Give Ito Feedback |
Footnotes
|
6c78455 to
127fffb
Compare
Ito Test Report ❌
8 test cases ran. 1 failed, 2 additional findings, 5 passed. Overall, 8 test cases ran with 5 passing and 3 failing: DROP INDEX behavior was largely correct (IF EXISTS stayed idempotent, plain second DROP INDEX produced the expected missing-index error, migration replay with guards succeeded, planner switched to a non-index plan after drop, and dropping a mixed-case index did not remove unrelated indexes). ❌ Failed (1)
🟠 Skipped uniqueness gate misses regressions
Relevant code:
Skip: true,
Name: "Index names must be unique",
if script.Skip {
t.Skip("Skip has been set in the script")
}
{
Query: "CREATE INDEX idx_same_name ON t2 (v1);",
ExpectedErr: `relation "idx_same_name" already exists`,
},✅ Passed (5)ℹ️ Additional Findings (2)
|








Depends on: dolthub/go-mysql-server#3555