smiklosovic commented on code in PR #3562:
URL: https://github.com/apache/cassandra/pull/3562#discussion_r1778888548
##########
src/java/org/apache/cassandra/cql3/statements/schema/CreateTableStatement.java:
##########
@@ -543,14 +559,25 @@ public String table()
return name.getName();
}
- public void addColumn(ColumnIdentifier column, CQL3Type.Raw type,
boolean isStatic, ColumnMask.Raw mask)
+ public void addColumn(ColumnIdentifier column, CQL3Type.Raw type,
boolean isStatic, ColumnMask.Raw mask, CqlConstraint cqlConstraint)
{
-
if (null != rawColumns.put(column, new ColumnProperties.Raw(type,
mask)))
throw ire("Duplicate column '%s' declaration for table '%s'",
column, name);
if (isStatic)
staticColumns.add(column);
+
+ if (cqlConstraint != null)
+ columnConstraints.put(column, cqlConstraint);
+ }
+
+ public void addTableConstraint(CqlConstraint constraint)
+ {
+ if (tableConstraints.contains(constraint))
+ {
Review Comment:
redundant braces
--
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]