Database Reference
In-Depth Information
Figure 2-17 . Structure of twitter keyspace
3.
Let's try to store some data in the column family:
set default[1]['type']='bytes'; gives an error
Figure 2-18 shows that this produces an error.
Figure 2-18 . Error while storing string value but column value is of bytes type
Since the comparator and validator are set to default data type
(e.g., BytesType ), Cassandra-cli is not able to parse and store such
requests.
4.
To get step 3 working, we need to use the assume function to
provide some hint:
assume default keys as UTF8Type;
assume default comparator as UTF8Type;
assume default validator as UTF8Type;
5.
Now let's try to change the comparator from BytesType to
UTF8Type :
update column family default with
comparator='UTF8Type';
gives error
 
 
 
Search WWH ::




Custom Search