title: cassandra uuid in SELECT statements with Spark SQL
body: <p>I have the following table in cassandra (v. 2.2.3)</p>
  
  <pre><code>cqlsh&gt; DESCRIBE TABLE historian.timelines;
  
  CREATE TABLE historian.timelines (
      assetid uuid,
      tslice int,
      ...
      value map&lt;text, text&gt;,
      PRIMARY KEY ((assetid, tslice), ...)
  ) WITH CLUSTERING ORDER BY (deviceid ASC, paramid ASC, fts DESC) 
  ...
      ;
  </code></pre>
  
  <p>And I want to extract the data through Apache Spark (v. 1.5.0) via the following java snippet (using the cassandra spark connector v. 1.5.0 and cassandra driver core v. 2.2.0 RC3): </p>
  
  <pre><code>// Initialize Spark SQL Context
  CassandraSQLContext sqlContext = new CassandraSQLContext(jsc.sc());
  sqlContext.setKeyspace(keyspace);
  DataFrame df = sqlContext.sql("SELECT * FROM " + tableName + 
      " WHERE assetid = '085eb9c6-8a16-11e5-af63-feff819cdc9f' LIMIT 2");
  df.show();
  </code></pre>
  
  <p>At this point I get the following error accessing <code>show</code> method above:</p>
  
  <pre><code>cannot resolve '(assetid = cast(085eb9c6-8a16-11e5-af63-feff819cdc9f as double))' due to data type mismatch: 
  differing types in '(assetid = cast(085eb9c6-8a16-11e5-af63-feff819cdc9f as double))' (uuid and double).;
  </code></pre>
  
  <p>So it seems that Spark SQL is not interpreting the <code>assetid</code> input as an UUID. What I could do to handle cassandra UUID type in Spark SQL queries?</p>
  
  <p>Thanks!</p>