Skip to content

add create table comment on table clause to table spec #2296

@Allam76

Description

@Allam76

In the current version comments on columns are passed on to the create statement api. Comment on the table itself is not. It is parsed in the AST but not carried over to the table spec.

Could it be possible to implement that? I guess a string map to the table spec structure in ddl.go should do it,

Example sql from google:

CREATE TABLE example (
  example_column INT COMMENT "This is an example column",
  another_column VARCHAR COMMENT "One more column"
) COMMENT="This is a comment about table";

It is the last comment "This is a comment about table" that is missing
Many thanks
Martin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions