Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Modify alter table column parser II #14898

Closed
wubx opened this issue Mar 11, 2024 · 3 comments · Fixed by #14979
Closed

Feature: Modify alter table column parser II #14898

wubx opened this issue Mar 11, 2024 · 3 comments · Fixed by #14979
Assignees
Labels
C-feature Category: feature good first issue Category: good first issue

Comments

@wubx
Copy link
Member

wubx commented Mar 11, 2024

Summary

Now

ALTER TABLE [ IF EXISTS ] [ <database_name>. ]<table_name> 
MODIFY [ COLUMN ] <column_name> <new_data_type> [ DEFAULT <constant_value> ][, COLUMN <column_name> <new_data_type> [ DEFAULT <constant_value> ], ... ]

alter table T modify c1 varchar, column c2 varchar;

improve

ALTER TABLE [ IF EXISTS ] [ <database_name>. ]<table_name> 
MODIFY [ COLUMN ] <column_name> <new_data_type> [ DEFAULT <constant_value> ][, [ COLUMN ] <column_name> <new_data_type> [ DEFAULT <constant_value> ], ... ]

alter table T modify c1 varchar, c2 varchar;

@wubx wubx added C-feature Category: feature good first issue Category: good first issue labels Mar 11, 2024
@wubx
Copy link
Member Author

wubx commented Mar 12, 2024

References: #14533

@TracyZYJ
Copy link
Contributor

Please assign me :)

@BohuTANG
Copy link
Member

Doc has updated: databendlabs/databend-docs@ef7d4c3, cc @soyeric128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature good first issue Category: good first issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants