You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: information_schema.TABLES rows/size columns always zero #32309
information_schema.TABLES reports TABLE_ROWS = 0, DATA_LENGTH = 0, INDEX_LENGTH = 0, AVG_ROW_LENGTH = 0 for essentially every user table, even tables with millions of rows.
Accurate statistics already exist inside MatrixOne (mo_catalog.mo_table_stats_alpha.table_stats has exact table_rows, table_size, block/object counts, refreshed every ~5 minutes), but they are not wired into the standard information_schema interface.
Repro
SELECTcount(*) AS total,
sum(TABLE_ROWS =0) AS zero_rows,
sum(DATA_LENGTH =0) AS zero_len
FROMinformation_schema.TABLESWHERE TABLE_SCHEMA IN ('my_db1', 'my_db2');
-- total=1131, zero_rows=1129, zero_len=1129SELECT TABLE_ROWS, DATA_LENGTH, AVG_ROW_LENGTH
FROMinformation_schema.TABLESWHERE TABLE_SCHEMA='jumpstats'AND TABLE_NAME='big9m';
-- 0, 0, 0 (the table actually holds 9,000,000 rows / ~85 MB)-- meanwhile the internal stats table is accurate:SELECT table_stats FROMmo_catalog.mo_table_stats_alphaWHERE table_name='big9m';
-- {"dblock_cnt": 1099, "dobject_cnt": 4, "table_rows": 9000000, "table_size": 85867887, ...}
Impact
Backup tools (e.g. mysqldump-style row estimation), capacity planning, monitoring dashboards and ORMs that read information_schema see every table as empty. MySQL's InnoDB provides estimated values here; zero is strictly worse than an estimate.
Version
8.0.30-MatrixOne-v1.3.0 (standalone local cluster, macOS)
Consolidated into #30910, which already tracks information_schema.TABLES row/size fields and populated index statistics. Your 9M-row TABLES repro and mo_table_stats_alpha control are preserved in a canonical-issue comment; this closure does not mean the metadata is fixed.
Activity
XuPeng-SH commentedon Nov 9, 2026
Consolidated into #30910, which already tracks information_schema.TABLES row/size fields and populated index statistics. Your 9M-row TABLES repro and mo_table_stats_alpha control are preserved in a canonical-issue comment; this closure does not mean the metadata is fixed.