Skip to content

docs: update nightly docs for information_schema.statistics - #2537

Merged
v0y4g3r merged 3 commits into
mainfrom
copilot/update-docs-information-schema-statistics-table
Jun 16, 2026
Merged

docs: update nightly docs for information_schema.statistics#2537
v0y4g3r merged 3 commits into
mainfrom
copilot/update-docs-information-schema-statistics-table

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Closes #2558
Closes #2534

What's Changed in this PR

This updates the nightly English and Chinese docs for the new information_schema.statistics table introduced by GreptimeDB, and aligns nearby INFORMATION_SCHEMA references with the new index metadata behavior.

  • New STATISTICS reference page

    • Add nightly STATISTICS docs in en and zh.
    • Document schema, MySQL-compatible semantics, SHOW INDEX relationship, and example output for primary, time, inverted, fulltext, and skipping indexes.
  • Overview and navigation updates

    • Replace STATISTICS = “Not supported” in INFORMATION_SCHEMA overview with the new doc link.
    • Add the nightly page to sidebars.ts.
  • Related doc corrections from the same feature

    • Clarify that KEY_COLUMN_USAGE now covers key constraints, while secondary index metadata lives in STATISTICS.
    • Update TABLE_CONSTRAINTS wording to point readers to STATISTICS / SHOW INDEX.
    • Normalize COLUMNS.is_nullable examples to YES / NO to match current metadata output.
SELECT table_schema,
       table_name,
       non_unique,
       index_name,
       seq_in_index,
       column_name,
       index_type,
       greptime_index_type
FROM information_schema.statistics
WHERE table_schema = 'public'
  AND table_name IN ('system_metrics', 'test')
ORDER BY table_name, index_name, seq_in_index, column_name;

Checklist

  • Please confirm that all corresponding versions of the documents have been revised.
  • Please ensure that the content in sidebars.ts matches the current document structure when you changed the document structure.
  • This change requires follow-up update in localized docs.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 65307b5
Status: ✅  Deploy successful!
Preview URL: https://d5c77d3d.greptime-docs.pages.dev
Branch Preview URL: https://copilot-update-docs-informat.greptime-docs.pages.dev

View logs

Copilot AI changed the title [WIP] Update documentation for information_schema statistics table Update nightly docs for information_schema.statistics Jun 8, 2026
Copilot AI requested a review from killme2008 June 8, 2026 12:31
@killme2008 killme2008 changed the title Update nightly docs for information_schema.statistics docs: update nightly docs for information_schema.statistics Jun 15, 2026
@killme2008
killme2008 marked this pull request as ready for review June 15, 2026 07:14
@killme2008
killme2008 requested a review from fengjiachun as a code owner June 15, 2026 07:14
@killme2008

Copy link
Copy Markdown
Member

@fengjiachun PTAL

@killme2008
killme2008 requested review from sunng87 and v0y4g3r June 15, 2026 07:15
@v0y4g3r
v0y4g3r merged commit 1f00ed8 into main Jun 16, 2026
6 of 7 checks passed
@v0y4g3r
v0y4g3r deleted the copilot/update-docs-information-schema-statistics-table branch June 16, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update docs for fix!: correct information_schema index metadata Update docs for feat: add information_schema statistics table

3 participants