title: Cassandra fails to infer the type when using a placeholder (datastax java driver)
body: <p>I have a table in Cassandra that looks like this:</p>
  <pre><code>CREATE TABLE x.y (a int primary key);
  </code></pre>
  <p>If I try to run the following SimpleStatement:</p>
  <pre><code>new SimpleStatementBuilder(&quot;SELECT a + ? FROM x.y&quot;).addPositionalValue(1)
  </code></pre>
  <p>A <code>QueryValidationException</code> is thrown with the following message:</p>
  <pre><code>Ambiguous '+' operation with args a and ?: use type casts to disambiguate
  </code></pre>
  <p>The first question here would be, shouldn't the type of the placeholder properly inferred given its value?</p>
  <p>Anyway, I attempted to follow the suggestion and tried to force a type: <code>SELECT a + CAST(? AS int) FROM x.y</code></p>
  <p>Interestingly, this throws the following:</p>
  <pre><code>Cannot infer type for term a + CAST(? AS int) in selection clause (try using a cast to force a type)
  </code></pre>
  <p>What am I missing?</p>