Cassandra 中LongType类型问题
如果Cassandra 建表中字段为LongType 在进行插入进报错Cassandra::InvalidRequestException=HASH如果字段类型为 UTF8Type 就可以成功插入
我的建表语句为
create column family m01
with comparator = AsciiType
and column_metadata =
[{column_name: name, validation_class : LongType, index_type: KEYS},
{column_name: age, validation_class: LongType},
{column_name: height, validation_class: UTF8Type}
]
and compression_options={sstable_compression:SnappyCompressor, chunk_length_kb:64};
我的 版本是apache-cassandra-1.0.2
页:
[1]