TestColumnTable and TestIndexUsageTable are not resilient to information schema changes #57306
Labels
affects-8.5
This bug affects the 8.5.x(LTS) versions.
severity/minor
type/bug
The issue is confirmed as a bug.
Bug Report
These test cases assert that the number of rows in the
information_schema.columns
andinformation_schema.tidb_index_usage
tables match certain hardcoded values. The number of rows reflect all columns and indexes in the database, not just those added by the test cases. Whenever any (unrelated) new column, table, or index is added to the information schema, these hardcoded values no longer match, causing the tests to fail spuriously.1. Minimal reproduce step (Required)
Add a column to
information_schema.statements_summary
and run these test cases:2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: