In Apache Cassandra, is it possible to set the comparator and default validator using CQL 3.0?

StackOverflow https://stackoverflow.com/questions/14111523

  •  13-12-2021
  •  | 
  •  

Question

Based on the Datastax webinar "C*hristmas Comes Early – Creating your First Java Application with Apache Cassandra", it looks like inserted columns that are not part of the schema default to a bytes datatype while column names are tied to String. Is there any way to change this?

Was it helpful?

Solution

By default bytes type is taken as the validator for cassandra-column-values.This cannot be changed for the inserted records. In cassandra-cli use the following command to see the result in ascii

cli> assume validator as ascii;

cli> list

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top