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

Alter table rename #1198

Merged
merged 1 commit into from
Jan 23, 2023
Merged

Alter table rename #1198

merged 1 commit into from
Jan 23, 2023

Conversation

acquamarin
Copy link
Collaborator

@acquamarin acquamarin commented Jan 23, 2023

This PR adds support to allow users to rename an existing table or column of a table.
Grammar:

  1. Rename existing table:
    alter table [tableName] rename to [newName]
  2. Rename existing property of a table:
    alter table [tableName] rename [propertyName] to [newPropertyName]

src/antlr4/Cypher.g4 Outdated Show resolved Hide resolved
src/catalog/catalog_structs.cpp Outdated Show resolved Hide resolved
src/catalog/catalog_structs.cpp Show resolved Hide resolved
src/binder/bind/bind_ddl.cpp Outdated Show resolved Hide resolved
src/binder/bind/bind_ddl.cpp Outdated Show resolved Hide resolved
@acquamarin acquamarin merged commit 9253d89 into master Jan 23, 2023
@acquamarin acquamarin deleted the alter-rename branch January 23, 2023 15:10
@ray6080 ray6080 changed the title add support to rename property/table Alter table rename Jan 27, 2023
@ray6080 ray6080 added the feature New features or missing components of existing features label Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features or missing components of existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants