diff --git a/pkg/cmd/roachtest/tests/sqlsmith.go b/pkg/cmd/roachtest/tests/sqlsmith.go index a21fb9876b14..b65c8ff09d37 100644 --- a/pkg/cmd/roachtest/tests/sqlsmith.go +++ b/pkg/cmd/roachtest/tests/sqlsmith.go @@ -228,6 +228,11 @@ INSERT INTO seed_mr_table DEFAULT VALUES;`, regionList[0]), _, err := conn.Exec(stmt) if err == nil { logStmt(stmt) + explainStmt := "EXPLAIN " + stmt + _, err = conn.Exec(explainStmt) + if err == nil { + logStmt(explainStmt) + } } done <- err }(ctx)