Search code examples
javacassandracqlsh

Can we set user defined field length in Cassandra database


Can we set user defined field length in Cassandra database USING CQL. I would like to validate input field in cassandra ex. age filed should not be more than 60 and less than 18.


Solution

  • No, there is no such thing in cassandra

    You have to validate input from the application layer.