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