Conversation
| ------ | ||
| [openblock,card-content] | ||
| ------ | ||
| Introducting the Cassandra Constraints Framework, a new feature that allows users to define data validation rules at write time. |
There was a problem hiding this comment.
Typo: Introducting -> Introducing
| :description: The Apache Cassandra Community | ||
| :keywords: | ||
|
|
||
| Casandra has had limited tools to handle value limits and rules at the time of writing data to a table. Constraints Framework positions itself as the center piece to provide an easy approach to be able to define those rules that gives such flexibility to both Cassandra users and operators by adding a framework to define generic checks at write time. |
| :description: The Apache Cassandra Community | ||
| :keywords: | ||
|
|
||
| Casandra has had limited tools to handle value limits and rules at the time of writing data to a table. Constraints Framework positions itself as the center piece to provide an easy approach to be able to define those rules that gives such flexibility to both Cassandra users and operators by adding a framework to define generic checks at write time. |
There was a problem hiding this comment.
The paragraph seems hard to read. I used a LLM to simplify this - "Cassandra has had limited tools to handle value limits and rules when writing data to tables. The Constraints Framework positions itself as a centerpiece, providing an easy approach to define rules that give flexibility to both Cassandra users and operators by adding a framework for generic checks at write time." It made the following changes:
- Fixed spelling of "Cassandra"
- Changed "at the time of writing" to "when writing"
- Added "The" before "Constraints Framework"
- Changed "center piece" to "centerpiece"
- Improved flow by restructuring parts of the sentence
- Fixed subject-verb agreement ("gives" to "give")
- Minor phrasing improvements for clarity
| ---- | ||
| CREATE TABLE keyspace.table ( | ||
| name text, | ||
| i int CHECK (condition) | ||
| ..., | ||
| ); | ||
| ---- | ||
|
|
||
| Altering Existing Constraints: | ||
| ---- | ||
| ALTER TABLE [IF EXISTS] <table> ALTER [IF EXISTS] <column> CHECK <condition>; | ||
| ---- | ||
| Dropping Constraints: | ||
| ---- | ||
| ALTER TABLE [IF EXISTS] <table> ALTER [IF EXISTS] <column> DROP CHECK; | ||
| ---- |
There was a problem hiding this comment.
It would be nice if these were actual examples. If we only want to show syntax, we should change the sentence to "Here is the syntax on how to use constraints in CQL:". I would prefer an actual example here, with a link to a CQL doc showing syntax.
himanshujindal
left a comment
There was a problem hiding this comment.
Thanks for doing this. I had no idea about the feature before reviewing the PR, and after reading this, I have a good idea of the feature. Some comments around typo and grammar.
PS: I don't know much about the feature, so I can't attest to the correctness of the blog. :)
|
@bbotella wanna squash your commits and get this merged ? |
No description provided.