Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CASSANDRA-20331 - Constraints in system_schema #3906

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

bbotella
Copy link
Contributor

CASSANDRA-20331 - Expose constraints in system_schema.column_constraints

https://issues.apache.org/jira/browse/CASSANDRA-20331

CASSANDRA-20331 - Expose constraints in system_schema.column_constraints

Add changes
{
if (column.name == columnName)
{
constraints.validate(column);
column.setColumnConstraints(constraints);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was using a mutable object and causing problems when detecting metadata differences during alter table executions. By following a similar pattern to the one followed on column masks, we ensure that the changes are detected.

@smiklosovic smiklosovic added the constraints CEP-42 label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants