title: Cassandra insert boolean error
body: <p>I am using Cassandra, and the vision info is like this:</p>
  
  <pre><code>[cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3]
  </code></pre>
  
  <p>I found that in <code>CQL</code>, boolean can be inserted. <a href="http://www.datastax.com/dev/blog/whats-new-in-cql-3-0" rel="nofollow">cql insert</a></p>
  
  <p>My table schema is like this:</p>
  
  <pre><code>CREATE TABLE test.crew (
  name text PRIMARY KEY,
  alliance_trouble boolean,
  bunk int
  ) WITH bloom_filter_fp_chance = 0.01
  AND caching = '{"keys":"ALL", "rows_per_partition":"NONE"}'
  AND comment = ''
  AND compaction = {'min_threshold': '4', 'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32'}
  AND compression = {'sstable_compression': 'org.apache.cassandra.io.compress.LZ4Compressor'}
  AND dclocal_read_repair_chance = 0.1
  AND default_time_to_live = 0
  AND gc_grace_seconds = 864000
  AND max_index_interval = 2048
  AND memtable_flush_period_in_ms = 0
  AND min_index_interval = 128
  AND read_repair_chance = 0.0
  AND speculative_retry = '99.0PERCENTILE';
  </code></pre>
  
  <p>And when I use <code>cql</code> to insert</p>
  
  <pre><code>insert into crew (alliance_trouble) values ('true');
  </code></pre>
  
  <p>It shows:</p>
  
  <pre><code>   code=2200 [Invalid query] message="Invalid STRING constant (true) for "alliance_trouble" of type boolean" 
  </code></pre>
  
  <p>What's the issue here? How to insert <code>boolean</code> type in Cassandra?</p>