title: Aggregation queries in Cassandra CQL
body: <p>We are currently evaluating Cassandra as the data store for an analytical application. The plan was to dump raw data in Cassandra and then run mainly aggregation queries over it. Looking at CQL, it does not seem to support some traditional SQL operators like:</p>
  
  <ul>
  <li>Typical aggregation functions like average, sum, count-Distinct etc.</li>
  <li>Groupby-having operators</li>
  </ul>
  
  <p>I did not find anything that can help achieve the above in the documentation. Also checked if there were any hooks for providing such functions as extensions. Say like in database map-reduce in Mongodb, or user-defined-functions in Relational DBs.  </p>
  
  <p>People do talk about the paid Datastax Enterprise Edition, and that too achieves this not via plain Cassandra, but through separate components like Hadoop-Hive-Pig-Hadoop etc. Or there are suggestions about doing needed pre-aggregations before dumping data to the DB since Cassandra writes are fast.</p>
  
  <p>It looked like too much of overheads, at least for basic stuff we need. Am I missing something fundamental here? </p>
  
  <p>Would highly appreciate help on this.</p>