[ https://issues.apache.org/jira/browse/CASSANDRA-16916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17505910#comment-17505910 ]
Ekaterina Dimitrova commented on CASSANDRA-16916: ------------------------------------------------- [~djanand] , I can assure you I didn't forget this one, but a lot of things happened this week and I was pulled to deal with some things in addition. In order this patch not to get outdated again, I asked also a few other contributors if they can look at it. We agreed whoever gets a bit of free time first will just take it. CC [~Bereng] , [~adelapena] , [~brandon.williams] and [~blerer] In the meantime I pushed Jenkins CI [here|https://jenkins-cm4.apache.org/job/Cassandra-devbranch/1495/] so you can see if something got broken and needs attention. As we had a lot of troubles these days running CI I will also take a quick look tomorrow to ensure nothing failed because of CI issues, not necessarily related to your patch. > Add support for IF EXISTS and IF NOT EXISTS in ALTER statements > --------------------------------------------------------------- > > Key: CASSANDRA-16916 > URL: https://issues.apache.org/jira/browse/CASSANDRA-16916 > Project: Cassandra > Issue Type: Improvement > Components: CQL/Syntax > Reporter: Benjamin Lerer > Assignee: Jogesh Anand > Priority: Normal > Fix For: 4.x > > > It would make sense to add support for {{IF EXISTS}} and {{IF NOT EXISTS}} in > the different {{ALTER}} statements. > For example: > * {{ALTER TABLE IF EXISTS myTable ...}} > * {{ALTER TABLE myTable ADD IF NOT EXISTS ...}} > * {{ALTER TABLE myTable DROP IF EXISTS ...}} > * {{ALTER TYPE IF EXISTS myType ...}} > * {{ALTER TYPE myType ADD IF NOT EXISTS ...}} > +Additional info for newcomers:+ > In order to implement this change you will need to change the {{Parser.g}} > ANTLR file located in the src/antlr directory and the java classes > corresponding to the different alter statements located in the > {{org.apache.cassandra.cql3.statements.schema}} package. You can look at the > CreateTableStatement class to see how it was done there. > The unit test for the CQL logic are located under > {{org.apache.cassandra.cql3.validation}} -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org