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
  •  | 
  •  

Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top