Skip to content

[Bug]: information_schema.TABLES rows/size columns always zero #32309

Closed as duplicate

Description

@Ariznawlll

Bug

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

SELECT count(*) AS total,
       sum(TABLE_ROWS = 0)   AS zero_rows,
       sum(DATA_LENGTH = 0)  AS zero_len
FROM information_schema.TABLES
WHERE TABLE_SCHEMA IN ('my_db1', 'my_db2');
-- total=1131, zero_rows=1129, zero_len=1129

SELECT TABLE_ROWS, DATA_LENGTH, AVG_ROW_LENGTH
FROM information_schema.TABLES
WHERE 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 FROM mo_catalog.mo_table_stats_alpha WHERE 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)

Activity

  1. added
    kind/bug
    on Nov 6, 2026
  2. added this to the MO-202611 milestone on Nov 6, 2026
  3. added theissue type on Nov 6, 2026
  4. XuPeng-SH commented on Nov 9, 2026

    @XuPeng-SH
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions