cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Lin <>
Subject Error inserting boolean with CQL
Date Mon, 05 Nov 2012 22:58:22 GMT
Has anyone seen this error with Hector and CQL?

why:cannot parse 'true' as hex bytes cassandra CQL

I'm running a simple

insert into utf8_cf (KEY, booleanColumn1) values ('abcdefg', 'true')

the key is UTF8 and IsTrue is boolean type.

I'm using Cassandra 1.1.6 and Hector trunk 1.1-2 that I built myself.
Here is the schema printout from CLI

[default@Keyspace2] show keyspaces;
Keyspace: Keyspace2:
  Replication Strategy: org.apache.cassandra.locator.SimpleStrategy
  Durable Writes: true
    Options: [replication_factor:1]
  Column Families:
    ColumnFamily: utf8_cf
      Key Validation Class: org.apache.cassandra.db.marshal.UTF8Type
      Default column value validator: org.apache.cassandra.db.marshal.BytesType
      Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
      GC grace seconds: 864000
      Compaction min/max thresholds: 4/32
      Read repair chance: 1.0
      DC Local Read repair chance: 0.0
      Replicate on write: true
      Caching: KEYS_ONLY
      Bloom Filter FP chance: default
      Built indexes: []
      Column Metadata:
        Column Name: stringColumn1
          Validation Class: org.apache.cassandra.db.marshal.UTF8Type
        Column Name: floatColumn1
          Validation Class: org.apache.cassandra.db.marshal.FloatType
        Column Name: integerColumn1
          Validation Class: org.apache.cassandra.db.marshal.IntegerType
        Column Name: decimalColumn1
          Validation Class: org.apache.cassandra.db.marshal.DecimalType
        Column Name: booleanColumn1
          Validation Class: org.apache.cassandra.db.marshal.BooleanType
        Column Name: objectColumn1
          Validation Class: org.apache.cassandra.db.marshal.BytesType
        Column Name: dateColumn1
          Validation Class: org.apache.cassandra.db.marshal.TimeUUIDType
      Compaction Strategy:
      Compression Options:


View raw message