Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlsmith: fix flaky TestGenerateParse
This commit fixes the `sqlsmith.TestGenerateParse` test that has been flaking since #66599 when primary index stored columns were added to the output of `SHOW INDEXES`. sqlsmith uses `SHOW INDEXES` to build an in-memory representation of indexes to help generate interesting randomized queries. It is not equipped to handle `rowid` primary indexes, so rows output from `SHOW INDEXES` with a `column_name` of `rowid` are filtered out. Stored columns of primary indexes, now included in `SHOW INDEXES`, are not filtered out, causing sqlsmith to build an in-memory representation of `rowid` indexes that have only stored columns and no indexed columns. This breaks the assumption within sqlsmith that each index should have at least one indexed column, causing panics. This commit fixes the issue by removing indexes with no indexed columns from sqlsmith's in-memory index map. Fixes #66723 Release note: None
- Loading branch information