About validators

Defining a default row key validator for a table.

Using the CLI you can define a default row key validator for a table using the key_validation_class property. Using CQL, you use built-in key validators to validate row key values. For static tables, define each column and its associated type when you define the table using the column_metadata property.

Key and column validators may be added or changed in a table definition at any time. If you specify an invalid validator on your table, client requests that respect that metadata are confused, and data inserts or updates that do not conform to the specified validator are rejected.

You cannot know the column names of dynamic tables ahead of time, so specify a default_validation_class instead of defining the per-column data types.

Key and column validators can be added or changed in a table definition at any time. If you specify an invalid validator on the table, client requests that respect that metadata get confused, and data inserts or updates that do not conform to the specified validator are rejected.