[
https://issues.apache.org/jira/browse/CASSANDRA-20458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Miklosovic updated CASSANDRA-20458:
------------------------------------------
Status: Open (was: Patch Available)
> Support definition of constraint on a newly added column while altering a
> table
> -------------------------------------------------------------------------------
>
> Key: CASSANDRA-20458
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20458
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Feature/Constraints
> Reporter: Stefan Miklosovic
> Assignee: Stefan Miklosovic
> Priority: Normal
> Fix For: 5.x
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> We can't specify check while adding a column. It is possible to do that while
> altering already existing column.
> {code}
> cassandra@cqlsh> ALTER TABLE ks.my_times ADD newcolumn int CHECK newcolumn >
> 10;
> SyntaxException: line 1:42 mismatched input 'CHECK' expecting EOF
> (...ks.my_times ADD newcolumn int [CHECK] newcolumn...)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]