Cassandra doesn’t do aggregates in a traditional way. Some apps pre-calculate aggregates as part of the write/ingest process. You could also use Hadoop (and related stuff) on top of Cassandra to do background and on-demand aggregates, such as with DataStax Enterprise. Also, a piece of advice: arithmetic averages are not a good idea for time series data unless you are certain that the data is collected at fixed intervals, and even then, reliably. It is usually more meaningful to do time-weighted average of each value/interval.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.