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