yifan-c commented on code in PR #3562:
URL: https://github.com/apache/cassandra/pull/3562#discussion_r1792416973
##########
src/antlr/Parser.g:
##########
@@ -972,10 +999,22 @@ alterTableStatement returns [AlterTableStatement.Raw stmt]
| K_DROP K_COMPACT K_STORAGE { $stmt.dropCompactStorage(); }
+ | K_DROP K_CONSTRAINT name=ident { $stmt.dropConstraint(name); }
+ | K_ADD K_CONSTRAINT (name=ident)? K_CHECK
expr=alterCqlConstraintExp[stmt] { $stmt.addConstraint(name,
expr.prepareWithName(name)); }
Review Comment:
Yeah. I am aware of that. Now looking at the actual code, requiring explicit
constraint name feels easier to manage.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]