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

문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top