Skip to content

feat(datafusion): support table and column comment DDL - #1287

Merged
JingsongLi merged 1 commit into
apache:mainfrom
JingsongLi:codex/fusion-comment-ddl
Nov 2, 2026
Merged

JingsongLi merged 1 commit into
apache:mainfrom
JingsongLi:codex/fusion-comment-ddl

Conversation

@JingsongLi

@JingsongLi JingsongLi commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Closes #1281.

SQLContext rejects table COMMENT options and ALTER COLUMN COMMENT syntax even though Paimon's SchemaChange API already supports metadata comments.

Brief change log

  • Persist table comments during CREATE TABLE and route COMMENT ON TABLE/COLUMN through existing SchemaChange APIs.
  • Parse ALTER TABLE ... ALTER COLUMN ... COMMENT using tokens, preserving literals and quoted identifiers.
  • Honor identifier normalization and table-only IF EXISTS semantics; reject temporary shadowing, unsupported modifiers and trailing statements.

Tests

API and Format

Adds SQLContext SQL capabilities. No storage-format or Rust public API changes.

Documentation

Documented syntax, type/null/error behavior and supported limits in docs/src/sql.md.

@leaves12138 leaves12138 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JingsongLi
JingsongLi merged commit 9b4e194 into apache:main Nov 2, 2026
15 checks passed
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.

[datafusion] Support table and column comment DDL

2 participants