Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 16, 2025

What's Changed in this PR

Documents the COMMENT feature from GreptimeTeam/greptimedb#7060 for ALTER TABLE operations. The CREATE statements and INFORMATION_SCHEMA already documented COMMENT support; this adds the missing ALTER operations.

Changes

  • ALTER TABLE syntax: Added MODIFY COLUMN name SET COMMENT comment for column-level comments
  • Table options: Added comment option for table-level comments via SET/UNSET
  • Examples: Setting/unsetting comments on tables and columns
  • Metadata: Updated keywords to include "column comment" and "table comment"

Example Usage

-- Set column comment
ALTER TABLE monitor MODIFY COLUMN load_15 SET COMMENT 'Load average over 15 minutes';

-- Set table comment
ALTER TABLE monitor SET 'comment'='Monitor metrics table';

-- Remove table comment
ALTER TABLE monitor UNSET 'comment';

Comments are viewable via SHOW CREATE TABLE or INFORMATION_SCHEMA.COLUMNS/INFORMATION_SCHEMA.TABLES.

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.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • googlechromelabs.github.io
    • Triggering command: /usr/local/bin/node node install.mjs (dns block)
  • https://api.github.com/repos/GreptimeTeam/greptimedb/pulls/7060
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)
  • https://storage.googleapis.com/chrome-for-testing-public/137.0.7151.119/linux64/chrome-headless-shell-linux64.zip
    • Triggering command: /usr/local/bin/node node install.mjs (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Update docs for feat: table/column/flow COMMENT</issue_title>
<issue_description>A document change request is generated from GreptimeTeam/greptimedb#7060</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 16, 2025

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3da710e
Status: ✅  Deploy successful!
Preview URL: https://7ec6de8d.greptime-docs.pages.dev
Branch Preview URL: https://copilot-update-docs-for-tabl.greptime-docs.pages.dev

View logs

Copilot AI changed the title [WIP] Update documentation for table/column/flow feature Update docs for feat: table/column/flow COMMENT Dec 16, 2025
Copilot AI requested a review from fengjiachun December 16, 2025 10:19
@fengjiachun fengjiachun requested a review from waynexia December 16, 2025 10:50
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 feat: table/column/flow COMMENT

2 participants